问题详情
1. 贪心算法
1.1 算法框架
此题可以利用贪心算法来求解, 可以假设只关注顾客的cost, 当仓库满了就在下一个仓库里
具体解决方案:
- 将每个顾客到工厂的cost 由小到大进行排序
- 从第一个用户开始, 优先把此用户安排在cost小的工厂里, 如果此工厂容量已满, 则进入下一个最小cost工厂里
- 得到结果
1.2关键代码和注释
customer_assign = []
#此解的 工厂开放费用和客户安排费用
total_assign_cost = 0
total_open_cost = 0
#获取 每个客户的 对于每个工厂的排名矩阵
# 每一行对应第i个矩阵
# 没一列对于此工厂的在所有工厂的assign费用排名 优先选最小
assignment_cost_rank = get_assign_rank(customer_assign)
open_flag = []
#初始化 工厂开放情况
for x in range(n):
open_flag.append(0)
#
for i in range(m):
#对于每一个用户
for j in range(n):
# 找到当前 想要加入的工厂的下标
try:
#从排名为0 的工厂开始 把此工厂定义为 此用户要被安排进的工厂
fac_num = assignment_cost_rank[i].index(j)
except:
fac_num = assignment_cost_rank[i].index(j + 1)
# 如果此工厂能装得下
if demand_customer[i] < capacity[fac_num]:
if open_flag[fac_num] == 0:
open_flag[fac_num] = 1
total_open_cost += opening_cost[fac_num]
# 则表示将当前用户安排给自工厂, 更新相应数据
customer_assign.append(fac_num)
total_assign_cost += assignment_cost[i][j]
capacity[fac_num] = capacity[fac_num] - demand_customer[i]
break
else:
pass
1.3 算法结果
1.3.1 结果表
- | 贪心cost | 贪心time(s) |
---|---|---|
p1 | 23174 | 0.001975 |
p2 | 21860 | 0.000997 |
p3 | 23860 | 0.001008 |
p4 | 25860 | 0.000996 |
p5 | 23694 | 0.000989 |
p6 | 22380 | 0.000995 |
p7 | 24380 | 0.001084 |
p8 | 26380 | 0.000927 |
p9 | 23174 | 0.001068 |
p10 | 21860 | 0.000961 |
p11 | 23860 | 0.001065 |
p12 | 25860 | 0.000931 |
p13 | 29712 | 0.000961 |
p14 | 27217 | 0.003981 |
p15 | 30817 | 0.001013 |
p16 | 34417 | 0.002048 |
p17 | 29712 | 0.002039 |
p18 | 27217 | 0.001039 |
p19 | 30817 | 0.001983 |
p20 | 34417 | 0.001924 |
p21 | 29712 | 0.001990 |
p22 | 27217 | 0.001035 |
p23 | 30817 | 0.001984 |
p24 | 34417 | 0.001006 |
p25 | 94835 | 0.009981 |
p26 | 91777 | 0.012059 |
p27 | 97377 | 0.008979 |
p28 | 102977 | 0.008021 |
p29 | 95885 | 0.007023 |
p30 | 93018 | 0.007972 |
p31 | 98418 | 0.009025 |
p32 | 103818 | 0.007131 |
p33 | 95885 | 0.008019 |
p34 | 93018 | 0.007008 |
p35 | 98418 | 0.009778 |
p36 | 103818 | 0.007983 |
p37 | 95885 | 0.008025 |
p38 | 93018 | 0.010148 |
p39 | 98418 | 0.007794 |
p40 | 103818 | 0.008184 |
p41 | 16835 | 0.002516 |
p42 | 18737 | 0.002324 |
p43 | 20328 | 0.004030 |
p44 | 19453 | 0.000997 |
p45 | 22300 | 0.002021 |
p46 | 25087 | 0.002925 |
p47 | 18379 | 0.003032 |
p48 | 17220 | 0.004028 |
p49 | 21445 | 0.002959 |
p50 | 20681 | 0.002020 |
p51 | 23663 | 0.003183 |
p52 | 23361 | 0.001880 |
p53 | 26867 | 0.006146 |
p54 | 22564 | 0.002808 |
p55 | 25752 | 0.003000 |
p56 | 92079 | 0.011737 |
p57 | 101079 | 0.011197 |
p58 | 122079 | 0.010002 |
p59 | 107318 | 0.011967 |
p60 | 92079 | 0.009938 |
p61 | 101079 | 0.013034 |
p62 | 122079 | 0.010037 |
p63 | 107318 | 0.012074 |
p64 | 92079 | 0.013071 |
p65 | 101079 | 0.009573 |
p66 | 122079 | 0.010981 |
p68 | 92079 | 0.012079 |
p69 | 101079 | 0.008988 |
p70 | 122079 | 0.012096 |
p71 | 107318 | 0.011038 |
1.3.2解决方案
=============================test1=============================
23174
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test2=============================
21860
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test3=============================
23860
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test4=============================
25860
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test5=============================
23694
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 6, 7, 9, 3, 6, 4, 0, 7, 8, 8, 1, 7, 0, 2, 4, 8]
=============================test6=============================
22380
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 6, 7, 9, 3, 6, 4, 0, 7, 8, 8, 1, 7, 0, 2, 4, 8]
=============================test7=============================
24380
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 6, 7, 9, 3, 6, 4, 0, 7, 8, 8, 1, 7, 0, 2, 4, 8]
=============================test8=============================
26380
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 6, 7, 9, 3, 6, 4, 0, 7, 8, 8, 1, 7, 0, 2, 4, 8]
=============================test9=============================
23174
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test10=============================
21860
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test11=============================
23860
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test12=============================
25860
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 8, 2, 9, 9, 5, 6, 3, 2, 6, 3, 4, 0, 6, 4, 5, 0, 3, 9, 7, 6, 3, 5, 6, 9, 5, 7, 0, 3, 3, 8, 2, 1, 3, 7, 9, 3, 6, 4, 5, 7, 8, 8, 1, 7, 0, 2, 4, 6]
=============================test13=============================
29712
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test14=============================
27217
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test15=============================
30817
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test16=============================
34417
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test17=============================
29712
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test18=============================
27217
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test19=============================
30817
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test20=============================
34417
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test21=============================
29712
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test22=============================
27217
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test23=============================
30817
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test24=============================
34417
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 13, 14, 18, 1, 4, 2, 8, 7, 14, 18, 4, 3, 2, 12, 13, 5, 8, 4, 13, 9, 8, 5, 14, 19, 17, 15, 1, 17, 2, 15, 3, 4, 5, 0, 3, 0, 2, 1, 3, 10, 13, 16, 19, 4, 14, 9, 14, 13, 9]
=============================test25=============================
94835
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 14, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test26=============================
91777
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 14, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test27=============================
97377
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 14, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test28=============================
102977
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 14, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test29=============================
95885
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test30=============================
93018
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test31=============================
98418
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test32=============================
103818
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test33=============================
95885
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test34=============================
93018
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test35=============================
98418
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test36=============================
103818
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test37=============================
95885
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test38=============================
93018
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test39=============================
98418
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test40=============================
103818
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[21, 10, 1, 25, 0, 7, 7, 18, 21, 3, 26, 5, 5, 21, 0, 8, 13, 18, 25, 3, 21, 27, 8, 16, 7, 22, 1, 29, 15, 17, 8, 13, 6, 8, 3, 21, 27, 8, 4, 7, 11, 1, 5, 10, 21, 10, 4, 16, 25, 3, 7, 13, 8, 4, 7, 21, 27, 5, 13, 11, 8, 4, 1, 8, 6, 7, 17, 22, 10, 7, 6, 22, 5, 21, 23, 5, 0, 2, 0, 13, 11, 8, 6, 9, 5, 21, 27, 24, 11, 19, 4, 13, 18, 10, 3, 26, 13, 24, 21, 9, 11, 17, 17, 10, 21, 22, 20, 1, 25, 6, 7, 8, 16, 1, 7, 6, 27, 5, 1, 5, 27, 1, 5, 26, 9, 22, 20, 29, 13, 26, 0, 1, 4, 4, 1, 7, 18, 2, 25, 25, 11, 8, 6, 10, 5, 22, 20, 29, 15, 25]
=============================test41=============================
16835
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[2, 8, 8, 1, 6, 8, 4, 3, 0, 3, 9, 1, 8, 9, 1, 2, 2, 6, 4, 2, 0, 5, 0, 6, 6, 7, 1, 7, 7, 9, 4, 3, 7, 3, 4, 0, 2, 0, 7, 1, 9, 0, 9, 2, 0, 0, 0, 5, 1, 5, 7, 3, 9, 0, 3, 9, 0, 7, 8, 1, 5, 8, 6, 4, 6, 5, 5, 7, 5, 3, 5, 0, 8, 8, 9, 0, 6, 7, 3, 9, 3, 5, 4, 5, 5, 7, 4, 5, 6, 6]
=============================test42=============================
18737
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[16, 17, 10, 7, 0, 19, 6, 1, 9, 6, 16, 9, 0, 0, 6, 1, 8, 7, 8, 9, 2, 6, 15, 1, 12, 11, 6, 12, 2, 10, 5, 1, 11, 13, 9, 11, 2, 3, 2, 10, 13, 15, 0, 10, 5, 5, 17, 11, 4, 2, 16, 1, 9, 8, 9, 2, 19, 14, 17, 0, 15, 17, 6, 14, 5, 1, 10, 3, 6, 8, 11, 1, 11, 11, 2, 15, 4, 11, 4, 13]
=============================test43=============================
20328
[1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[20, 21, 18, 4, 16, 1, 18, 8, 15, 6, 20, 2, 20, 6, 27, 24, 29, 1, 21, 8, 10, 13, 22, 19, 10, 5, 29, 15, 14, 11, 9, 13, 0, 15, 1, 17, 0, 6, 0, 4, 9, 3, 14, 23, 11, 14, 21, 4, 17, 16, 20, 15, 15, 23, 1, 18, 10, 13, 14, 25, 26, 11, 12, 26, 12, 13, 22, 18, 16, 23]
=============================test44=============================
19453
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 1, 1, 6, 1, 2, 9, 3, 7, 8, 7, 0, 0, 3, 0, 7, 4, 8, 8, 7, 8, 0, 4, 4, 7, 5, 4, 0, 1, 7, 4, 8, 3, 3, 2, 5, 3, 1, 1, 7, 0, 2, 1, 0, 9, 5, 1, 1, 6, 7, 9, 0, 3, 9, 8, 2, 2, 6, 6, 0, 5, 7, 6, 9, 9, 2, 6, 6, 7, 0, 3, 0, 8, 7, 7, 6, 5, 5, 7, 5, 4, 5, 7, 7, 6, 4, 4, 2, 2, 3]
=============================test45=============================
22300
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 18, 15, 8, 10, 5, 2, 19, 8, 0, 18, 11, 17, 7, 10, 9, 7, 8, 0, 11, 0, 12, 16, 17, 14, 7, 0, 10, 1, 0, 18, 19, 17, 14, 6, 16, 2, 2, 18, 18, 10, 19, 9, 2, 5, 6, 12, 16, 9, 4, 12, 11, 4, 7, 11, 12, 7, 9, 16, 14, 7, 8, 8, 9, 7, 14, 13, 17, 3, 0, 6, 13, 11, 8, 14, 10, 7, 18, 15, 10]
=============================test46=============================
25087
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1]
[5, 13, 18, 4, 3, 25, 2, 8, 0, 0, 9, 3, 13, 1, 24, 8, 0, 5, 1, 19, 12, 29, 7, 13, 14, 29, 8, 13, 19, 11, 2, 28, 17, 28, 26, 10, 12, 3, 28, 17, 27, 26, 19, 16, 4, 21, 10, 9, 28, 20, 12, 7, 0, 25, 24, 13, 25, 14, 9, 0, 8, 2, 24, 29, 21, 9, 2, 12, 24, 10]
=============================test47=============================
18379
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[2, 8, 0, 8, 1, 9, 7, 9, 7, 9, 3, 6, 1, 6, 9, 7, 9, 8, 8, 9, 1, 8, 6, 9, 7, 9, 0, 8, 7, 7, 0, 6, 2, 1, 7, 0, 8, 7, 1, 9, 0, 6, 0, 7, 0, 3, 7, 7, 5, 7, 0, 0, 1, 0, 3, 7, 1, 6, 1, 4, 6, 7, 7, 0, 7, 2, 5, 7, 4, 5, 3, 7, 3, 7, 2, 6, 3, 5, 7, 7, 7, 2, 3, 2, 6, 3, 5, 6, 6, 5]
=============================test48=============================
17220
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1]
[3, 7, 0, 17, 17, 2, 0, 7, 6, 7, 0, 19, 13, 2, 0, 8, 15, 2, 12, 11, 19, 19, 12, 9, 9, 3, 3, 0, 18, 10, 0, 8, 7, 5, 0, 7, 1, 18, 13, 1, 7, 9, 1, 9, 1, 11, 13, 1, 15, 11, 5, 0, 1, 12, 12, 11, 7, 8, 9, 0, 0, 4, 18, 10, 7, 5, 2, 2, 1, 3, 12, 10, 7, 8, 4, 13, 6, 3, 12, 15]
=============================test49=============================
21445
[1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1]
[0, 22, 12, 25, 25, 2, 12, 2, 5, 20, 3, 29, 2, 8, 5, 5, 27, 15, 5, 12, 9, 22, 0, 26, 15, 29, 15, 9, 27, 0, 23, 10, 26, 23, 11, 9, 1, 1, 19, 5, 28, 11, 6, 3, 0, 25, 12, 17, 11, 6, 7, 0, 28, 5, 2, 14, 6, 27, 2, 5, 10, 19, 21, 6, 6, 2, 5, 16, 2, 27]
=============================test50=============================
20681
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 1, 0, 9, 0, 5, 8, 2, 8, 1, 5, 2, 6, 6, 1, 2, 0, 2, 8, 1, 5, 7, 6, 6, 4, 9, 8, 5, 2, 5, 0, 9, 6, 2, 9, 0, 8, 5, 0, 5, 2, 1, 7, 9, 9, 2, 8, 5, 0, 5, 6, 7, 6, 5, 5, 1, 8, 5, 7, 5, 1, 2, 0, 9, 0, 2, 7, 2, 8, 1, 0, 7, 6, 0, 7, 1, 2, 5, 7, 5, 5, 7, 6, 9, 4, 1, 7, 5, 7, 5, 5, 2, 6, 6, 3, 2, 7, 2, 8, 7]
=============================test51=============================
23663
[1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 19, 0, 13, 0, 2, 10, 3, 15, 1, 9, 10, 11, 0, 9, 1, 8, 12, 9, 5, 6, 8, 6, 0, 15, 1, 8, 11, 7, 15, 12, 19, 16, 12, 11, 2, 8, 9, 15, 15, 5, 2, 11, 9, 15, 2, 19, 11, 8, 5, 6, 19, 15, 12, 5, 1, 8, 12, 7, 5, 1, 2, 19, 9, 18, 6, 16, 19, 6, 10, 0, 19, 14, 19, 9, 19, 8, 10, 10, 5, 17, 7, 19, 0, 15, 1, 19, 12, 7, 5, 0, 16, 6, 0, 11, 11, 8, 10, 17, 5]
=============================test52=============================
23361
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 9, 3, 8, 8, 2, 4, 9, 9, 0, 1, 9, 3, 8, 0, 3, 6, 9, 0, 1, 5, 1, 3, 8, 5, 4, 7, 9, 9, 7, 5, 2, 3, 6, 6, 2, 4, 3, 1, 7, 5, 3, 3, 8, 6, 2, 4, 2, 1, 7, 6, 7, 3, 2, 7, 5, 2, 0, 4, 4, 2, 1, 3, 6, 3, 3, 0, 0, 0, 2, 7, 3, 3, 6, 5, 4, 7, 2, 7, 7, 5, 7, 3, 2, 8, 5, 5, 3, 2, 0, 5, 7, 7, 2, 0, 5, 6, 5, 4, 4]
=============================test53=============================
26867
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]
[19, 9, 12, 19, 10, 12, 4, 11, 9, 18, 8, 2, 15, 19, 14, 1, 4, 11, 9, 8, 19, 7, 11, 19, 18, 5, 1, 9, 9, 19, 13, 9, 12, 17, 17, 1, 4, 12, 1, 17, 8, 2, 15, 19, 11, 1, 11, 15, 19, 14, 5, 3, 12, 19, 17, 4, 7, 15, 19, 10, 19, 3, 11, 19, 10, 2, 8, 11, 7, 7, 8, 3, 13, 19, 6, 2, 4, 15, 19, 14, 11, 18, 14, 19, 19, 5, 5, 13, 10, 12, 11, 18, 8, 2, 12, 13, 6, 12, 4, 4]
=============================test54=============================
22564
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 9, 0, 9, 0, 4, 4, 6, 9, 0, 9, 9, 3, 9, 2, 1, 6, 4, 9, 0, 9, 0, 2, 5, 2, 1, 6, 4, 8, 0, 4, 0, 3, 5, 8, 1, 6, 4, 8, 0, 4, 0, 2, 3, 2, 1, 4, 4, 5, 0, 4, 0, 0, 3, 2, 4, 6, 3, 8, 7, 4, 6, 3, 0, 2, 4, 7, 1, 8, 7, 2, 2, 2, 3, 2, 1, 6, 4, 8, 8, 4, 6, 3, 3, 2, 8, 6, 4, 8, 7, 4, 3, 2, 3, 2, 4, 6, 4, 8, 5]
=============================test55=============================
25752
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1]
[19, 9, 11, 9, 8, 1, 6, 1, 14, 10, 10, 9, 0, 14, 2, 19, 6, 4, 11, 10, 9, 0, 2, 14, 2, 19, 6, 4, 14, 10, 19, 15, 11, 9, 2, 19, 4, 14, 11, 0, 13, 0, 2, 14, 18, 19, 19, 4, 16, 10, 19, 19, 14, 11, 2, 19, 4, 4, 8, 0, 19, 9, 3, 5, 8, 1, 6, 4, 15, 10, 19, 15, 11, 0, 0, 4, 7, 1, 14, 10, 8, 3, 2, 5, 10, 10, 6, 4, 14, 15, 10, 19, 2, 11, 15, 19, 4, 6, 5, 7]
=============================test56=============================
92079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test57=============================
101079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test58=============================
122079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test59=============================
107318
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test60=============================
92079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test61=============================
101079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test62=============================
122079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test63=============================
107318
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test64=============================
92079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test65=============================
101079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test66=============================
122079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test68=============================
92079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test69=============================
101079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test70=============================
122079
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
=============================test71=============================
107318
[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, 1, 1, 1, 1, 1]
[19, 9, 21, 15, 25, 26, 1, 7, 1, 8, 5, 8, 9, 14, 27, 3, 14, 16, 8, 20, 16, 3, 25, 19, 17, 18, 4, 22, 20, 16, 11, 9, 14, 4, 27, 16, 0, 0, 24, 10, 4, 12, 12, 23, 7, 2, 12, 7, 22, 19, 17, 14, 6, 27, 17, 28, 3, 5, 14, 0, 17, 27, 13, 25, 15, 21, 4, 14, 24, 5, 9, 22, 19, 7, 22, 15, 8, 11, 15, 14, 14, 0, 11, 23, 20, 5, 15, 14, 24, 15, 4, 29, 27, 27, 29, 17, 7, 29, 11, 3, 4, 17, 2, 11, 27, 19, 6, 23, 13, 4, 25, 17, 29, 4, 5, 6, 4, 19, 11, 18, 15, 10, 10, 13, 2, 5, 21, 20, 6, 1, 23, 3, 12, 27, 16, 26, 7, 23, 3, 2, 21, 17, 19, 11, 0, 19, 2, 0, 9, 2, 3, 11, 1, 22, 4, 25, 14, 24, 12, 17, 23, 20, 19, 7, 26, 4, 3, 8, 29, 23, 17, 14, 24, 5, 23, 4, 24, 14, 5, 29, 26, 20, 28, 22, 1, 7, 29, 3, 2, 29, 16, 25, 26, 5, 23, 10, 26, 1, 27, 23]
2. 蒙特卡洛算法搜索
2.1 算法框架
蒙特卡洛算法就是解是完全随机生成的, 取所有生成的解中的最好的一个解, 这就近似于最优解了
蒙特卡洛搜索总体思路就是
- 把每个用户随机分配到一个工厂(容量需要匹配)
- 如果工厂没开, 则开启工厂
- 每一局都生成一个解 然后计算此解的cost
- 一共循环10000次找到最优解
2.2关键注释和代码
首先生成一个随机解
#生成局部解
def produce_solution():
#对于每个用户 随机分配到一个工厂
factory_open = [0] * n
customer_assign = []
total_opening_cost = 0
total_assignment_cost = 0
demand_customer_copy = demand_customer.copy()
capacity_copy = capacity.copy()
for i in range(m) :
#判断是否继续为此工厂挑选随机解
flag = True
fac_num = -1
while (flag) :
#生成随机数
fac_num = random.randint(0, n - 1)
#如果容量符合要求则选择该工厂
if (demand_customer_copy[i] <= capacity_copy[fac_num]) :
#如果工厂没开 则开工厂
if (factory_open[fac_num] == 0) :
factory_open[fac_num] = 1
total_opening_cost += opening_cost[fac_num]
#写入到安排计划数组里
customer_assign.append(fac_num)
#减去相应容量
capacity_copy[fac_num] -= demand_customer_copy[i]
#更新总共total_assignment_cost
total_assignment_cost += assignment_cost[i][fac_num]
#更新flag
flag = False
return total_opening_cost + total_assignment_cost, factory_open, customer_assign
然后进行循环取新解, 看是否小于最小值, 是则更新最小值,记录工厂开关情况和客户安排情况
2.3 算法结果
2.3.1 结果表
- | 蒙特卡洛搜索cost | 蒙特卡洛搜索 time(s) |
---|---|---|
p1 | 19469 | 1.167448 |
p2 | 18387 | 1.144503 |
p3 | 20201 | 1.163274 |
p4 | 22369 | 1.173159 |
p5 | 19640 | 1.169271 |
p6 | 17722 | 1.289026 |
p7 | 20352 | 1.174866 |
p8 | 22446 | 1.165055 |
p9 | 19129 | 1.085098 |
p10 | 17959 | 1.171818 |
p11 | 20647 | 1.167950 |
p12 | 22022 | 1.083284 |
p13 | 23323 | 1.117716 |
p14 | 21678 | 1.107110 |
p15 | 24049 | 1.265235 |
p16 | 27861 | 1.091286 |
p17 | 23883 | 1.095017 |
p18 | 20887 | 1.191954 |
p19 | 24755 | 1.104198 |
p20 | 27675 | 1.109872 |
p21 | 23567 | 1.104100 |
p22 | 20861 | 1.107299 |
p23 | 23930 | 1.094176 |
p24 | 27605 | 1.098866 |
p25 | 83411 | 3.281926 |
p26 | 77011 | 3.239316 |
p27 | 82298 | 3.160980 |
p28 | 88306 | 3.242415 |
p29 | 81965 | 3.122669 |
p30 | 77965 | 3.127385 |
p31 | 84999 | 3.118942 |
p32 | 88774 | 3.125361 |
p33 | 75684 | 3.122862 |
p34 | 76766 | 3.152400 |
p35 | 83977 | 3.127338 |
p36 | 90197 | 3.131024 |
p37 | 81170 | 3.144564 |
p38 | 78124 | 3.129470 |
p39 | 82450 | 3.118931 |
p40 | 90381 | 3.116187 |
p41 | 14263 | 2.021891 |
p42 | 17158 | 1.740631 |
p43 | 17597 | 1.467648 |
p44 | 17764 | 2.135185 |
p45 | 18839 | 1.752667 |
p46 | 20741 | 1.478881 |
p47 | 16431 | 2.126953 |
p48 | 17678 | 1.878001 |
p49 | 18675 | 1.469679 |
p50 | 17499 | 2.285640 |
p51 | 20686 | 2.159328 |
p52 | 22696 | 2.415883 |
p53 | 24531 | 2.177904 |
p54 | 20707 | 2.465362 |
p55 | 25987 | 2.196705 |
p56 | 81337 | 4.176174 |
p57 | 89503 | 4.167729 |
p58 | 110730 | 4.401157 |
p59 | 94801 | 4.169288 |
p60 | 81313 | 4.105765 |
p61 | 90097 | 4.100008 |
p62 | 111173 | 4.062414 |
p63 | 95750 | 4.106213 |
p64 | 80590 | 4.070198 |
p65 | 88878 | 4.096092 |
p66 | 110831 | 4.101187 |
p68 | 81372 | 4.096628 |
p69 | 89175 | 4.086070 |
p70 | 110856 | 4.235252 |
p71 | 96292 | 4.088889 |
2.3.2 解决方案
结果安排
=============================test1=============================
20079
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[6, 9, 8, 7, 0, 3, 2, 8, 3, 2, 6, 6, 9, 9, 3, 8, 7, 7, 7, 2, 1, 0, 2, 4, 6, 6, 0, 8, 6, 2, 6, 2, 4, 1, 3, 1, 9, 5, 6, 0, 0, 8, 9, 4, 7, 4, 3, 4, 4, 6]
=============================test2=============================
17161
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 2, 2, 6, 5, 9, 6, 6, 7, 0, 6, 9, 1, 0, 8, 0, 5, 4, 2, 7, 6, 3, 3, 6, 8, 9, 7, 7, 7, 3, 2, 6, 5, 0, 4, 7, 0, 3, 8, 0, 0, 5, 1, 9, 6, 1, 2, 1, 4, 3]
=============================test3=============================
20448
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 4, 0, 2, 9, 4, 6, 3, 4, 0, 8, 6, 7, 1, 6, 9, 5, 6, 5, 8, 0, 9, 4, 9, 2, 3, 3, 9, 8, 8, 4, 0, 7, 3, 6, 7, 9, 4, 6, 1, 5, 1, 7, 3, 7, 8, 0, 1, 5, 2]
=============================test4=============================
21456
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 3, 3, 9, 3, 2, 5, 2, 0, 2, 8, 8, 7, 4, 5, 9, 2, 6, 7, 9, 8, 8, 2, 5, 1, 2, 6, 7, 1, 0, 4, 0, 7, 0, 9, 0, 9, 1, 9, 4, 1, 6, 9, 6, 0, 7, 6, 1, 9, 9]
=============================test5=============================
19754
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 5, 0, 7, 1, 2, 6, 5, 0, 5, 8, 1, 5, 2, 4, 6, 3, 0, 1, 0, 7, 9, 3, 2, 7, 7, 7, 5, 7, 2, 4, 8, 5, 2, 4, 8, 4, 3, 9, 6, 5, 4, 3, 2, 7, 5, 0, 1, 9, 6]
=============================test6=============================
18690
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 5, 4, 7, 8, 1, 7, 6, 7, 1, 2, 9, 9, 2, 5, 0, 4, 9, 3, 7, 1, 3, 5, 4, 8, 3, 0, 5, 9, 2, 3, 0, 2, 0, 0, 2, 4, 8, 8, 9, 1, 5, 7, 8, 5, 9, 0, 2, 9, 6]
=============================test7=============================
20062
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 5, 8, 4, 9, 9, 9, 8, 7, 5, 2, 9, 8, 2, 0, 9, 8, 6, 2, 2, 7, 1, 3, 0, 8, 3, 5, 0, 7, 7, 2, 7, 5, 9, 0, 8, 0, 1, 5, 4, 5, 4, 6, 4, 3, 3, 0, 7, 1, 6]
=============================test8=============================
22419
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 1, 4, 2, 5, 1, 5, 9, 0, 0, 1, 0, 7, 1, 0, 4, 0, 0, 3, 8, 6, 6, 2, 9, 8, 4, 3, 6, 8, 3, 3, 8, 2, 1, 9, 5, 7, 9, 7, 8, 7, 5, 4, 6, 1, 3, 6, 6, 5, 8]
=============================test9=============================
19283
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 4, 7, 5, 1, 7, 9, 4, 5, 1, 5, 3, 4, 8, 4, 6, 7, 8, 9, 4, 6, 1, 5, 4, 0, 8, 9, 2, 0, 3, 3, 6, 1, 4, 1, 1, 4, 9, 9, 0, 7, 8, 3, 8, 8, 0, 2, 6, 2]
=============================test10=============================
18196
[1, 1, 1, 1, 0, 1, 1, 1, 1, 1]
[8, 3, 8, 0, 1, 2, 3, 0, 9, 9, 0, 3, 9, 9, 6, 2, 7, 1, 2, 0, 0, 2, 3, 6, 2, 2, 2, 3, 1, 6, 8, 0, 7, 9, 0, 7, 9, 1, 6, 6, 7, 5, 6, 9, 6, 3, 3, 0, 6, 0]
=============================test11=============================
19914
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[7, 1, 6, 0, 5, 9, 5, 7, 8, 7, 1, 6, 4, 9, 2, 9, 7, 6, 0, 1, 6, 4, 3, 8, 6, 0, 1, 9, 6, 3, 7, 9, 5, 8, 4, 7, 4, 3, 5, 4, 1, 4, 1, 1, 9, 8, 8, 3, 5, 6]
=============================test12=============================
22234
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 1, 8, 2, 0, 2, 5, 6, 3, 2, 1, 0, 9, 6, 3, 4, 7, 8, 7, 2, 7, 3, 4, 5, 5, 0, 6, 0, 5, 7, 3, 8, 2, 3, 9, 5, 0, 8, 0, 4, 8, 0, 7, 6, 9, 0, 5, 3, 4, 1]
=============================test13=============================
23592
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1]
[9, 17, 2, 19, 19, 11, 1, 1, 18, 6, 18, 16, 9, 6, 12, 16, 16, 0, 6, 16, 17, 8, 9, 4, 7, 16, 15, 0, 9, 5, 2, 16, 10, 11, 6, 15, 4, 2, 2, 11, 8, 3, 12, 19, 9, 1, 3, 0, 5, 15]
=============================test14=============================
21057
[1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[17, 0, 11, 12, 7, 5, 0, 11, 10, 18, 1, 11, 3, 1, 15, 4, 9, 19, 10, 9, 12, 16, 15, 3, 19, 4, 15, 19, 14, 17, 0, 17, 11, 1, 12, 13, 7, 11, 8, 9, 16, 11, 16, 18, 7, 14, 6, 15, 10, 9]
=============================test15=============================
24536
[0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 6, 4, 17, 3, 14, 5, 18, 11, 8, 16, 11, 9, 2, 11, 19, 6, 11, 15, 12, 9, 4, 5, 2, 19, 7, 13, 6, 12, 18, 17, 11, 7, 6, 3, 17, 4, 4, 12, 2, 19, 3, 16, 18, 4, 4, 19, 2, 10, 15]
=============================test16=============================
26801
[1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1]
[17, 10, 14, 8, 12, 1, 12, 15, 17, 6, 6, 18, 7, 7, 8, 8, 2, 8, 11, 7, 19, 16, 14, 5, 10, 19, 16, 14, 18, 6, 12, 16, 0, 6, 7, 6, 19, 2, 10, 0, 10, 7, 7, 5, 4, 15, 17, 16, 4, 11]
=============================test17=============================
23015
[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[17, 6, 14, 17, 6, 14, 13, 13, 8, 10, 11, 14, 7, 13, 17, 13, 19, 6, 6, 19, 13, 14, 9, 4, 17, 17, 11, 9, 12, 18, 7, 16, 17, 4, 15, 16, 4, 11, 19, 16, 4, 19, 5, 15, 4, 9, 9, 14, 13, 10]
=============================test18=============================
21575
[0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1]
[18, 14, 11, 3, 3, 5, 16, 19, 8, 14, 14, 8, 3, 10, 7, 3, 3, 4, 1, 14, 9, 5, 3, 14, 17, 8, 12, 6, 3, 5, 16, 9, 17, 14, 7, 11, 6, 8, 11, 8, 5, 11, 17, 16, 17, 16, 18, 15, 12, 9]
=============================test19=============================
24371
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1]
[5, 3, 2, 2, 5, 8, 10, 18, 17, 19, 16, 1, 15, 6, 15, 15, 1, 8, 16, 4, 17, 16, 9, 6, 19, 18, 15, 18, 19, 18, 2, 16, 11, 17, 4, 9, 7, 3, 1, 13, 17, 3, 6, 18, 18, 16, 6, 13, 5, 16]
=============================test20=============================
27962
[1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[10, 2, 16, 14, 14, 14, 12, 1, 16, 12, 16, 14, 2, 13, 0, 9, 3, 18, 19, 17, 9, 2, 12, 15, 6, 1, 6, 0, 18, 10, 9, 17, 17, 0, 10, 17, 0, 10, 18, 6, 13, 17, 15, 13, 10, 2, 19, 14, 1, 9]
=============================test21=============================
23174
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0]
[2, 15, 6, 17, 6, 1, 2, 8, 7, 18, 12, 12, 17, 9, 1, 5, 18, 5, 12, 12, 9, 7, 9, 7, 15, 17, 4, 3, 4, 17, 10, 12, 15, 10, 18, 18, 9, 7, 1, 13, 8, 12, 4, 17, 12, 0, 16, 4, 15, 13]
=============================test22=============================
20804
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 12, 2, 10, 5, 12, 2, 14, 11, 5, 18, 12, 11, 4, 7, 9, 5, 1, 11, 3, 16, 14, 7, 8, 10, 3, 11, 4, 9, 3, 15, 4, 8, 17, 7, 16, 0, 14, 5, 19, 17, 13, 16, 4, 4, 3, 7, 10, 13, 7]
=============================test23=============================
24638
[1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0]
[2, 6, 18, 1, 17, 1, 14, 1, 14, 12, 18, 9, 0, 11, 15, 17, 18, 1, 11, 12, 17, 17, 9, 7, 8, 8, 7, 11, 11, 6, 5, 2, 4, 12, 12, 17, 0, 17, 13, 14, 1, 0, 16, 18, 15, 8, 9, 5, 15, 15]
=============================test24=============================
28047
[0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 5, 12, 18, 16, 16, 11, 2, 3, 19, 19, 5, 11, 12, 12, 16, 3, 18, 17, 19, 18, 9, 14, 14, 12, 18, 15, 17, 17, 17, 13, 17, 13, 19, 18, 16, 4, 4, 7, 16, 18, 3, 15, 14, 14, 11, 14, 13, 13]
=============================test25=============================
79458
[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, 1, 1, 0, 1, 1]
[4, 1, 23, 0, 10, 7, 24, 1, 9, 7, 14, 5, 3, 15, 17, 15, 21, 4, 24, 20, 9, 26, 5, 12, 18, 22, 23, 29, 12, 17, 6, 14, 19, 22, 2, 1, 11, 10, 19, 29, 13, 6, 26, 20, 13, 2, 10, 4, 20, 2, 2, 19, 19, 4, 9, 29, 29, 25, 19, 11, 26, 19, 22, 2, 16, 3, 13, 16, 7, 1, 6, 11, 1, 25, 14, 29, 0, 3, 7, 11, 4, 15, 9, 4, 6, 18, 3, 16, 21, 6, 11, 13, 4, 23, 14, 2, 19, 29, 17, 17, 9, 10, 25, 25, 23, 22, 22, 12, 25, 3, 29, 24, 11, 6, 23, 16, 7, 19, 18, 29, 15, 20, 5, 28, 6, 18, 13, 17, 29, 28, 9, 26, 18, 1, 8, 26, 28, 25, 2, 29, 20, 26, 9, 22, 13, 18, 5, 14, 11, 1]
=============================test26=============================
78084
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1]
[7, 19, 27, 21, 9, 29, 7, 16, 15, 28, 13, 6, 15, 29, 7, 21, 22, 0, 4, 25, 4, 24, 3, 27, 10, 14, 8, 4, 10, 17, 16, 19, 14, 13, 28, 0, 25, 6, 27, 22, 16, 8, 7, 4, 29, 18, 27, 8, 13, 19, 21, 3, 4, 25, 9, 7, 6, 1, 27, 13, 2, 5, 5, 0, 13, 2, 29, 4, 14, 21, 15, 17, 7, 10, 18, 0, 14, 3, 14, 12, 8, 1, 28, 6, 1, 10, 20, 2, 10, 4, 18, 26, 16, 21, 6, 2, 18, 14, 21, 1, 12, 21, 1, 19, 28, 28, 2, 9, 15, 9, 5, 3, 0, 9, 17, 5, 28, 20, 15, 18, 10, 13, 26, 14, 7, 9, 3, 14, 22, 29, 7, 1, 10, 3, 3, 14, 18, 9, 8, 0, 12, 18, 14, 15, 29, 3, 17, 19, 10, 5]
=============================test27=============================
84498
[1, 1, 1, 1, 0, 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]
[24, 28, 19, 19, 3, 3, 12, 26, 27, 9, 22, 25, 6, 17, 29, 11, 28, 6, 22, 28, 23, 20, 28, 14, 8, 7, 10, 9, 26, 29, 8, 28, 27, 6, 9, 12, 9, 5, 15, 26, 9, 2, 18, 11, 27, 26, 17, 18, 8, 11, 14, 20, 18, 28, 13, 17, 0, 16, 20, 17, 20, 13, 2, 8, 13, 5, 5, 10, 17, 9, 3, 9, 16, 7, 12, 18, 8, 10, 11, 9, 11, 9, 1, 14, 8, 23, 27, 1, 29, 8, 26, 25, 17, 16, 12, 26, 28, 8, 15, 28, 18, 14, 21, 21, 15, 8, 13, 17, 22, 24, 0, 24, 6, 23, 5, 21, 25, 7, 0, 0, 7, 3, 29, 19, 16, 14, 19, 18, 14, 27, 29, 12, 13, 10, 9, 7, 24, 13, 5, 12, 5, 13, 15, 19, 24, 0, 1, 17, 19, 5]
=============================test28=============================
90261
[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, 1, 1, 1, 1, 1]
[26, 21, 23, 15, 3, 29, 0, 4, 25, 1, 0, 4, 8, 29, 11, 9, 15, 6, 13, 23, 7, 10, 20, 27, 23, 1, 7, 27, 17, 14, 14, 22, 18, 15, 11, 13, 5, 19, 19, 6, 17, 15, 8, 26, 25, 2, 28, 15, 10, 5, 5, 25, 17, 20, 24, 29, 14, 0, 28, 5, 8, 16, 29, 6, 8, 11, 19, 18, 21, 5, 6, 15, 4, 26, 26, 21, 8, 19, 9, 5, 17, 27, 6, 16, 13, 15, 20, 11, 22, 12, 20, 20, 0, 2, 15, 21, 25, 18, 18, 25, 9, 9, 13, 14, 18, 28, 18, 24, 11, 29, 20, 12, 2, 4, 12, 29, 27, 18, 8, 0, 15, 18, 6, 1, 29, 8, 12, 29, 18, 28, 0, 1, 18, 8, 4, 5, 19, 9, 19, 26, 11, 4, 8, 7, 21, 21, 1, 11, 1, 15]
=============================test29=============================
80366
[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, 1, 1, 1, 1, 1]
[23, 27, 14, 24, 27, 3, 23, 18, 0, 9, 23, 18, 14, 11, 4, 14, 19, 1, 27, 8, 21, 21, 24, 4, 15, 29, 12, 22, 11, 18, 11, 28, 16, 7, 5, 22, 23, 17, 6, 0, 22, 29, 15, 22, 3, 15, 6, 2, 8, 29, 23, 19, 16, 16, 16, 17, 16, 15, 19, 3, 4, 25, 16, 5, 25, 24, 15, 10, 19, 7, 11, 9, 22, 14, 2, 2, 9, 5, 21, 21, 29, 0, 22, 15, 16, 29, 14, 2, 9, 9, 8, 27, 0, 23, 18, 19, 13, 5, 8, 29, 18, 4, 20, 10, 18, 22, 27, 24, 12, 15, 27, 2, 16, 13, 13, 7, 21, 9, 20, 8, 29, 9, 12, 17, 14, 20, 24, 29, 15, 2, 1, 13, 3, 13, 26, 18, 20, 14, 1, 25, 8, 28, 16, 27, 8, 14, 5, 4, 29, 5]
=============================test30=============================
78428
[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, 1, 1, 1, 1, 1]
[25, 13, 18, 2, 16, 9, 21, 9, 8, 28, 12, 4, 11, 4, 27, 24, 27, 13, 21, 22, 3, 9, 19, 10, 8, 10, 27, 9, 6, 25, 11, 25, 2, 2, 8, 7, 17, 21, 12, 19, 14, 29, 14, 3, 21, 2, 20, 0, 0, 5, 7, 29, 20, 3, 4, 5, 22, 11, 23, 25, 21, 11, 9, 12, 8, 0, 27, 0, 21, 9, 0, 5, 6, 4, 22, 28, 5, 23, 17, 10, 8, 1, 27, 18, 23, 15, 12, 2, 22, 13, 2, 13, 0, 16, 21, 17, 13, 15, 25, 23, 21, 3, 23, 3, 14, 15, 3, 19, 18, 11, 5, 26, 6, 15, 1, 0, 5, 7, 9, 1, 28, 1, 11, 19, 19, 24, 7, 26, 12, 16, 23, 25, 6, 25, 22, 0, 20, 5, 29, 11, 20, 3, 17, 10, 12, 16, 16, 18, 28, 10]
=============================test31=============================
85044
[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, 1, 1, 1, 1, 1]
[19, 5, 15, 20, 9, 4, 28, 14, 5, 17, 3, 8, 16, 1, 3, 10, 12, 14, 29, 4, 28, 3, 18, 21, 7, 11, 20, 12, 19, 3, 22, 26, 1, 14, 3, 3, 14, 16, 4, 26, 14, 9, 1, 11, 28, 8, 5, 8, 23, 6, 10, 8, 14, 10, 24, 4, 22, 29, 17, 9, 18, 9, 29, 15, 29, 0, 7, 28, 16, 7, 21, 14, 4, 26, 26, 0, 16, 20, 11, 8, 3, 7, 1, 4, 11, 17, 26, 27, 20, 11, 3, 14, 10, 5, 21, 1, 29, 19, 15, 15, 25, 18, 4, 20, 14, 14, 23, 16, 2, 0, 22, 8, 15, 16, 13, 9, 26, 3, 4, 8, 22, 24, 22, 23, 8, 4, 29, 26, 24, 17, 28, 28, 2, 25, 28, 22, 0, 29, 19, 13, 22, 16, 6, 29, 21, 6, 15, 20, 19, 1]
=============================test32=============================
87824
[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, 1, 1, 1, 1, 1]
[5, 21, 23, 17, 20, 19, 12, 26, 5, 20, 5, 19, 15, 22, 22, 10, 28, 9, 0, 6, 19, 9, 0, 25, 12, 23, 23, 15, 13, 14, 25, 26, 11, 4, 13, 26, 26, 0, 18, 11, 11, 1, 28, 5, 25, 20, 6, 17, 2, 10, 2, 13, 4, 1, 7, 10, 4, 9, 16, 6, 29, 18, 21, 7, 8, 7, 8, 11, 17, 6, 25, 26, 9, 3, 23, 5, 15, 22, 0, 11, 29, 6, 14, 25, 13, 5, 5, 4, 22, 21, 11, 24, 28, 10, 21, 24, 3, 12, 13, 12, 18, 20, 11, 25, 24, 27, 23, 26, 3, 5, 24, 6, 8, 10, 15, 23, 21, 14, 22, 23, 13, 2, 12, 4, 13, 21, 12, 11, 1, 12, 7, 16, 4, 16, 1, 14, 14, 18, 26, 2, 27, 29, 11, 25, 12, 16, 18, 13, 17, 24]
=============================test33=============================
80674
[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, 1, 1, 1, 1, 1]
[15, 13, 29, 5, 25, 7, 25, 9, 10, 0, 14, 29, 13, 2, 8, 1, 18, 27, 21, 29, 5, 8, 7, 13, 14, 8, 27, 17, 21, 9, 11, 26, 1, 0, 4, 20, 28, 26, 29, 24, 14, 23, 29, 20, 2, 19, 13, 22, 28, 28, 24, 24, 4, 7, 0, 24, 11, 6, 17, 25, 15, 14, 3, 10, 1, 12, 3, 22, 20, 5, 12, 22, 20, 27, 8, 4, 25, 6, 8, 25, 1, 16, 22, 24, 16, 28, 16, 16, 12, 10, 12, 7, 3, 23, 19, 26, 28, 19, 1, 9, 14, 2, 24, 28, 8, 0, 5, 3, 9, 5, 0, 8, 27, 22, 7, 13, 13, 18, 6, 20, 23, 23, 25, 11, 22, 22, 27, 22, 15, 21, 6, 24, 7, 8, 13, 17, 20, 2, 13, 2, 10, 27, 19, 21, 17, 18, 16, 16, 16, 19]
=============================test34=============================
77251
[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, 1, 1, 1, 1, 1]
[10, 4, 13, 10, 27, 3, 18, 3, 7, 18, 4, 24, 19, 21, 25, 20, 26, 4, 16, 12, 25, 21, 0, 9, 29, 18, 14, 2, 15, 27, 5, 17, 1, 7, 15, 9, 3, 27, 24, 8, 18, 21, 1, 20, 13, 9, 15, 11, 2, 17, 15, 0, 18, 7, 18, 2, 0, 4, 1, 13, 5, 14, 19, 25, 3, 1, 16, 20, 28, 13, 6, 22, 28, 18, 16, 9, 2, 7, 3, 27, 26, 3, 5, 13, 8, 8, 16, 20, 12, 17, 26, 0, 0, 10, 13, 23, 12, 18, 7, 24, 19, 19, 13, 24, 28, 23, 28, 5, 27, 1, 17, 19, 1, 29, 0, 24, 12, 16, 1, 11, 29, 20, 4, 23, 0, 14, 21, 1, 8, 19, 8, 18, 11, 29, 5, 7, 27, 28, 25, 15, 8, 26, 11, 0, 21, 25, 5, 11, 22, 11]
=============================test35=============================
79847
[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, 1, 1, 1, 1, 1]
[25, 22, 1, 23, 23, 0, 29, 5, 6, 27, 1, 3, 22, 0, 29, 26, 2, 28, 10, 9, 7, 27, 22, 17, 14, 3, 21, 20, 11, 23, 10, 9, 10, 0, 25, 18, 2, 26, 16, 28, 12, 15, 4, 24, 18, 22, 7, 4, 24, 1, 8, 13, 4, 9, 9, 0, 11, 16, 28, 25, 2, 2, 8, 8, 18, 2, 11, 17, 0, 24, 15, 9, 23, 23, 11, 28, 3, 0, 0, 1, 16, 13, 14, 27, 8, 5, 20, 5, 11, 27, 18, 5, 1, 29, 14, 8, 28, 26, 18, 16, 5, 12, 29, 10, 8, 7, 5, 9, 0, 13, 23, 16, 12, 10, 6, 1, 4, 4, 6, 18, 27, 19, 20, 18, 12, 17, 15, 7, 0, 4, 9, 4, 2, 28, 14, 21, 10, 16, 19, 10, 3, 29, 24, 21, 24, 17, 7, 29, 21, 28]
=============================test36=============================
87064
[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, 1, 1, 1, 1, 1]
[13, 0, 27, 6, 12, 20, 17, 22, 29, 8, 28, 19, 1, 20, 26, 29, 0, 13, 21, 24, 5, 10, 15, 8, 14, 19, 21, 24, 11, 12, 16, 24, 0, 16, 14, 25, 26, 29, 25, 7, 14, 21, 2, 5, 4, 16, 7, 20, 8, 25, 7, 8, 10, 18, 0, 3, 21, 17, 19, 17, 12, 21, 1, 8, 8, 14, 8, 17, 21, 19, 29, 27, 29, 5, 13, 19, 5, 3, 6, 14, 13, 12, 3, 18, 17, 20, 3, 21, 12, 1, 27, 25, 1, 0, 2, 6, 27, 6, 0, 9, 11, 4, 17, 13, 22, 12, 14, 12, 4, 11, 24, 20, 2, 26, 20, 3, 22, 5, 7, 1, 23, 5, 29, 8, 3, 5, 12, 5, 25, 1, 23, 20, 19, 5, 6, 14, 11, 6, 11, 29, 10, 17, 16, 0, 2, 20, 13, 18, 19, 5]
=============================test37=============================
80379
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1]
[18, 15, 26, 16, 8, 2, 18, 23, 3, 2, 18, 5, 1, 22, 22, 21, 20, 13, 22, 16, 21, 12, 1, 26, 16, 9, 17, 3, 20, 28, 13, 27, 26, 10, 5, 9, 5, 7, 17, 8, 13, 4, 21, 16, 25, 3, 16, 11, 28, 22, 13, 6, 4, 4, 15, 19, 1, 29, 25, 4, 6, 19, 4, 14, 1, 13, 12, 6, 20, 9, 12, 21, 22, 4, 6, 1, 27, 15, 15, 14, 0, 3, 6, 27, 9, 3, 12, 13, 3, 19, 29, 27, 0, 21, 28, 7, 2, 15, 17, 23, 18, 11, 25, 14, 18, 11, 21, 10, 3, 13, 23, 7, 27, 4, 16, 4, 14, 4, 5, 25, 9, 5, 3, 19, 4, 27, 19, 27, 10, 26, 25, 9, 9, 8, 18, 14, 20, 1, 7, 13, 29, 27, 27, 2, 6, 3, 8, 13, 23, 15]
=============================test38=============================
78212
[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, 1, 1, 1, 1, 1]
[26, 28, 19, 17, 18, 0, 21, 4, 16, 29, 22, 27, 20, 15, 28, 4, 19, 14, 29, 25, 7, 5, 8, 9, 16, 27, 14, 16, 5, 11, 21, 9, 6, 14, 5, 15, 25, 25, 19, 0, 0, 26, 28, 5, 26, 2, 18, 17, 8, 12, 21, 4, 1, 9, 5, 10, 17, 29, 6, 20, 23, 8, 15, 4, 22, 12, 21, 24, 25, 23, 17, 16, 13, 17, 14, 28, 13, 29, 24, 1, 24, 18, 15, 19, 12, 12, 3, 1, 29, 3, 24, 5, 13, 2, 14, 21, 10, 15, 27, 4, 23, 28, 5, 28, 29, 12, 10, 14, 11, 16, 9, 20, 6, 7, 23, 22, 6, 10, 6, 27, 27, 4, 11, 11, 9, 1, 23, 4, 13, 29, 24, 0, 24, 13, 1, 27, 6, 2, 6, 21, 14, 3, 22, 0, 27, 29, 3, 1, 27, 29]
=============================test39=============================
81688
[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, 1, 1, 1, 1, 1]
[4, 18, 9, 11, 8, 21, 9, 5, 0, 1, 20, 11, 23, 10, 28, 16, 1, 26, 5, 21, 20, 9, 22, 16, 9, 27, 16, 5, 23, 21, 8, 6, 16, 17, 21, 20, 4, 22, 12, 23, 24, 24, 17, 4, 12, 26, 19, 27, 26, 19, 9, 9, 26, 3, 5, 11, 8, 2, 25, 21, 20, 14, 15, 27, 0, 22, 12, 15, 14, 9, 28, 15, 29, 12, 9, 17, 13, 6, 3, 12, 14, 18, 6, 11, 1, 29, 20, 11, 18, 15, 2, 1, 6, 28, 16, 14, 11, 1, 17, 22, 21, 1, 13, 10, 22, 26, 0, 2, 26, 0, 21, 23, 4, 11, 15, 4, 22, 18, 1, 11, 8, 1, 4, 24, 0, 15, 11, 0, 10, 15, 10, 27, 11, 13, 3, 6, 21, 19, 29, 14, 18, 10, 19, 19, 7, 0, 13, 15, 2, 11]
=============================test40=============================
89215
[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, 1, 1, 1, 1, 1]
[22, 6, 27, 26, 21, 4, 1, 16, 9, 6, 0, 2, 11, 0, 16, 22, 7, 27, 11, 25, 22, 16, 3, 19, 25, 16, 28, 12, 3, 15, 8, 22, 3, 10, 16, 24, 14, 24, 27, 8, 13, 17, 2, 24, 2, 22, 20, 3, 16, 7, 7, 11, 12, 0, 1, 12, 26, 8, 24, 26, 12, 16, 23, 18, 5, 13, 25, 12, 9, 21, 11, 6, 29, 24, 25, 29, 24, 0, 2, 19, 2, 25, 16, 16, 17, 23, 19, 23, 22, 20, 6, 15, 22, 10, 7, 28, 11, 26, 13, 17, 1, 5, 27, 11, 21, 11, 13, 12, 16, 11, 3, 5, 21, 1, 5, 6, 11, 17, 26, 21, 19, 22, 25, 27, 14, 6, 28, 8, 25, 29, 9, 11, 2, 21, 17, 14, 11, 20, 24, 1, 7, 22, 13, 28, 8, 4, 22, 22, 1, 11]
=============================test41=============================
13597
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 2, 9, 3, 5, 7, 0, 1, 7, 2, 9, 4, 2, 3, 0, 5, 8, 2, 9, 4, 4, 6, 7, 2, 4, 6, 6, 9, 6, 8, 9, 6, 6, 3, 9, 1, 3, 0, 7, 1, 6, 0, 4, 8, 3, 8, 0, 7, 1, 3, 3, 8, 6, 0, 3, 7, 2, 5, 9, 4, 3, 3, 0, 2, 1, 9, 1, 2, 6, 3, 1, 1, 9, 0, 5, 6, 4, 7, 3, 8, 0, 7, 1, 0, 5, 2, 1, 2, 4, 6]
=============================test42=============================
17114
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1]
[0, 15, 0, 6, 0, 18, 0, 13, 3, 6, 2, 0, 3, 19, 15, 5, 6, 0, 1, 8, 18, 8, 10, 16, 5, 19, 8, 4, 1, 0, 18, 6, 3, 14, 19, 18, 1, 13, 8, 2, 13, 5, 9, 18, 13, 15, 5, 16, 14, 8, 14, 14, 4, 8, 9, 5, 16, 15, 4, 10, 10, 18, 0, 0, 2, 16, 16, 5, 1, 7, 5, 2, 14, 10, 3, 14, 15, 14, 3, 14]
=============================test43=============================
16773
[1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[5, 12, 0, 3, 15, 23, 21, 12, 22, 12, 21, 12, 2, 22, 29, 6, 10, 5, 8, 25, 11, 11, 16, 5, 24, 10, 26, 0, 20, 18, 11, 12, 26, 29, 11, 22, 11, 16, 23, 0, 26, 3, 29, 23, 24, 0, 27, 8, 29, 18, 9, 8, 2, 1, 9, 16, 26, 26, 25, 21, 26, 26, 11, 10, 22, 21, 24, 22, 26, 24]
=============================test44=============================
17621
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 7, 1, 9, 0, 2, 9, 6, 7, 2, 0, 4, 6, 3, 1, 1, 8, 6, 4, 9, 8, 7, 4, 5, 7, 4, 8, 5, 9, 9, 8, 0, 6, 0, 7, 7, 2, 4, 6, 8, 4, 2, 6, 0, 7, 6, 3, 1, 1, 3, 4, 1, 1, 2, 8, 0, 3, 4, 5, 0, 2, 3, 4, 5, 3, 1, 7, 4, 7, 2, 6, 7, 8, 0, 7, 5, 5, 5, 2, 5, 2, 7, 7, 7, 4, 0, 7, 2, 5, 1]
=============================test45=============================
18854
[1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[6, 19, 17, 7, 18, 5, 19, 14, 16, 18, 4, 9, 19, 15, 4, 12, 4, 14, 12, 13, 8, 3, 4, 13, 17, 8, 0, 5, 4, 15, 7, 0, 16, 5, 4, 4, 15, 17, 19, 1, 12, 4, 7, 6, 13, 6, 3, 6, 12, 6, 12, 5, 0, 7, 13, 13, 7, 9, 16, 19, 17, 10, 14, 17, 1, 6, 14, 19, 6, 19, 10, 4, 18, 14, 17, 19, 10, 9, 16, 6]
=============================test46=============================
20383
[1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1]
[21, 10, 28, 28, 11, 14, 22, 24, 11, 22, 22, 17, 16, 3, 7, 14, 2, 12, 26, 24, 1, 10, 0, 24, 27, 21, 6, 28, 21, 11, 13, 27, 27, 4, 26, 7, 26, 3, 13, 21, 23, 26, 16, 28, 1, 15, 29, 23, 21, 13, 6, 12, 2, 15, 3, 12, 17, 29, 7, 5, 22, 29, 11, 26, 22, 17, 16, 21, 10, 15]
=============================test47=============================
16700
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 9, 1, 9, 2, 5, 6, 7, 8, 7, 7, 4, 2, 3, 7, 4, 9, 5, 0, 2, 4, 9, 6, 7, 4, 8, 0, 9, 8, 3, 5, 4, 5, 4, 7, 0, 3, 6, 2, 7, 2, 1, 8, 3, 5, 0, 2, 4, 6, 2, 1, 0, 4, 0, 1, 0, 3, 7, 1, 5, 4, 4, 0, 7, 1, 1, 3, 9, 6, 6, 2, 6, 6, 7, 4, 7, 8, 9, 7, 3, 1, 4, 4, 2, 8, 3, 2, 2, 4, 4]
=============================test48=============================
17430
[1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1]
[4, 18, 0, 2, 10, 1, 12, 17, 16, 7, 7, 17, 17, 5, 7, 16, 15, 3, 13, 10, 1, 12, 17, 18, 16, 12, 15, 0, 1, 10, 7, 15, 2, 15, 7, 8, 11, 15, 4, 17, 4, 2, 0, 3, 15, 16, 18, 18, 17, 5, 8, 10, 0, 17, 11, 19, 2, 6, 6, 4, 19, 12, 11, 17, 18, 0, 11, 7, 18, 4, 8, 15, 0, 5, 2, 6, 7, 7, 6, 10]
=============================test49=============================
18617
[1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
[6, 4, 28, 23, 2, 14, 27, 10, 29, 27, 11, 11, 10, 7, 26, 7, 24, 20, 2, 24, 11, 9, 27, 0, 27, 0, 15, 13, 6, 29, 13, 29, 15, 28, 3, 3, 1, 6, 15, 16, 25, 9, 28, 17, 1, 6, 6, 21, 3, 4, 7, 0, 29, 24, 21, 16, 16, 26, 29, 9, 13, 10, 27, 20, 0, 4, 3, 24, 3, 25]
=============================test50=============================
17741
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 3, 7, 6, 5, 6, 1, 1, 6, 9, 3, 6, 6, 5, 3, 1, 9, 5, 5, 5, 4, 0, 6, 0, 6, 1, 0, 3, 2, 1, 2, 3, 5, 3, 0, 8, 1, 1, 0, 8, 0, 1, 4, 9, 3, 8, 9, 3, 9, 3, 0, 8, 6, 9, 6, 8, 0, 4, 3, 6, 7, 4, 7, 9, 8, 8, 6, 4, 7, 0, 6, 7, 7, 8, 5, 2, 2, 6, 8, 8, 0, 0, 1, 1, 0, 6, 5, 6, 6, 2, 3, 7, 6, 2, 3, 3, 5, 4, 4, 2]
=============================test51=============================
20930
[1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 0, 18, 6, 10, 0, 19, 0, 14, 0, 9, 11, 12, 6, 11, 4, 17, 12, 7, 1, 4, 17, 19, 7, 8, 11, 15, 1, 4, 2, 14, 4, 14, 11, 13, 6, 16, 18, 8, 6, 0, 2, 18, 9, 0, 0, 17, 19, 6, 7, 10, 6, 16, 10, 10, 2, 10, 9, 2, 2, 8, 2, 7, 0, 15, 2, 17, 7, 12, 19, 6, 12, 17, 1, 7, 17, 11, 13, 0, 4, 7, 1, 19, 14, 18, 7, 8, 9, 9, 14, 17, 1, 18, 15, 12, 9, 8, 0, 2, 16]
=============================test52=============================
22658
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 8, 5, 6, 0, 5, 3, 3, 0, 7, 5, 5, 8, 9, 3, 5, 6, 6, 2, 5, 6, 1, 4, 2, 3, 4, 7, 7, 1, 1, 9, 6, 3, 2, 3, 9, 4, 4, 5, 2, 5, 6, 5, 6, 6, 0, 4, 2, 4, 8, 2, 1, 2, 9, 7, 2, 7, 9, 8, 2, 7, 2, 7, 4, 6, 5, 5, 0, 5, 5, 1, 0, 3, 1, 8, 4, 7, 0, 7, 7, 0, 4, 0, 4, 8, 7, 3, 2, 6, 0, 6, 2, 6, 2, 7, 2, 2, 0, 9, 8]
=============================test53=============================
25505
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[14, 16, 11, 18, 15, 11, 4, 16, 17, 9, 14, 5, 18, 17, 17, 11, 5, 17, 4, 13, 12, 6, 15, 0, 14, 4, 7, 1, 13, 2, 16, 4, 11, 12, 13, 1, 3, 11, 11, 17, 9, 10, 8, 19, 9, 12, 4, 6, 17, 14, 12, 16, 12, 6, 10, 2, 6, 12, 17, 18, 18, 8, 0, 9, 8, 1, 4, 19, 2, 0, 8, 17, 3, 16, 8, 7, 7, 9, 10, 1, 2, 7, 14, 1, 10, 11, 0, 6, 11, 13, 13, 2, 15, 5, 17, 19, 5, 3, 13, 5]
=============================test54=============================
20909
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[2, 3, 3, 1, 3, 5, 0, 6, 6, 0, 5, 6, 5, 1, 3, 7, 4, 3, 1, 8, 8, 3, 2, 4, 0, 6, 1, 4, 7, 3, 3, 3, 9, 2, 5, 1, 5, 4, 9, 5, 3, 0, 2, 9, 0, 0, 6, 4, 8, 4, 2, 6, 5, 3, 8, 6, 7, 8, 2, 7, 2, 8, 5, 3, 7, 6, 8, 3, 3, 5, 1, 3, 1, 3, 7, 4, 5, 9, 6, 3, 6, 4, 0, 3, 1, 6, 0, 7, 7, 3, 9, 9, 7, 4, 5, 5, 6, 4, 7, 6]
=============================test55=============================
26221
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[2, 6, 2, 6, 18, 4, 7, 13, 18, 0, 3, 17, 3, 14, 16, 19, 8, 19, 7, 5, 9, 15, 7, 11, 0, 17, 0, 12, 18, 17, 16, 18, 2, 19, 7, 19, 6, 19, 6, 1, 11, 12, 5, 16, 10, 19, 0, 17, 14, 4, 17, 17, 3, 4, 2, 4, 2, 14, 16, 7, 17, 3, 1, 2, 19, 9, 2, 18, 3, 10, 18, 13, 7, 16, 8, 1, 4, 10, 6, 18, 3, 13, 1, 5, 1, 10, 14, 4, 17, 5, 16, 2, 6, 10, 6, 6, 19, 3, 2, 9]
=============================test56=============================
79598
[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, 1, 1, 1, 1, 1]
[29, 3, 13, 0, 7, 18, 9, 9, 10, 2, 1, 0, 10, 12, 9, 2, 27, 4, 17, 17, 16, 27, 25, 25, 1, 29, 5, 5, 0, 25, 9, 19, 2, 13, 29, 10, 1, 7, 21, 1, 1, 24, 26, 13, 29, 27, 21, 8, 17, 27, 27, 11, 12, 1, 18, 13, 18, 24, 17, 14, 24, 2, 28, 6, 3, 16, 28, 6, 26, 20, 3, 5, 0, 22, 16, 12, 5, 2, 11, 18, 26, 10, 12, 16, 6, 23, 19, 16, 21, 25, 15, 22, 24, 10, 26, 29, 23, 18, 21, 29, 3, 1, 28, 13, 29, 16, 11, 16, 13, 7, 13, 23, 2, 17, 18, 26, 13, 16, 9, 18, 12, 15, 7, 2, 0, 29, 8, 11, 19, 5, 3, 8, 18, 26, 21, 14, 20, 10, 9, 10, 28, 18, 19, 1, 28, 26, 5, 13, 18, 25, 13, 8, 27, 17, 0, 1, 17, 26, 17, 18, 23, 16, 11, 8, 15, 5, 17, 1, 21, 27, 17, 17, 14, 24, 10, 22, 24, 17, 19, 23, 26, 18, 12, 23, 2, 25, 28, 29, 2, 29, 4, 1, 1, 5, 15, 14, 24, 28, 6, 2]
=============================test57=============================
89623
[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, 1, 1, 1, 1, 1]
[27, 16, 24, 29, 16, 14, 22, 6, 0, 24, 12, 15, 6, 16, 24, 27, 10, 26, 20, 17, 13, 28, 2, 3, 13, 14, 14, 21, 9, 14, 13, 12, 3, 28, 2, 1, 11, 12, 13, 0, 29, 18, 10, 21, 13, 1, 6, 2, 29, 7, 22, 14, 16, 20, 18, 25, 1, 16, 20, 21, 12, 6, 18, 12, 2, 27, 7, 22, 25, 4, 26, 23, 16, 5, 20, 15, 23, 12, 14, 28, 6, 9, 18, 16, 18, 19, 24, 25, 28, 24, 29, 12, 0, 9, 0, 3, 12, 3, 24, 17, 6, 17, 14, 0, 1, 14, 23, 8, 8, 4, 12, 7, 15, 28, 0, 26, 9, 4, 7, 19, 1, 4, 2, 20, 17, 26, 5, 25, 27, 16, 23, 1, 28, 19, 18, 28, 10, 2, 16, 24, 23, 26, 7, 26, 9, 24, 27, 14, 19, 0, 1, 11, 14, 23, 21, 20, 11, 4, 9, 15, 2, 18, 18, 22, 10, 17, 0, 3, 6, 15, 29, 10, 28, 9, 28, 4, 0, 9, 11, 15, 3, 17, 6, 11, 18, 22, 3, 7, 27, 22, 24, 12, 13, 5, 1, 14, 28, 13, 11, 23]
=============================test58=============================
110784
[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, 1, 1, 1, 1, 1]
[19, 28, 11, 14, 7, 1, 6, 14, 1, 5, 20, 25, 15, 27, 10, 20, 23, 7, 23, 13, 27, 27, 7, 0, 1, 22, 6, 12, 27, 26, 6, 13, 15, 29, 1, 21, 16, 20, 24, 24, 1, 4, 27, 23, 28, 21, 0, 1, 25, 24, 11, 10, 13, 1, 11, 0, 12, 9, 16, 16, 6, 2, 2, 10, 23, 26, 26, 5, 17, 15, 28, 19, 24, 6, 16, 10, 1, 0, 28, 29, 5, 8, 4, 6, 22, 8, 18, 17, 26, 13, 15, 4, 16, 28, 17, 18, 7, 16, 10, 13, 9, 22, 21, 28, 6, 25, 17, 27, 27, 24, 16, 5, 25, 13, 29, 3, 16, 6, 0, 10, 26, 4, 6, 2, 3, 16, 12, 2, 25, 18, 9, 5, 24, 21, 15, 17, 26, 23, 29, 2, 8, 21, 5, 18, 29, 26, 28, 12, 8, 18, 2, 13, 27, 20, 26, 23, 15, 24, 20, 24, 16, 15, 28, 21, 16, 23, 22, 20, 12, 28, 16, 6, 9, 14, 25, 20, 20, 9, 14, 28, 23, 28, 29, 18, 20, 19, 8, 18, 24, 26, 22, 16, 6, 3, 11, 9, 26, 2, 1, 29]
=============================test59=============================
96510
[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, 1, 1, 1, 1, 1]
[28, 15, 10, 11, 8, 13, 12, 25, 5, 27, 28, 0, 15, 0, 10, 13, 15, 2, 1, 13, 13, 3, 1, 1, 17, 0, 23, 13, 14, 16, 29, 1, 11, 14, 1, 20, 28, 6, 4, 0, 1, 25, 1, 3, 10, 5, 28, 10, 7, 23, 27, 21, 28, 8, 17, 8, 5, 1, 20, 16, 26, 22, 28, 28, 29, 22, 8, 22, 4, 17, 16, 3, 12, 19, 18, 10, 20, 23, 10, 3, 12, 6, 13, 0, 3, 23, 1, 16, 27, 10, 15, 22, 20, 2, 11, 6, 16, 1, 16, 0, 2, 23, 6, 28, 6, 10, 26, 9, 23, 0, 14, 8, 0, 20, 5, 1, 5, 22, 21, 18, 14, 3, 28, 8, 4, 4, 20, 15, 6, 10, 29, 4, 12, 11, 2, 11, 17, 18, 0, 2, 8, 29, 16, 8, 12, 6, 8, 28, 6, 3, 21, 25, 17, 0, 23, 27, 10, 7, 22, 19, 22, 20, 28, 13, 9, 27, 21, 22, 27, 13, 1, 13, 7, 23, 23, 23, 21, 19, 3, 19, 10, 18, 13, 24, 2, 15, 12, 14, 5, 26, 24, 4, 14, 13, 12, 14, 9, 1, 20, 14]
=============================test60=============================
80071
[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, 1, 1, 1, 1, 1]
[26, 18, 14, 14, 11, 26, 10, 20, 15, 28, 19, 12, 9, 9, 2, 24, 5, 22, 3, 22, 17, 4, 4, 0, 22, 20, 8, 4, 20, 16, 12, 28, 22, 5, 23, 0, 27, 20, 9, 19, 15, 14, 24, 1, 12, 24, 3, 13, 14, 26, 18, 18, 9, 15, 13, 26, 11, 1, 19, 0, 15, 17, 21, 23, 5, 27, 8, 9, 16, 10, 22, 28, 11, 25, 6, 22, 0, 18, 8, 20, 27, 16, 14, 10, 21, 11, 5, 25, 10, 17, 22, 15, 24, 0, 25, 9, 16, 28, 16, 19, 7, 3, 4, 10, 21, 0, 14, 5, 25, 19, 21, 8, 11, 21, 12, 12, 12, 12, 12, 22, 20, 10, 9, 1, 27, 9, 7, 2, 6, 15, 27, 9, 7, 26, 2, 2, 15, 2, 10, 5, 22, 19, 19, 20, 10, 27, 11, 26, 21, 3, 24, 7, 26, 25, 13, 20, 6, 22, 4, 0, 29, 4, 21, 27, 16, 2, 27, 7, 25, 23, 9, 11, 28, 17, 25, 4, 19, 1, 8, 3, 20, 12, 13, 10, 1, 14, 6, 21, 13, 17, 8, 28, 3, 2, 12, 7, 13, 13, 5, 6]
=============================test61=============================
90548
[0, 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, 1, 1, 1, 1]
[25, 15, 4, 13, 13, 25, 13, 18, 24, 1, 1, 2, 21, 26, 16, 1, 27, 24, 29, 4, 28, 16, 20, 25, 15, 21, 7, 13, 12, 14, 8, 28, 8, 6, 6, 2, 12, 12, 27, 1, 21, 18, 6, 3, 10, 28, 23, 5, 10, 24, 29, 3, 13, 26, 14, 29, 25, 20, 21, 22, 4, 24, 17, 20, 2, 5, 6, 14, 8, 4, 14, 4, 3, 10, 11, 26, 12, 20, 5, 22, 23, 18, 5, 27, 17, 21, 24, 2, 10, 26, 4, 26, 13, 22, 27, 2, 16, 4, 17, 19, 16, 19, 15, 17, 8, 29, 27, 12, 23, 17, 9, 10, 8, 20, 11, 26, 25, 13, 8, 22, 28, 8, 7, 6, 29, 9, 4, 6, 21, 16, 19, 24, 26, 26, 29, 13, 18, 22, 21, 19, 18, 29, 13, 26, 18, 12, 27, 22, 4, 29, 23, 18, 21, 29, 14, 27, 1, 26, 15, 23, 13, 18, 17, 4, 6, 23, 21, 17, 6, 5, 3, 11, 15, 9, 22, 28, 15, 7, 15, 13, 14, 21, 5, 25, 14, 13, 20, 24, 5, 23, 12, 22, 26, 17, 2, 23, 7, 8, 8, 25]
=============================test62=============================
110151
[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, 1, 1, 1, 1, 1]
[20, 22, 23, 21, 0, 28, 20, 21, 10, 28, 7, 21, 8, 27, 7, 16, 13, 17, 16, 20, 19, 12, 9, 13, 18, 18, 29, 7, 15, 28, 27, 25, 29, 6, 13, 1, 16, 4, 26, 29, 1, 23, 11, 16, 18, 17, 24, 6, 21, 28, 13, 21, 14, 9, 11, 11, 20, 18, 0, 25, 20, 26, 5, 18, 19, 23, 20, 6, 24, 24, 22, 28, 20, 1, 1, 3, 8, 15, 22, 16, 10, 29, 17, 16, 28, 22, 13, 18, 17, 24, 6, 15, 2, 18, 29, 28, 10, 10, 12, 0, 13, 25, 14, 27, 6, 13, 4, 2, 2, 6, 13, 22, 6, 23, 17, 24, 25, 12, 29, 28, 20, 13, 7, 1, 14, 22, 29, 18, 17, 12, 0, 12, 1, 11, 20, 17, 18, 7, 26, 15, 19, 22, 27, 0, 21, 3, 25, 14, 29, 2, 21, 17, 29, 27, 26, 22, 2, 12, 6, 21, 26, 2, 14, 18, 2, 4, 7, 9, 11, 2, 22, 16, 24, 13, 2, 4, 3, 14, 4, 16, 28, 2, 12, 11, 4, 3, 29, 25, 2, 13, 11, 25, 1, 11, 23, 0, 19, 25, 21, 10]
=============================test63=============================
95368
[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, 1, 1, 1, 1, 1]
[8, 5, 20, 13, 13, 13, 8, 11, 4, 14, 12, 9, 0, 29, 12, 16, 21, 2, 14, 12, 27, 3, 22, 1, 16, 20, 29, 15, 23, 3, 29, 29, 1, 27, 22, 3, 20, 5, 14, 19, 21, 18, 21, 11, 11, 7, 12, 14, 22, 19, 13, 4, 9, 22, 28, 0, 9, 20, 5, 7, 28, 11, 20, 15, 1, 29, 3, 23, 19, 5, 19, 18, 17, 21, 20, 1, 13, 17, 11, 14, 24, 26, 15, 8, 18, 12, 6, 13, 14, 8, 23, 0, 13, 20, 16, 15, 2, 18, 18, 21, 10, 11, 17, 25, 13, 25, 22, 13, 5, 12, 1, 0, 2, 13, 19, 27, 25, 24, 7, 16, 5, 22, 4, 14, 7, 15, 18, 2, 11, 23, 4, 1, 29, 2, 17, 21, 0, 9, 14, 2, 17, 2, 22, 2, 25, 2, 1, 3, 1, 11, 0, 20, 22, 3, 28, 4, 24, 20, 18, 6, 2, 10, 15, 17, 9, 7, 13, 14, 15, 11, 21, 5, 9, 3, 29, 7, 9, 22, 10, 1, 14, 6, 24, 20, 26, 7, 17, 19, 9, 5, 11, 21, 28, 23, 17, 8, 16, 13, 5, 9]
=============================test64=============================
81002
[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, 1, 1, 1, 1, 1]
[8, 7, 27, 13, 13, 21, 16, 20, 15, 8, 7, 15, 22, 12, 21, 27, 11, 6, 2, 15, 18, 19, 13, 22, 18, 16, 11, 8, 16, 21, 4, 11, 25, 6, 29, 19, 2, 20, 17, 16, 10, 19, 8, 8, 28, 2, 5, 24, 14, 14, 16, 20, 19, 22, 26, 13, 9, 26, 22, 5, 10, 4, 14, 0, 2, 4, 3, 7, 13, 15, 29, 21, 17, 27, 14, 3, 27, 27, 12, 13, 16, 9, 9, 5, 3, 15, 17, 27, 21, 25, 6, 0, 10, 25, 15, 24, 27, 16, 4, 5, 10, 12, 9, 22, 28, 19, 11, 1, 1, 11, 12, 14, 27, 8, 29, 18, 27, 29, 13, 25, 5, 22, 4, 10, 29, 13, 29, 25, 7, 12, 22, 4, 2, 22, 3, 21, 13, 1, 6, 18, 15, 19, 20, 7, 13, 14, 9, 15, 26, 13, 10, 10, 14, 24, 10, 17, 8, 19, 20, 27, 26, 3, 22, 22, 8, 10, 6, 17, 21, 5, 6, 14, 13, 1, 7, 23, 28, 21, 22, 22, 9, 28, 16, 2, 13, 25, 15, 9, 14, 7, 20, 21, 4, 7, 21, 20, 5, 4, 9, 24]
=============================test65=============================
88975
[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, 1, 1, 1, 1, 1]
[20, 18, 3, 1, 0, 27, 23, 2, 18, 6, 7, 0, 23, 16, 13, 8, 3, 19, 10, 12, 13, 0, 14, 9, 26, 10, 29, 14, 5, 16, 29, 25, 5, 5, 10, 2, 26, 10, 23, 19, 14, 11, 20, 28, 13, 29, 3, 26, 13, 20, 28, 25, 11, 5, 17, 16, 20, 13, 5, 13, 6, 14, 24, 15, 27, 0, 22, 27, 14, 7, 10, 9, 22, 13, 28, 10, 4, 19, 28, 29, 14, 10, 11, 4, 2, 1, 16, 17, 4, 12, 24, 5, 17, 1, 11, 2, 4, 14, 16, 2, 18, 2, 20, 29, 14, 19, 24, 28, 3, 26, 0, 13, 10, 19, 25, 22, 25, 29, 6, 0, 9, 25, 23, 23, 21, 2, 7, 17, 3, 11, 15, 12, 18, 20, 13, 27, 22, 12, 22, 0, 26, 29, 17, 19, 10, 9, 29, 1, 18, 24, 6, 18, 15, 19, 4, 22, 7, 4, 11, 13, 15, 28, 11, 23, 25, 13, 2, 24, 21, 27, 22, 2, 29, 23, 16, 6, 17, 27, 24, 15, 29, 9, 5, 1, 12, 15, 29, 25, 24, 0, 1, 12, 12, 15, 19, 12, 4, 3, 3, 1]
=============================test66=============================
110525
[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, 1, 1, 1, 1, 1]
[7, 18, 17, 24, 6, 25, 2, 15, 1, 28, 23, 3, 25, 14, 3, 2, 0, 16, 9, 23, 12, 6, 25, 18, 19, 8, 28, 4, 26, 14, 27, 14, 12, 6, 2, 27, 11, 5, 21, 0, 28, 29, 26, 5, 0, 3, 8, 11, 16, 0, 26, 4, 21, 11, 4, 18, 8, 6, 14, 0, 24, 11, 12, 14, 2, 5, 29, 25, 10, 10, 24, 1, 1, 13, 0, 4, 10, 1, 6, 11, 23, 2, 25, 26, 6, 15, 13, 13, 20, 27, 10, 22, 7, 0, 5, 13, 7, 2, 7, 28, 0, 25, 19, 2, 10, 17, 28, 19, 9, 7, 9, 2, 19, 10, 25, 2, 1, 20, 11, 29, 11, 27, 1, 28, 23, 9, 26, 23, 21, 15, 14, 5, 24, 14, 5, 24, 9, 9, 12, 23, 18, 28, 2, 0, 0, 17, 23, 24, 13, 0, 27, 16, 28, 26, 9, 10, 9, 10, 22, 12, 19, 2, 5, 28, 24, 3, 16, 8, 1, 27, 16, 26, 24, 3, 10, 26, 19, 13, 5, 0, 20, 1, 4, 2, 1, 8, 28, 25, 18, 5, 6, 13, 29, 29, 3, 21, 15, 19, 29, 22]
=============================test68=============================
80370
[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, 1, 1, 1, 1, 1]
[26, 10, 3, 23, 12, 5, 1, 19, 11, 1, 16, 6, 6, 24, 2, 27, 21, 18, 11, 21, 25, 11, 4, 19, 14, 9, 1, 24, 23, 20, 21, 24, 6, 0, 25, 7, 10, 24, 19, 3, 21, 13, 19, 23, 21, 18, 18, 17, 29, 12, 17, 3, 26, 3, 16, 5, 6, 4, 29, 13, 18, 24, 24, 27, 1, 6, 2, 29, 18, 17, 9, 12, 5, 9, 20, 27, 11, 28, 18, 28, 1, 3, 16, 29, 18, 22, 12, 28, 24, 21, 16, 17, 27, 0, 22, 9, 17, 3, 28, 2, 4, 14, 23, 8, 7, 6, 23, 23, 26, 10, 24, 9, 10, 29, 22, 15, 18, 24, 11, 0, 25, 10, 8, 9, 12, 17, 9, 26, 6, 8, 27, 9, 15, 8, 0, 25, 12, 1, 19, 22, 1, 4, 5, 8, 28, 15, 19, 16, 0, 13, 2, 6, 7, 10, 17, 0, 25, 29, 24, 14, 15, 4, 16, 22, 0, 27, 5, 8, 18, 20, 18, 25, 9, 6, 12, 12, 4, 16, 27, 18, 27, 28, 20, 26, 26, 22, 25, 12, 12, 14, 18, 7, 25, 5, 23, 16, 27, 4, 5, 10]
=============================test69=============================
88559
[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, 1, 1, 1, 1, 1]
[19, 1, 21, 4, 18, 5, 6, 13, 14, 27, 25, 25, 11, 18, 6, 26, 10, 17, 2, 25, 26, 13, 19, 15, 10, 6, 4, 2, 19, 19, 24, 23, 26, 7, 29, 24, 10, 16, 22, 11, 16, 1, 21, 29, 21, 19, 20, 17, 22, 16, 14, 0, 16, 22, 2, 14, 8, 26, 2, 19, 20, 29, 22, 19, 20, 21, 4, 14, 26, 16, 14, 9, 11, 20, 26, 21, 28, 4, 13, 11, 13, 1, 11, 24, 24, 4, 17, 13, 6, 6, 4, 4, 7, 21, 25, 17, 23, 22, 18, 27, 2, 24, 23, 21, 6, 12, 27, 9, 12, 11, 22, 5, 16, 22, 25, 17, 0, 29, 0, 22, 27, 3, 25, 10, 8, 12, 5, 1, 15, 25, 6, 0, 29, 21, 25, 28, 4, 12, 19, 25, 14, 13, 26, 3, 25, 23, 9, 15, 0, 4, 7, 4, 20, 16, 3, 20, 18, 19, 11, 0, 6, 20, 2, 15, 9, 16, 29, 28, 20, 8, 16, 5, 20, 9, 17, 26, 27, 23, 21, 28, 19, 14, 9, 23, 6, 5, 21, 8, 6, 16, 1, 2, 2, 1, 20, 9, 12, 20, 27, 9]
=============================test70=============================
110669
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1]
[9, 8, 9, 22, 15, 17, 3, 29, 2, 15, 28, 2, 8, 27, 8, 19, 12, 27, 10, 1, 22, 16, 20, 5, 13, 3, 10, 14, 15, 8, 2, 21, 23, 5, 20, 14, 22, 7, 20, 8, 14, 27, 2, 14, 22, 17, 11, 1, 5, 6, 0, 10, 19, 27, 23, 19, 1, 0, 7, 6, 29, 0, 11, 14, 4, 0, 8, 17, 18, 18, 9, 29, 19, 7, 29, 18, 10, 22, 15, 8, 1, 4, 7, 19, 25, 25, 22, 19, 14, 1, 28, 5, 18, 9, 23, 5, 13, 11, 9, 22, 18, 21, 17, 12, 15, 2, 20, 8, 12, 12, 23, 18, 3, 20, 10, 20, 22, 28, 16, 10, 12, 5, 20, 0, 16, 2, 4, 6, 8, 18, 1, 7, 7, 26, 23, 27, 3, 2, 12, 23, 13, 23, 28, 13, 15, 9, 28, 7, 12, 23, 12, 3, 26, 11, 26, 17, 6, 2, 12, 5, 29, 8, 21, 27, 1, 20, 5, 7, 2, 15, 25, 15, 26, 7, 26, 26, 25, 6, 18, 19, 10, 17, 25, 12, 5, 22, 20, 3, 9, 17, 15, 11, 3, 12, 16, 13, 14, 23, 12, 16]
=============================test71=============================
95379
[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, 1, 1, 1, 1, 1]
[12, 20, 27, 28, 13, 14, 14, 9, 7, 15, 19, 29, 12, 11, 0, 22, 1, 24, 12, 12, 10, 20, 1, 3, 27, 12, 24, 10, 29, 21, 28, 23, 20, 27, 19, 13, 3, 5, 23, 28, 25, 18, 27, 29, 20, 2, 14, 21, 28, 11, 0, 23, 20, 2, 6, 24, 2, 16, 2, 20, 4, 2, 13, 0, 14, 12, 1, 7, 0, 13, 21, 27, 11, 13, 16, 21, 0, 14, 25, 16, 29, 17, 21, 2, 8, 8, 0, 3, 19, 28, 29, 3, 10, 5, 3, 19, 9, 19, 0, 4, 26, 12, 29, 16, 10, 11, 10, 29, 11, 15, 1, 6, 5, 8, 22, 26, 26, 4, 9, 26, 22, 28, 9, 28, 10, 5, 17, 21, 0, 7, 4, 5, 13, 19, 14, 10, 17, 15, 24, 2, 0, 15, 10, 13, 0, 6, 8, 29, 15, 9, 25, 26, 1, 27, 18, 1, 29, 16, 2, 28, 9, 9, 24, 22, 12, 19, 27, 4, 6, 21, 17, 2, 15, 22, 6, 24, 10, 20, 8, 1, 21, 28, 19, 15, 10, 17, 16, 21, 8, 9, 13, 4, 12, 10, 11, 23, 13, 9, 20, 25]
3. 局部搜索
3.1 算法框架
局部搜索基本想法如下
- 生成一个初始解(这里可以以贪心解作为初始解), 设置为局部最优解
- 对此局部最优解进行一定修改,变成与之相近的新解
- 判断此新解是否优于局部最优解, 如果优于则替换局部最优
对于如何进行修改生成新解 我这里的策略就是随机选择一个用户把此用户安排到本身工厂以外的其他工厂,若此工厂没开放,则进行开放, 若原来工厂只有此用户,则把原来工厂关闭更新所有的cost
3.2 关键代码和注释
这是生成解的关键函数
这里的cost 是在生成解之后进行计算的
#根据传入的解 生成一个局部的解, 并且求出此解的cost 当做参数传出
def produce_local_search_solution(bestFactoryOpen, bestValueAssign, capacity_copy):
flag = True
fac_num = -1
#选择的随机顾客标号为i
i = random.randint(0, m - 1)
while (flag):
# 生成被安排的随机工厂
fac_num = random.randint(0, n - 1)
#如果生成的随机工厂就是原来的工厂则继续生成
if (fac_num == bestValueAssign[i]):
continue
# 如果容量符合要求则选择该工厂
if (demand_customer[i] <= capacity_copy[fac_num]):
# 如果工厂没开 则开工厂
if (bestFactoryOpen[fac_num] == 0):
bestFactoryOpen[fac_num] = 1
#给离开的工厂加上相应的容量
capacity_copy[bestValueAssign[i]] += demand_customer[i]
#同时减去相应的assign消耗
#如果离开的工厂的容量变为初始容量, 则把工厂设置为关闭
if(capacity_copy[bestValueAssign[i]] == capacity[bestValueAssign[i]]):
bestFactoryOpen[bestValueAssign[i]] = 0
# 更新安排表
bestValueAssign[i] = fac_num
# 减去相应容量
capacity_copy[fac_num] -= demand_customer[i]
# 更新总共total_assignment_cost
# 更新flag
flag = False
#计算此解的cost 当做参数传出去
bestCost = 0
for s in range(m):
bestCost += assignment_cost[i][bestValueAssign[s]]
for d in range(n):
bestCost += bestFactoryOpen[d] * opening_cost[d]
return bestCost,bestFactoryOpen, bestValueAssign, capacity_copy
3.3 算法结果
3.3.1 结果表
- | 局部搜索cost | 局部搜索 time(s) |
---|---|---|
p1 | 12940 | 1.611006 |
p2 | 12662 | 1.616155 |
p3 | 15246 | 1.597958 |
p4 | 15945 | 1.634933 |
p5 | 15959 | 1.911517 |
p6 | 14412 | 1.881594 |
p7 | 16347 | 1.914353 |
p8 | 18335 | 1.914085 |
p9 | 14434 | 1.383706 |
p10 | 12959 | 1.371393 |
p11 | 14754 | 1.375677 |
p12 | 16793 | 1.375278 |
p13 | 18928 | 1.555986 |
p14 | 16852 | 1.559896 |
p15 | 19881 | 1.541984 |
p16 | 23286 | 1.567830 |
p17 | 18501 | 1.542376 |
p18 | 16732 | 1.538791 |
p19 | 19425 | 1.532036 |
p20 | 22656 | 1.535684 |
p21 | 19079 | 1.520752 |
p22 | 16393 | 1.514622 |
p23 | 20391 | 1.521705 |
p24 | 23213 | 1.532024 |
p25 | 32776 | 3.020063 |
p26 | 29390 | 3.041976 |
p27 | 35092 | 3.005009 |
p28 | 40842 | 3.023259 |
p29 | 31958 | 3.030729 |
p30 | 29519 | 2.934350 |
p31 | 35761 | 2.997456 |
p32 | 41655 | 2.958145 |
p33 | 32956 | 3.015352 |
p34 | 29814 | 3.008410 |
p35 | 35333 | 2.952897 |
p36 | 41871 | 2.953205 |
p37 | 33068 | 3.007182 |
p38 | 29018 | 2.992898 |
p39 | 35316 | 2.986342 |
p40 | 41794 | 2.996479 |
p41 | 5627 | 2.100240 |
p42 | 12636 | 1.955856 |
p43 | 13829 | 1.930061 |
p44 | 6017 | 2.251095 |
p45 | 12549 | 1.969584 |
p46 | 16547 | 1.951602 |
p47 | 5029 | 2.250038 |
p48 | 9532 | 1.962069 |
p49 | 12603 | 1.922715 |
p50 | 6412 | 2.311359 |
p51 | 11545 | 2.205665 |
p52 | 10539 | 2.446955 |
p53 | 16222 | 2.272284 |
p54 | 7168 | 2.537065 |
p55 | 11918 | 2.282920 |
p56 | 60150 | 3.705955 |
p57 | 68465 | 3.685768 |
p58 | 90445 | 3.735101 |
p59 | 75938 | 3.698938 |
p60 | 58583 | 3.667501 |
p61 | 69205 | 3.671071 |
p62 | 89912 | 3.570421 |
p63 | 75251 | 3.575067 |
p64 | 59592 | 3.665967 |
p65 | 69263 | 3.613478 |
p66 | 89662 | 3.677088 |
p68 | 59551 | 3.678104 |
p69 | 68856 | 3.640892 |
p70 | 89284 | 3.638021 |
p71 | 73966 | 3.668180 |
3.3.2 解决方案
=============================test1=============================
13741
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 5, 0, 0, 8, 1, 4, 6, 3, 0, 8, 6, 0, 5, 6, 9, 4, 5, 4, 2, 2, 3, 7, 0, 4, 9, 2, 7, 5, 2, 3, 2, 6, 8, 2, 0, 0, 9, 2, 6, 7, 1, 4, 3, 2, 4, 3, 8, 2, 1]
=============================test2=============================
12133
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 6, 9, 8, 0, 5, 0, 1, 2, 8, 0, 0, 3, 5, 2, 3, 3, 4, 9, 0, 0, 6, 3, 9, 5, 3, 0, 6, 9, 8, 6, 2, 7, 3, 4, 5, 7, 4, 5, 5, 0, 7, 8, 1, 2, 1, 5, 2, 5, 4]
=============================test3=============================
14595
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 2, 9, 7, 9, 0, 2, 4, 9, 1, 0, 2, 3, 4, 0, 3, 8, 2, 2, 0, 5, 4, 5, 5, 7, 3, 3, 1, 0, 4, 7, 9, 1, 5, 4, 4, 7, 6, 3, 4, 6, 9, 5, 6, 8, 6, 4, 7, 4, 3]
=============================test4=============================
15532
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 6, 9, 3, 2, 4, 6, 5, 7, 5, 9, 7, 8, 5, 5, 6, 7, 2, 2, 6, 5, 6, 6, 3, 1, 9, 3, 1, 5, 2, 6, 4, 8, 2, 8, 7, 4, 0, 0, 9, 3, 1, 1, 1, 7, 7, 2, 3, 4, 9]
=============================test5=============================
15001
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[6, 4, 6, 8, 9, 5, 9, 2, 9, 3, 5, 1, 2, 2, 1, 3, 7, 5, 4, 2, 0, 8, 2, 7, 7, 7, 7, 3, 8, 4, 8, 0, 4, 1, 9, 6, 9, 8, 2, 0, 7, 1, 4, 9, 7, 4, 0, 1, 8, 4]
=============================test6=============================
14561
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 0, 2, 3, 0, 4, 9, 6, 2, 4, 6, 5, 1, 1, 9, 0, 8, 5, 0, 6, 1, 5, 8, 3, 1, 2, 6, 2, 5, 5, 7, 1, 7, 9, 8, 3, 6, 0, 3, 1, 6, 4, 0, 3, 8, 1, 9, 0, 8, 4]
=============================test7=============================
16114
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[7, 9, 4, 1, 7, 3, 5, 7, 3, 6, 8, 5, 7, 6, 4, 0, 0, 3, 7, 2, 8, 5, 4, 6, 2, 2, 3, 1, 2, 7, 5, 9, 8, 6, 9, 9, 4, 2, 3, 4, 1, 4, 0, 7, 3, 8, 2, 8, 1, 5]
=============================test8=============================
17742
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 3, 3, 9, 4, 5, 8, 9, 8, 4, 0, 8, 8, 0, 7, 4, 4, 9, 3, 1, 0, 8, 9, 1, 6, 3, 7, 0, 4, 6, 1, 0, 1, 6, 7, 7, 9, 3, 2, 6, 6, 6, 8, 7, 0, 1, 5, 3, 6, 4]
=============================test9=============================
13945
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 2, 0, 9, 3, 7, 2, 2, 6, 8, 7, 2, 0, 3, 0, 9, 9, 5, 0, 2, 9, 2, 0, 1, 8, 4, 7, 3, 7, 3, 5, 2, 5, 5, 8, 4, 9, 0, 7, 3, 7, 3, 9, 4, 6, 8, 9, 4, 4, 8]
=============================test10=============================
13113
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 5, 4, 2, 6, 7, 5, 1, 6, 3, 8, 4, 3, 1, 2, 0, 3, 1, 0, 0, 4, 9, 8, 0, 6, 6, 4, 2, 8, 7, 5, 1, 2, 3, 3, 7, 7, 3, 2, 0, 6, 2, 0, 2, 3, 5, 6, 3, 8, 6]
=============================test11=============================
15124
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 9, 4, 1, 7, 9, 4, 8, 4, 2, 2, 6, 9, 1, 4, 1, 7, 2, 2, 4, 5, 2, 7, 2, 6, 2, 3, 0, 7, 0, 0, 7, 2, 1, 6, 0, 9, 6, 8, 1, 9, 3, 9, 9, 4, 5, 7, 2, 7, 0]
=============================test12=============================
17026
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 1, 7, 0, 5, 3, 3, 4, 8, 0, 4, 8, 2, 1, 0, 7, 5, 9, 1, 8, 7, 3, 0, 5, 6, 5, 4, 5, 2, 5, 6, 8, 0, 0, 5, 7, 8, 0, 5, 7, 7, 9, 4, 1, 1, 4, 2, 9, 2, 9]
=============================test13=============================
19264
[1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[11, 13, 16, 13, 14, 19, 5, 13, 14, 6, 19, 9, 7, 3, 8, 19, 3, 8, 16, 9, 17, 18, 12, 4, 10, 6, 4, 19, 6, 8, 17, 5, 0, 10, 12, 0, 18, 15, 4, 16, 16, 2, 11, 2, 5, 14, 7, 4, 11, 5]
=============================test14=============================
16686
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 11, 2, 12, 8, 0, 6, 18, 4, 19, 17, 9, 15, 5, 17, 12, 16, 9, 12, 6, 14, 13, 9, 19, 11, 2, 0, 4, 7, 2, 18, 13, 13, 6, 15, 1, 4, 7, 10, 17, 11, 10, 15, 6, 10, 17, 8, 8, 3, 5]
=============================test15=============================
19947
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[16, 7, 17, 8, 15, 4, 15, 0, 11, 19, 18, 7, 17, 14, 4, 9, 11, 12, 7, 8, 1, 13, 16, 3, 4, 3, 3, 9, 17, 9, 10, 10, 2, 16, 11, 12, 15, 0, 16, 4, 15, 19, 18, 14, 17, 7, 7, 5, 6, 8]
=============================test16=============================
22628
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[19, 9, 9, 8, 15, 5, 4, 12, 6, 7, 5, 2, 4, 4, 14, 8, 9, 7, 10, 16, 2, 7, 9, 6, 13, 13, 14, 14, 16, 8, 13, 15, 19, 17, 3, 11, 17, 17, 0, 5, 17, 11, 3, 1, 11, 2, 8, 2, 13, 18]
=============================test17=============================
18356
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1]
[0, 3, 12, 5, 16, 19, 10, 12, 10, 8, 14, 13, 15, 10, 8, 3, 5, 8, 13, 5, 5, 9, 6, 8, 4, 13, 12, 11, 3, 13, 8, 6, 16, 4, 13, 6, 1, 11, 9, 19, 6, 2, 3, 0, 16, 12, 7, 8, 15, 14]
=============================test18=============================
15950
[0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 12, 8, 6, 13, 10, 7, 7, 16, 14, 14, 15, 2, 15, 7, 15, 4, 15, 8, 1, 16, 13, 9, 4, 3, 1, 17, 15, 19, 10, 2, 11, 11, 1, 14, 12, 17, 3, 7, 13, 14, 17, 3, 1, 9, 18, 4, 8, 14, 14]
=============================test19=============================
19968
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1]
[14, 19, 14, 5, 15, 11, 13, 17, 3, 14, 11, 1, 3, 11, 14, 1, 8, 2, 10, 5, 6, 9, 13, 17, 10, 14, 3, 17, 16, 11, 5, 16, 9, 17, 4, 15, 4, 12, 5, 9, 19, 17, 19, 0, 13, 12, 7, 15, 15, 16]
=============================test20=============================
22995
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
[3, 8, 11, 5, 7, 1, 7, 1, 18, 18, 6, 15, 11, 16, 17, 11, 3, 11, 2, 1, 11, 1, 3, 2, 16, 4, 13, 8, 1, 3, 8, 11, 14, 1, 17, 18, 6, 1, 4, 11, 6, 9, 19, 8, 19, 16, 5, 10, 15, 14]
=============================test21=============================
18561
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1]
[5, 5, 9, 9, 3, 15, 18, 1, 7, 10, 3, 15, 6, 18, 14, 19, 3, 14, 4, 9, 7, 17, 7, 17, 18, 3, 6, 8, 12, 0, 0, 6, 10, 11, 15, 2, 9, 1, 6, 19, 4, 4, 4, 10, 6, 19, 0, 0, 19, 17]
=============================test22=============================
16545
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 2, 5, 19, 15, 17, 13, 9, 18, 18, 16, 13, 1, 6, 13, 2, 10, 2, 0, 2, 3, 18, 3, 17, 2, 12, 8, 3, 9, 16, 9, 6, 18, 18, 16, 8, 7, 1, 12, 14, 2, 11, 12, 4, 4, 12, 8, 6, 6, 1]
=============================test23=============================
19104
[1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[7, 12, 19, 12, 18, 16, 12, 5, 5, 19, 13, 9, 11, 19, 3, 3, 10, 15, 14, 5, 6, 4, 0, 14, 13, 15, 7, 9, 10, 10, 18, 18, 12, 6, 3, 17, 8, 11, 9, 4, 6, 11, 2, 4, 19, 4, 10, 17, 16, 6]
=============================test24=============================
22276
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1]
[1, 4, 11, 4, 12, 0, 17, 19, 3, 1, 17, 19, 8, 3, 17, 1, 3, 16, 9, 3, 1, 4, 19, 9, 16, 12, 16, 3, 10, 8, 2, 8, 3, 14, 7, 3, 6, 5, 9, 13, 16, 9, 16, 10, 1, 19, 19, 17, 5, 10]
=============================test25=============================
32701
[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, 1, 1, 1, 1, 1]
[13, 21, 10, 29, 6, 4, 1, 3, 22, 5, 13, 23, 13, 23, 15, 1, 0, 23, 29, 17, 27, 29, 9, 24, 20, 0, 0, 9, 7, 22, 18, 10, 15, 12, 16, 3, 14, 7, 11, 0, 17, 6, 10, 14, 29, 21, 16, 10, 8, 25, 26, 16, 29, 22, 5, 11, 8, 6, 17, 1, 10, 1, 8, 1, 23, 21, 27, 9, 27, 23, 22, 20, 10, 4, 24, 4, 21, 29, 28, 7, 23, 24, 6, 2, 23, 25, 10, 28, 2, 23, 18, 3, 21, 28, 19, 15, 6, 5, 18, 10, 9, 12, 24, 0, 17, 9, 8, 29, 10, 22, 6, 3, 19, 22, 22, 16, 9, 11, 28, 1, 9, 21, 2, 20, 20, 4, 16, 1, 25, 8, 17, 2, 4, 10, 27, 20, 0, 6, 14, 21, 20, 19, 26, 24, 5, 3, 17, 18, 12, 7]
=============================test26=============================
30269
[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, 1, 1, 1, 1, 1]
[10, 18, 21, 1, 17, 1, 28, 19, 3, 16, 14, 24, 27, 11, 13, 19, 2, 20, 2, 23, 6, 17, 11, 27, 19, 27, 11, 2, 23, 6, 25, 11, 21, 9, 28, 4, 6, 14, 9, 5, 3, 10, 0, 25, 26, 29, 5, 15, 29, 10, 5, 19, 21, 13, 27, 26, 3, 11, 2, 27, 18, 21, 29, 28, 21, 15, 16, 22, 4, 18, 8, 6, 23, 7, 18, 22, 3, 2, 28, 29, 20, 4, 12, 17, 4, 11, 8, 16, 24, 11, 28, 26, 0, 10, 29, 29, 20, 11, 23, 22, 28, 23, 1, 0, 29, 5, 26, 3, 28, 16, 23, 8, 4, 22, 16, 28, 19, 25, 3, 21, 25, 7, 2, 4, 20, 7, 5, 4, 26, 11, 3, 23, 13, 25, 10, 0, 24, 16, 19, 15, 28, 29, 9, 11, 19, 22, 3, 11, 23, 12]
=============================test27=============================
35895
[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, 1, 1, 1, 1, 1]
[8, 5, 6, 9, 25, 0, 2, 9, 17, 13, 25, 2, 24, 29, 24, 18, 8, 14, 2, 26, 29, 21, 14, 8, 2, 22, 26, 0, 11, 24, 26, 10, 9, 7, 14, 3, 14, 22, 20, 5, 1, 26, 19, 18, 20, 26, 18, 9, 15, 28, 13, 11, 13, 3, 4, 10, 21, 0, 29, 1, 8, 29, 20, 17, 4, 17, 18, 7, 6, 16, 12, 9, 28, 26, 27, 16, 22, 29, 6, 14, 13, 5, 16, 23, 24, 11, 28, 8, 11, 10, 13, 3, 6, 12, 23, 23, 28, 7, 6, 18, 1, 20, 2, 2, 12, 1, 10, 12, 23, 25, 2, 3, 16, 16, 20, 9, 11, 7, 0, 21, 29, 12, 11, 1, 18, 13, 9, 24, 12, 5, 27, 7, 14, 24, 17, 5, 9, 15, 7, 29, 11, 20, 7, 4, 28, 23, 10, 9, 24, 9]
=============================test28=============================
41516
[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, 1, 1, 1, 1, 1]
[23, 3, 24, 7, 7, 29, 2, 18, 25, 11, 23, 17, 18, 16, 8, 0, 12, 12, 18, 5, 21, 21, 26, 0, 5, 12, 27, 24, 4, 3, 3, 11, 25, 14, 24, 1, 6, 8, 5, 21, 2, 5, 6, 22, 2, 12, 22, 2, 12, 28, 28, 17, 8, 10, 28, 18, 0, 27, 23, 7, 8, 3, 25, 9, 8, 11, 13, 15, 25, 0, 19, 22, 14, 8, 3, 29, 26, 1, 26, 23, 25, 9, 10, 21, 22, 18, 16, 24, 19, 28, 23, 12, 17, 15, 5, 28, 18, 16, 0, 12, 28, 11, 13, 2, 21, 27, 15, 28, 7, 10, 29, 16, 3, 9, 9, 4, 6, 3, 7, 16, 17, 27, 29, 8, 0, 26, 2, 2, 20, 11, 17, 8, 26, 25, 12, 4, 14, 12, 8, 0, 21, 15, 21, 11, 18, 4, 14, 6, 25, 29]
=============================test29=============================
32734
[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, 1, 1, 1, 1, 1]
[14, 11, 24, 3, 11, 20, 13, 27, 1, 27, 1, 13, 12, 19, 18, 11, 24, 19, 15, 19, 1, 21, 18, 19, 18, 3, 2, 9, 29, 15, 1, 0, 20, 29, 11, 22, 27, 15, 2, 3, 9, 23, 28, 27, 22, 24, 13, 13, 3, 11, 1, 22, 16, 9, 4, 29, 20, 22, 25, 29, 21, 13, 28, 21, 2, 12, 0, 27, 26, 21, 10, 14, 9, 16, 21, 22, 0, 28, 23, 12, 7, 20, 20, 10, 26, 8, 25, 25, 19, 26, 11, 27, 3, 1, 18, 25, 9, 17, 23, 8, 29, 12, 22, 20, 3, 22, 27, 13, 7, 23, 25, 23, 22, 15, 17, 22, 15, 12, 4, 7, 1, 14, 27, 8, 27, 18, 12, 11, 4, 0, 6, 21, 10, 18, 10, 7, 23, 2, 19, 11, 9, 11, 18, 1, 14, 3, 5, 7, 28, 6]
=============================test30=============================
29591
[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, 1, 1, 1, 1, 1]
[5, 19, 0, 29, 8, 12, 19, 10, 8, 16, 0, 29, 15, 7, 1, 2, 14, 29, 18, 1, 10, 4, 7, 23, 27, 22, 7, 20, 12, 26, 3, 19, 24, 18, 26, 14, 11, 11, 17, 19, 20, 22, 16, 2, 14, 20, 6, 2, 2, 16, 20, 7, 11, 29, 18, 9, 15, 19, 17, 7, 17, 17, 3, 11, 11, 8, 19, 20, 3, 19, 26, 21, 3, 18, 27, 12, 28, 12, 20, 21, 29, 28, 19, 5, 21, 16, 1, 10, 16, 7, 16, 19, 9, 18, 1, 23, 29, 17, 1, 4, 22, 25, 15, 17, 16, 26, 0, 12, 13, 4, 25, 7, 21, 19, 17, 18, 19, 18, 17, 23, 27, 10, 6, 2, 23, 3, 24, 17, 1, 13, 27, 14, 12, 6, 24, 12, 5, 17, 26, 14, 1, 15, 9, 9, 23, 8, 26, 14, 9, 26]
=============================test31=============================
35683
[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, 1, 1, 1, 1, 1]
[14, 5, 18, 23, 16, 26, 12, 4, 18, 2, 11, 16, 20, 27, 17, 10, 0, 12, 2, 24, 2, 8, 29, 10, 18, 6, 11, 26, 9, 26, 26, 14, 0, 0, 3, 11, 3, 27, 10, 8, 23, 4, 27, 17, 1, 7, 19, 4, 27, 10, 23, 9, 23, 22, 1, 9, 23, 22, 8, 14, 10, 5, 0, 23, 20, 22, 27, 6, 21, 16, 10, 19, 7, 16, 4, 29, 12, 13, 29, 5, 17, 12, 15, 28, 29, 0, 29, 26, 24, 2, 19, 25, 2, 5, 2, 4, 11, 2, 8, 5, 17, 1, 0, 14, 17, 26, 10, 29, 16, 19, 19, 7, 21, 19, 20, 20, 2, 3, 7, 19, 9, 25, 1, 7, 7, 3, 5, 2, 3, 25, 21, 13, 12, 27, 21, 24, 24, 3, 24, 24, 29, 12, 13, 5, 14, 9, 22, 6, 21, 4]
=============================test32=============================
41816
[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, 1, 1, 1, 1, 1]
[0, 22, 15, 13, 3, 7, 0, 23, 15, 22, 4, 17, 22, 15, 14, 8, 2, 16, 8, 6, 2, 1, 18, 21, 22, 11, 18, 15, 15, 25, 16, 12, 19, 1, 27, 16, 5, 10, 18, 26, 16, 23, 0, 21, 2, 14, 29, 9, 23, 10, 26, 28, 5, 17, 27, 23, 16, 20, 15, 5, 19, 12, 2, 20, 8, 19, 20, 8, 25, 3, 5, 19, 29, 28, 13, 17, 19, 15, 22, 29, 26, 8, 13, 2, 9, 27, 15, 8, 28, 1, 1, 20, 13, 3, 21, 7, 20, 0, 7, 18, 27, 26, 10, 0, 3, 21, 8, 11, 4, 2, 10, 6, 6, 16, 6, 3, 28, 16, 8, 24, 22, 17, 15, 12, 18, 20, 6, 9, 21, 13, 14, 28, 9, 12, 27, 0, 28, 6, 17, 11, 23, 27, 24, 8, 2, 12, 21, 8, 28, 7]
=============================test33=============================
32208
[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, 1, 1, 1, 1, 1]
[7, 15, 18, 12, 12, 14, 16, 24, 5, 8, 1, 10, 2, 5, 12, 17, 26, 11, 24, 6, 25, 0, 0, 6, 11, 27, 10, 18, 15, 22, 12, 11, 17, 0, 10, 21, 4, 15, 24, 20, 17, 24, 5, 18, 22, 22, 24, 20, 17, 22, 13, 20, 8, 17, 5, 17, 13, 1, 17, 10, 4, 14, 9, 28, 20, 9, 19, 16, 21, 6, 16, 5, 23, 28, 23, 10, 16, 2, 7, 22, 21, 13, 15, 16, 7, 16, 1, 18, 12, 11, 1, 6, 11, 9, 10, 2, 25, 8, 25, 24, 25, 29, 1, 25, 16, 3, 23, 15, 24, 27, 28, 17, 5, 23, 11, 18, 0, 1, 26, 27, 27, 4, 8, 28, 24, 21, 18, 9, 4, 4, 6, 21, 27, 4, 10, 21, 24, 0, 1, 11, 9, 19, 4, 9, 26, 11, 17, 25, 18, 6]
=============================test34=============================
30008
[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, 1, 1, 1, 1, 1]
[11, 19, 2, 2, 5, 22, 12, 18, 22, 7, 3, 22, 22, 17, 0, 25, 13, 29, 3, 16, 16, 0, 0, 18, 22, 26, 11, 0, 14, 20, 6, 28, 26, 14, 3, 8, 17, 7, 10, 26, 10, 20, 2, 1, 23, 25, 28, 9, 4, 17, 6, 6, 0, 25, 13, 25, 5, 8, 19, 23, 28, 15, 2, 19, 15, 19, 21, 11, 17, 21, 1, 26, 4, 7, 14, 15, 7, 6, 11, 19, 5, 26, 15, 18, 26, 7, 5, 24, 2, 6, 5, 7, 15, 24, 10, 27, 21, 18, 0, 22, 27, 11, 16, 22, 6, 7, 11, 5, 7, 21, 4, 9, 16, 15, 16, 20, 2, 10, 4, 27, 28, 14, 10, 18, 27, 27, 8, 8, 6, 9, 29, 7, 3, 9, 5, 0, 5, 17, 18, 2, 21, 7, 8, 4, 8, 16, 4, 28, 13, 22]
=============================test35=============================
35910
[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, 1, 1, 1, 1, 1]
[9, 14, 21, 19, 25, 11, 26, 3, 3, 25, 19, 15, 29, 29, 11, 24, 7, 27, 11, 24, 15, 21, 17, 13, 19, 13, 6, 25, 14, 29, 16, 18, 13, 23, 25, 16, 21, 4, 2, 26, 1, 0, 26, 14, 4, 22, 8, 23, 7, 13, 13, 10, 11, 7, 13, 19, 10, 25, 0, 3, 18, 21, 25, 27, 23, 2, 22, 11, 13, 23, 6, 17, 18, 29, 1, 27, 2, 3, 28, 7, 17, 0, 11, 17, 27, 25, 16, 12, 28, 17, 29, 20, 9, 7, 3, 27, 19, 3, 13, 6, 28, 20, 6, 25, 3, 15, 22, 23, 5, 3, 23, 1, 5, 26, 6, 26, 17, 19, 19, 6, 11, 20, 10, 15, 16, 26, 28, 6, 2, 28, 12, 28, 22, 16, 23, 10, 15, 21, 27, 12, 24, 19, 16, 23, 1, 5, 17, 17, 29, 10]
=============================test36=============================
41649
[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, 1, 1, 1, 1, 1]
[18, 2, 10, 11, 23, 15, 24, 8, 2, 3, 26, 7, 29, 26, 10, 10, 27, 1, 1, 10, 28, 0, 12, 1, 26, 5, 28, 29, 1, 5, 16, 12, 20, 2, 9, 24, 9, 17, 26, 3, 7, 9, 12, 23, 10, 21, 25, 9, 14, 22, 24, 5, 4, 16, 24, 0, 14, 12, 4, 7, 24, 4, 18, 22, 21, 16, 20, 1, 11, 5, 0, 7, 11, 13, 20, 22, 23, 14, 4, 26, 2, 26, 10, 27, 22, 3, 24, 1, 11, 15, 6, 11, 14, 2, 8, 3, 11, 7, 19, 9, 1, 1, 5, 1, 5, 28, 24, 3, 24, 7, 19, 1, 26, 6, 23, 1, 17, 16, 13, 13, 2, 23, 10, 20, 5, 26, 15, 12, 3, 9, 4, 11, 26, 14, 14, 24, 19, 27, 20, 17, 23, 5, 29, 19, 8, 7, 23, 6, 10, 14]
=============================test37=============================
33116
[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, 1, 1, 1, 1, 1]
[24, 22, 2, 9, 26, 3, 19, 13, 27, 5, 25, 27, 29, 11, 2, 13, 20, 25, 17, 13, 11, 20, 29, 8, 7, 10, 23, 7, 5, 5, 10, 23, 15, 28, 21, 28, 9, 22, 16, 11, 22, 18, 13, 6, 28, 25, 23, 29, 8, 23, 2, 20, 27, 0, 26, 0, 12, 26, 16, 2, 14, 7, 24, 5, 6, 3, 11, 13, 6, 4, 28, 0, 12, 7, 4, 21, 6, 27, 10, 27, 26, 13, 27, 4, 27, 15, 17, 10, 5, 7, 26, 21, 6, 17, 26, 7, 4, 6, 24, 21, 24, 21, 4, 5, 3, 11, 19, 27, 16, 24, 22, 26, 14, 0, 0, 12, 9, 25, 10, 4, 24, 8, 1, 16, 15, 26, 23, 14, 8, 17, 7, 10, 17, 22, 15, 13, 24, 6, 18, 22, 13, 22, 13, 14, 19, 3, 22, 17, 12, 6]
=============================test38=============================
30083
[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, 1, 1, 1, 1, 1]
[12, 0, 22, 25, 26, 27, 15, 16, 18, 18, 29, 10, 15, 5, 15, 9, 12, 17, 5, 17, 12, 7, 21, 22, 17, 21, 27, 6, 14, 14, 11, 24, 2, 4, 6, 21, 13, 3, 27, 10, 21, 11, 24, 20, 26, 24, 1, 4, 19, 8, 14, 12, 13, 7, 6, 1, 15, 9, 11, 4, 24, 4, 5, 23, 7, 5, 17, 1, 15, 16, 21, 16, 12, 6, 13, 28, 15, 19, 19, 5, 26, 11, 18, 11, 28, 16, 1, 13, 4, 22, 28, 25, 1, 28, 6, 12, 2, 25, 4, 4, 2, 27, 11, 6, 19, 13, 26, 18, 15, 19, 25, 21, 11, 6, 10, 17, 17, 15, 1, 3, 17, 6, 8, 18, 21, 11, 27, 1, 14, 25, 29, 17, 20, 23, 2, 17, 13, 9, 29, 15, 16, 12, 13, 4, 1, 0, 6, 9, 8, 18]
=============================test39=============================
35521
[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, 1, 1, 1, 1, 1]
[5, 5, 26, 28, 27, 12, 24, 12, 17, 23, 0, 21, 4, 15, 25, 21, 14, 8, 15, 12, 5, 2, 8, 5, 10, 22, 15, 6, 6, 26, 6, 16, 28, 20, 0, 19, 21, 22, 14, 28, 19, 4, 18, 29, 7, 23, 15, 16, 6, 27, 21, 21, 15, 19, 20, 0, 2, 25, 16, 17, 13, 24, 28, 15, 24, 13, 1, 3, 12, 17, 13, 27, 29, 19, 15, 16, 28, 0, 24, 21, 16, 4, 16, 17, 23, 0, 14, 15, 28, 14, 11, 17, 20, 27, 23, 19, 13, 19, 5, 8, 27, 27, 21, 4, 18, 25, 21, 25, 21, 4, 18, 17, 29, 24, 3, 14, 15, 18, 9, 4, 8, 10, 26, 2, 29, 21, 19, 13, 2, 20, 1, 21, 23, 5, 23, 15, 23, 10, 10, 19, 15, 2, 7, 26, 26, 20, 2, 29, 10, 16]
=============================test40=============================
41693
[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, 1, 1, 1, 1, 1]
[17, 7, 1, 5, 17, 0, 0, 25, 16, 10, 3, 6, 5, 19, 0, 20, 12, 14, 27, 15, 20, 10, 15, 16, 14, 18, 21, 15, 7, 2, 29, 3, 7, 2, 1, 6, 10, 18, 5, 12, 29, 17, 10, 11, 17, 7, 22, 14, 15, 1, 18, 20, 1, 14, 10, 20, 0, 22, 13, 24, 2, 21, 19, 11, 9, 14, 5, 4, 29, 11, 12, 24, 11, 11, 4, 1, 10, 3, 18, 10, 9, 3, 0, 20, 15, 5, 21, 18, 23, 29, 22, 20, 19, 10, 10, 9, 1, 4, 1, 7, 16, 11, 5, 3, 12, 11, 28, 29, 23, 13, 13, 21, 13, 29, 20, 1, 6, 28, 23, 28, 13, 20, 28, 11, 17, 11, 26, 1, 10, 8, 8, 27, 14, 21, 16, 6, 17, 21, 28, 16, 6, 25, 16, 13, 19, 28, 28, 6, 10, 8]
=============================test41=============================
5451
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 7, 7, 0, 0, 0, 7, 4, 7, 8, 7, 6, 6, 4, 5, 3, 0, 7, 1, 7, 1, 7, 2, 4, 4, 9, 3, 1, 9, 4, 2, 1, 2, 7, 5, 5, 0, 2, 9, 8, 2, 8, 1, 6, 7, 4, 2, 8, 5, 0, 4, 9, 8, 0, 5, 9, 1, 7, 7, 7, 2, 6, 7, 6, 1, 5, 7, 5, 7, 5, 0, 7, 2, 5, 8, 8, 5, 7, 8, 2, 0, 2, 7, 0, 9, 1, 1, 2, 7, 3]
=============================test42=============================
13061
[1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[13, 18, 13, 13, 5, 10, 9, 15, 3, 6, 1, 18, 15, 19, 11, 1, 8, 16, 1, 3, 19, 1, 19, 16, 11, 7, 15, 19, 9, 17, 19, 19, 7, 13, 15, 1, 7, 11, 12, 15, 8, 5, 0, 4, 16, 3, 15, 10, 0, 18, 10, 9, 0, 8, 12, 12, 3, 19, 12, 10, 11, 6, 14, 0, 14, 5, 7, 0, 13, 19, 6, 8, 10, 1, 3, 5, 3, 18, 5, 10]
=============================test43=============================
14156
[1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1]
[12, 11, 13, 15, 18, 7, 3, 11, 18, 2, 20, 21, 22, 17, 6, 24, 0, 8, 11, 6, 16, 1, 0, 4, 22, 8, 2, 17, 20, 3, 26, 22, 17, 19, 8, 16, 28, 26, 12, 19, 25, 18, 15, 26, 25, 8, 23, 16, 5, 17, 7, 29, 7, 6, 16, 24, 8, 22, 0, 5, 14, 23, 25, 28, 6, 5, 11, 15, 3, 10]
=============================test44=============================
5941
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 3, 8, 3, 5, 3, 4, 8, 8, 2, 7, 1, 5, 2, 0, 3, 8, 8, 7, 0, 9, 0, 0, 6, 8, 6, 9, 7, 6, 9, 3, 0, 0, 2, 5, 6, 5, 7, 6, 9, 2, 2, 6, 0, 4, 7, 3, 6, 1, 2, 7, 2, 9, 3, 3, 1, 6, 7, 4, 2, 5, 6, 5, 8, 6, 6, 6, 3, 9, 4, 2, 8, 6, 4, 5, 0, 6, 9, 2, 4, 2, 4, 2, 8, 1, 5, 1, 2, 6, 3]
=============================test45=============================
12346
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[11, 19, 7, 1, 15, 5, 18, 10, 15, 17, 4, 9, 7, 7, 5, 17, 14, 7, 1, 18, 11, 1, 0, 2, 12, 6, 3, 10, 4, 2, 4, 7, 11, 4, 3, 8, 8, 13, 12, 16, 9, 6, 5, 8, 3, 10, 6, 14, 12, 2, 8, 4, 16, 11, 5, 3, 0, 9, 15, 13, 13, 7, 12, 12, 3, 17, 16, 18, 1, 13, 8, 18, 9, 18, 5, 8, 3, 5, 2, 17]
=============================test46=============================
16086
[1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[14, 20, 3, 5, 18, 29, 27, 1, 4, 21, 15, 8, 0, 26, 1, 26, 9, 28, 7, 0, 19, 18, 21, 21, 28, 23, 27, 20, 27, 16, 19, 10, 19, 23, 8, 4, 22, 11, 3, 25, 1, 23, 28, 1, 13, 11, 24, 17, 6, 15, 11, 7, 19, 7, 20, 17, 8, 6, 9, 13, 9, 15, 6, 26, 4, 26, 21, 23, 19, 6]
=============================test47=============================
5063
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 3, 7, 2, 2, 4, 0, 4, 0, 2, 0, 7, 1, 5, 2, 4, 4, 5, 6, 0, 2, 2, 2, 0, 0, 0, 6, 6, 6, 5, 8, 3, 4, 7, 6, 8, 6, 0, 5, 2, 7, 7, 3, 8, 4, 3, 4, 3, 5, 9, 4, 6, 8, 3, 2, 2, 6, 9, 7, 5, 8, 2, 7, 3, 3, 3, 2, 5, 2, 1, 2, 1, 5, 2, 9, 7, 5, 4, 6, 6, 7, 9, 4, 3, 7, 6, 0, 2, 0, 8]
=============================test48=============================
9331
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[18, 16, 8, 13, 19, 18, 11, 13, 1, 17, 17, 4, 3, 5, 4, 16, 5, 1, 9, 15, 5, 13, 18, 12, 16, 18, 0, 10, 4, 9, 7, 4, 13, 15, 9, 7, 4, 14, 7, 4, 5, 7, 4, 18, 17, 3, 12, 3, 9, 6, 6, 3, 14, 2, 15, 19, 19, 13, 16, 0, 9, 1, 0, 7, 19, 15, 14, 9, 0, 1, 19, 4, 2, 18, 18, 4, 11, 4, 14, 6]
=============================test49=============================
12487
[1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1]
[8, 12, 17, 23, 5, 23, 19, 19, 16, 11, 19, 3, 2, 16, 5, 0, 16, 29, 17, 17, 21, 21, 29, 19, 0, 17, 14, 2, 19, 10, 27, 14, 18, 1, 10, 16, 20, 20, 20, 17, 6, 5, 22, 21, 11, 23, 10, 16, 2, 24, 19, 15, 12, 12, 27, 23, 1, 20, 6, 8, 20, 23, 25, 24, 15, 14, 7, 21, 6, 13]
=============================test50=============================
6368
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 6, 9, 3, 3, 1, 1, 3, 2, 4, 3, 0, 7, 5, 8, 2, 2, 6, 5, 3, 8, 8, 7, 1, 3, 3, 4, 3, 4, 4, 2, 7, 5, 4, 9, 5, 0, 2, 4, 1, 4, 7, 6, 3, 5, 4, 4, 5, 2, 4, 0, 8, 8, 9, 0, 8, 3, 5, 1, 8, 3, 2, 4, 7, 5, 4, 2, 7, 6, 4, 8, 0, 8, 6, 0, 2, 1, 2, 3, 4, 3, 6, 6, 9, 2, 2, 3, 8, 7, 9, 3, 6, 1, 3, 9, 3, 5, 1, 4, 5]
=============================test51=============================
11852
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[17, 17, 1, 3, 10, 10, 8, 14, 7, 13, 6, 13, 17, 6, 13, 16, 7, 14, 12, 11, 17, 8, 0, 12, 14, 12, 3, 7, 17, 7, 3, 0, 19, 6, 6, 17, 11, 18, 13, 18, 13, 4, 3, 6, 19, 7, 13, 9, 8, 5, 17, 10, 9, 8, 10, 0, 11, 0, 2, 10, 3, 1, 18, 13, 3, 18, 13, 5, 0, 17, 14, 16, 14, 14, 13, 4, 4, 5, 6, 18, 7, 16, 13, 9, 19, 7, 11, 5, 12, 15, 17, 12, 15, 16, 5, 12, 7, 8, 15, 8]
=============================test52=============================
10610
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 7, 2, 5, 2, 0, 7, 0, 1, 2, 5, 3, 2, 3, 8, 6, 6, 4, 7, 2, 5, 6, 5, 6, 7, 6, 6, 3, 1, 4, 8, 6, 3, 7, 6, 4, 7, 5, 6, 0, 9, 5, 7, 8, 4, 7, 1, 8, 9, 6, 3, 3, 7, 9, 5, 0, 3, 9, 0, 4, 2, 2, 9, 7, 8, 3, 6, 1, 4, 0, 3, 1, 8, 8, 6, 7, 1, 7, 6, 2, 0, 8, 6, 0, 4, 9, 4, 4, 3, 0, 8, 3, 3, 3, 2, 4, 4, 6, 7, 5]
=============================test53=============================
15696
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 1, 12, 19, 16, 9, 13, 6, 10, 3, 16, 10, 1, 7, 6, 5, 7, 10, 0, 10, 13, 12, 8, 17, 18, 0, 2, 15, 8, 15, 7, 4, 17, 5, 18, 4, 3, 3, 0, 19, 6, 2, 17, 2, 7, 17, 5, 4, 8, 11, 18, 13, 1, 7, 17, 0, 7, 7, 15, 18, 0, 11, 0, 11, 14, 1, 8, 3, 3, 3, 14, 11, 15, 18, 2, 17, 1, 5, 8, 4, 5, 0, 19, 19, 3, 12, 19, 12, 16, 2, 1, 13, 6, 18, 1, 16, 11, 18, 0, 9]
=============================test54=============================
7165
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 0, 8, 3, 2, 6, 0, 0, 3, 7, 3, 4, 7, 3, 0, 2, 6, 6, 9, 3, 6, 6, 4, 3, 7, 7, 1, 6, 4, 9, 6, 2, 7, 2, 7, 5, 1, 8, 7, 4, 0, 3, 2, 2, 0, 3, 0, 3, 7, 6, 3, 2, 3, 3, 4, 5, 4, 5, 6, 9, 2, 6, 3, 9, 0, 7, 2, 7, 0, 4, 3, 7, 7, 7, 6, 8, 5, 4, 8, 2, 6, 9, 3, 6, 7, 4, 2, 7, 7, 0, 0, 7, 1, 7, 1, 1, 7, 6, 2, 6]
=============================test55=============================
11674
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[7, 7, 2, 7, 11, 16, 6, 19, 2, 6, 3, 11, 13, 0, 6, 18, 0, 7, 19, 7, 19, 11, 6, 18, 7, 9, 11, 3, 8, 13, 9, 1, 10, 14, 4, 15, 7, 18, 12, 0, 4, 18, 3, 11, 4, 14, 9, 17, 2, 6, 4, 10, 18, 16, 15, 13, 13, 17, 10, 7, 13, 10, 17, 1, 6, 18, 17, 8, 2, 14, 2, 4, 11, 2, 12, 18, 5, 18, 3, 2, 0, 19, 17, 13, 10, 1, 15, 12, 13, 9, 12, 9, 1, 0, 18, 9, 14, 19, 15, 17]
=============================test56=============================
60362
[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, 1, 1, 1, 1, 1]
[21, 28, 16, 5, 18, 9, 29, 15, 7, 12, 10, 13, 6, 3, 9, 27, 25, 26, 3, 4, 24, 24, 10, 0, 23, 29, 11, 2, 6, 5, 20, 11, 17, 18, 23, 29, 1, 9, 27, 27, 16, 19, 13, 2, 27, 24, 11, 14, 26, 15, 24, 18, 20, 1, 9, 15, 14, 3, 20, 28, 20, 9, 18, 4, 0, 19, 23, 19, 4, 17, 4, 12, 4, 24, 24, 22, 19, 1, 3, 1, 1, 5, 13, 17, 4, 20, 5, 28, 4, 28, 2, 19, 16, 9, 27, 17, 12, 19, 0, 13, 1, 27, 24, 4, 14, 12, 17, 15, 6, 6, 16, 24, 2, 2, 9, 28, 6, 13, 24, 22, 1, 15, 12, 7, 15, 29, 19, 22, 17, 24, 24, 3, 11, 19, 6, 8, 5, 6, 4, 13, 14, 9, 8, 9, 8, 3, 15, 25, 7, 22, 23, 1, 26, 21, 14, 1, 15, 10, 15, 10, 27, 17, 11, 21, 12, 0, 29, 22, 7, 17, 2, 28, 18, 29, 9, 2, 26, 22, 6, 2, 2, 14, 16, 23, 6, 27, 17, 3, 18, 29, 2, 29, 8, 4, 24, 2, 11, 12, 25, 28]
=============================test57=============================
69505
[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, 1, 1, 1, 1, 1]
[25, 7, 28, 28, 10, 19, 2, 6, 6, 9, 16, 1, 22, 29, 14, 8, 26, 7, 19, 18, 25, 20, 13, 9, 22, 25, 5, 16, 20, 19, 8, 21, 15, 8, 2, 5, 0, 29, 20, 26, 20, 19, 3, 11, 20, 28, 17, 19, 13, 8, 19, 29, 21, 3, 2, 5, 4, 28, 18, 15, 16, 6, 11, 2, 16, 25, 29, 24, 26, 11, 26, 11, 13, 21, 18, 25, 13, 20, 11, 19, 13, 25, 28, 4, 25, 17, 21, 7, 10, 8, 4, 4, 11, 1, 17, 24, 24, 27, 21, 11, 9, 20, 19, 28, 1, 29, 3, 25, 3, 9, 19, 4, 15, 13, 20, 26, 7, 29, 28, 7, 21, 10, 7, 4, 15, 28, 21, 12, 19, 11, 2, 19, 29, 23, 13, 0, 27, 16, 29, 26, 3, 24, 24, 14, 22, 27, 24, 10, 28, 21, 14, 6, 28, 2, 1, 18, 12, 25, 5, 17, 28, 9, 18, 0, 2, 19, 11, 5, 26, 24, 23, 25, 15, 11, 17, 8, 9, 1, 28, 9, 19, 10, 8, 25, 8, 3, 23, 8, 1, 11, 3, 19, 21, 25, 6, 17, 20, 15, 10, 2]
=============================test58=============================
89167
[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, 1, 1, 1, 1, 1]
[15, 16, 19, 26, 11, 28, 16, 29, 23, 16, 2, 16, 21, 17, 15, 17, 2, 15, 24, 21, 16, 7, 24, 28, 9, 18, 3, 4, 25, 27, 2, 2, 0, 28, 28, 2, 29, 5, 10, 1, 6, 3, 10, 3, 6, 26, 5, 19, 12, 7, 3, 3, 8, 19, 4, 0, 23, 3, 20, 2, 5, 28, 24, 0, 26, 18, 4, 7, 1, 17, 18, 6, 13, 4, 20, 22, 2, 11, 29, 19, 10, 29, 2, 19, 17, 0, 3, 26, 25, 27, 28, 22, 19, 14, 23, 1, 28, 8, 5, 9, 2, 10, 19, 18, 23, 21, 16, 4, 22, 17, 9, 2, 7, 1, 9, 2, 16, 8, 15, 7, 9, 22, 11, 21, 27, 13, 0, 16, 11, 22, 0, 20, 26, 0, 29, 27, 11, 11, 18, 15, 15, 25, 12, 27, 16, 22, 19, 3, 3, 9, 17, 12, 7, 12, 28, 24, 11, 8, 3, 2, 20, 10, 8, 26, 13, 15, 12, 15, 13, 3, 20, 9, 1, 0, 10, 15, 5, 29, 14, 0, 4, 27, 27, 29, 20, 4, 23, 0, 17, 27, 1, 21, 19, 18, 22, 10, 16, 0, 4, 1]
=============================test59=============================
75127
[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, 1, 1, 1, 1, 1]
[17, 13, 26, 29, 17, 9, 4, 8, 5, 3, 13, 11, 13, 11, 12, 12, 2, 1, 4, 8, 28, 25, 9, 7, 29, 29, 5, 5, 11, 17, 9, 23, 5, 8, 27, 28, 2, 27, 25, 25, 10, 5, 10, 25, 2, 27, 5, 22, 0, 23, 18, 19, 20, 7, 16, 26, 27, 28, 4, 1, 18, 25, 18, 8, 11, 16, 28, 23, 22, 2, 28, 24, 25, 5, 7, 12, 14, 12, 19, 25, 7, 13, 4, 28, 6, 23, 8, 27, 19, 21, 13, 19, 26, 18, 12, 0, 23, 6, 22, 15, 20, 15, 6, 13, 12, 27, 7, 12, 0, 19, 19, 21, 2, 12, 23, 13, 24, 15, 8, 22, 9, 17, 15, 14, 2, 11, 5, 19, 0, 9, 28, 10, 12, 27, 29, 22, 4, 18, 19, 18, 1, 6, 0, 17, 13, 23, 10, 0, 28, 25, 1, 9, 29, 11, 20, 25, 18, 18, 3, 0, 12, 0, 24, 28, 26, 0, 10, 2, 14, 6, 6, 15, 20, 27, 22, 21, 5, 15, 14, 6, 4, 16, 28, 24, 16, 7, 2, 27, 14, 23, 13, 10, 24, 2, 26, 4, 7, 9, 14, 25]
=============================test60=============================
59750
[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, 1, 1, 1, 1, 1]
[29, 12, 0, 11, 17, 18, 22, 16, 7, 27, 27, 25, 3, 28, 14, 0, 0, 23, 7, 2, 10, 24, 12, 15, 22, 28, 18, 9, 28, 17, 7, 16, 1, 27, 7, 22, 18, 5, 9, 0, 9, 28, 16, 12, 17, 23, 11, 13, 1, 26, 9, 12, 5, 6, 14, 19, 2, 26, 0, 23, 21, 18, 7, 4, 1, 4, 28, 18, 19, 20, 20, 17, 10, 0, 25, 21, 29, 1, 26, 28, 21, 14, 20, 21, 29, 9, 16, 1, 8, 19, 28, 27, 3, 2, 11, 20, 9, 1, 5, 25, 12, 11, 22, 28, 19, 2, 29, 3, 3, 20, 3, 22, 18, 0, 16, 27, 14, 12, 6, 22, 8, 5, 19, 24, 0, 14, 20, 24, 20, 11, 13, 15, 6, 7, 27, 16, 21, 15, 28, 1, 28, 8, 5, 15, 15, 20, 8, 1, 14, 26, 0, 0, 29, 29, 12, 28, 8, 21, 4, 13, 29, 15, 15, 18, 29, 18, 21, 16, 18, 13, 11, 9, 19, 7, 1, 28, 21, 21, 5, 19, 19, 23, 15, 25, 12, 5, 0, 29, 4, 24, 11, 23, 16, 18, 21, 24, 4, 19, 13, 21]
=============================test61=============================
68940
[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, 1, 1, 1, 1, 1]
[16, 18, 0, 4, 24, 6, 16, 2, 12, 4, 22, 20, 6, 7, 23, 24, 8, 5, 16, 25, 21, 21, 16, 5, 18, 27, 11, 15, 9, 14, 8, 11, 23, 28, 29, 14, 10, 23, 21, 0, 21, 23, 13, 3, 26, 12, 15, 0, 25, 22, 10, 6, 2, 19, 12, 23, 17, 1, 19, 28, 13, 26, 19, 13, 12, 29, 6, 19, 15, 20, 11, 18, 28, 27, 7, 0, 28, 20, 17, 13, 6, 6, 8, 16, 17, 8, 2, 27, 22, 24, 9, 21, 16, 6, 20, 16, 27, 25, 21, 0, 12, 7, 27, 3, 28, 19, 7, 28, 2, 13, 25, 11, 25, 18, 9, 3, 18, 21, 7, 14, 15, 28, 27, 13, 14, 4, 11, 9, 6, 4, 22, 18, 12, 12, 29, 21, 0, 26, 19, 20, 23, 12, 1, 17, 3, 16, 6, 4, 15, 8, 11, 18, 20, 28, 19, 0, 11, 21, 24, 2, 5, 11, 11, 11, 9, 10, 28, 18, 1, 17, 23, 22, 24, 22, 8, 15, 4, 23, 25, 16, 27, 3, 5, 27, 18, 17, 4, 24, 23, 22, 25, 26, 8, 29, 22, 13, 7, 23, 20, 22]
=============================test62=============================
89042
[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, 1, 1, 1, 1, 1]
[19, 14, 18, 5, 24, 8, 18, 3, 18, 19, 5, 8, 21, 10, 21, 3, 23, 22, 25, 7, 27, 9, 3, 20, 14, 5, 13, 14, 2, 1, 29, 14, 0, 23, 18, 15, 23, 13, 15, 24, 12, 16, 8, 12, 4, 28, 11, 8, 14, 20, 11, 10, 18, 28, 12, 5, 17, 3, 24, 24, 27, 14, 18, 18, 8, 21, 5, 29, 14, 20, 29, 7, 6, 5, 3, 11, 22, 4, 22, 25, 26, 3, 3, 29, 22, 12, 10, 9, 22, 20, 17, 29, 5, 22, 27, 27, 20, 12, 9, 29, 21, 25, 26, 0, 4, 28, 3, 10, 7, 0, 21, 14, 0, 8, 13, 29, 12, 18, 27, 27, 26, 19, 21, 2, 19, 18, 16, 20, 23, 13, 10, 19, 13, 25, 12, 13, 17, 19, 19, 9, 24, 17, 8, 20, 21, 20, 1, 16, 22, 15, 23, 28, 9, 13, 28, 18, 8, 15, 16, 25, 8, 27, 11, 3, 16, 10, 18, 8, 18, 15, 21, 3, 16, 0, 0, 24, 2, 15, 17, 0, 9, 26, 29, 15, 2, 29, 6, 24, 9, 26, 26, 18, 10, 28, 27, 9, 15, 17, 25, 18]
=============================test63=============================
74369
[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, 1, 1, 1, 1, 1]
[25, 27, 29, 8, 23, 14, 19, 10, 19, 14, 25, 15, 7, 9, 1, 20, 6, 26, 19, 12, 29, 18, 2, 23, 4, 4, 9, 2, 5, 23, 9, 17, 23, 10, 2, 6, 11, 8, 4, 4, 18, 23, 10, 17, 6, 12, 7, 17, 10, 19, 25, 9, 25, 29, 14, 3, 0, 26, 21, 13, 16, 10, 13, 20, 11, 9, 2, 10, 6, 5, 1, 22, 24, 23, 0, 14, 25, 0, 20, 2, 19, 2, 24, 16, 21, 3, 22, 22, 17, 28, 21, 23, 9, 14, 4, 17, 17, 25, 7, 6, 28, 19, 16, 12, 16, 13, 19, 6, 16, 12, 16, 15, 13, 15, 29, 28, 25, 25, 17, 22, 9, 11, 23, 17, 18, 18, 11, 27, 21, 6, 21, 4, 3, 2, 29, 7, 9, 11, 26, 22, 29, 2, 12, 6, 12, 23, 1, 25, 7, 27, 27, 16, 13, 21, 14, 3, 4, 16, 23, 16, 12, 7, 18, 10, 18, 13, 22, 8, 15, 25, 2, 6, 16, 20, 28, 24, 9, 28, 27, 9, 21, 10, 29, 13, 21, 28, 15, 16, 0, 6, 19, 2, 17, 1, 16, 8, 27, 28, 11, 14]
=============================test64=============================
60365
[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, 1, 1, 1, 1, 1]
[22, 5, 24, 8, 0, 13, 29, 9, 7, 19, 4, 2, 12, 14, 12, 19, 9, 21, 18, 20, 28, 15, 22, 12, 6, 16, 3, 0, 12, 0, 2, 9, 29, 13, 21, 15, 19, 8, 7, 6, 2, 17, 11, 26, 14, 19, 10, 29, 29, 5, 23, 15, 15, 5, 11, 19, 0, 11, 29, 5, 2, 3, 0, 7, 6, 20, 12, 24, 16, 29, 15, 11, 15, 7, 7, 10, 4, 25, 29, 29, 20, 1, 7, 1, 18, 9, 2, 10, 28, 16, 24, 28, 24, 18, 27, 15, 17, 5, 20, 8, 2, 2, 5, 11, 5, 26, 28, 4, 6, 23, 15, 12, 19, 21, 0, 27, 25, 16, 18, 28, 16, 14, 24, 21, 0, 0, 22, 17, 27, 27, 5, 13, 20, 1, 6, 17, 25, 9, 20, 10, 26, 13, 28, 14, 8, 21, 0, 3, 16, 10, 14, 16, 18, 14, 28, 4, 25, 29, 2, 14, 23, 3, 22, 3, 29, 28, 19, 14, 14, 18, 24, 9, 14, 9, 24, 6, 7, 20, 18, 5, 6, 1, 8, 25, 22, 12, 16, 8, 3, 25, 15, 20, 29, 1, 28, 4, 17, 26, 11, 25]
=============================test65=============================
69375
[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, 1, 1, 1, 1, 1]
[5, 2, 27, 7, 17, 14, 9, 9, 1, 24, 8, 11, 22, 1, 27, 7, 13, 8, 26, 26, 25, 16, 27, 18, 23, 2, 27, 10, 5, 18, 26, 7, 20, 29, 21, 0, 5, 12, 18, 17, 5, 4, 10, 22, 25, 28, 1, 28, 16, 17, 14, 20, 6, 10, 0, 2, 12, 11, 3, 20, 20, 11, 11, 19, 17, 21, 7, 12, 20, 11, 19, 16, 4, 1, 18, 18, 16, 20, 21, 19, 11, 22, 24, 11, 19, 0, 29, 18, 7, 18, 6, 21, 23, 5, 9, 8, 0, 7, 2, 9, 21, 19, 18, 5, 11, 1, 9, 10, 8, 17, 10, 20, 0, 28, 20, 9, 26, 15, 5, 4, 11, 29, 12, 24, 15, 16, 4, 25, 13, 17, 3, 19, 2, 11, 27, 14, 14, 29, 5, 18, 13, 23, 15, 0, 3, 9, 4, 7, 12, 9, 20, 16, 13, 3, 14, 23, 1, 7, 5, 7, 28, 6, 19, 27, 0, 22, 10, 29, 9, 20, 23, 5, 5, 12, 4, 23, 29, 11, 25, 9, 25, 26, 12, 20, 0, 3, 6, 1, 17, 28, 14, 3, 13, 4, 0, 3, 10, 21, 29, 8]
=============================test66=============================
89088
[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, 1, 1, 1, 1, 1]
[8, 23, 14, 20, 16, 8, 9, 17, 21, 4, 12, 13, 21, 23, 11, 21, 0, 6, 15, 9, 3, 26, 2, 6, 25, 14, 24, 28, 8, 2, 3, 7, 26, 29, 4, 1, 1, 10, 19, 12, 0, 23, 28, 1, 12, 26, 11, 29, 4, 11, 14, 29, 20, 1, 0, 15, 23, 15, 11, 5, 29, 28, 29, 25, 19, 20, 29, 13, 5, 19, 21, 29, 18, 3, 22, 8, 3, 24, 16, 1, 15, 19, 17, 26, 18, 10, 2, 15, 5, 28, 14, 16, 25, 4, 19, 3, 7, 6, 14, 7, 10, 21, 22, 12, 9, 7, 19, 22, 6, 13, 14, 5, 9, 4, 25, 1, 28, 29, 0, 7, 7, 18, 17, 4, 17, 6, 13, 7, 20, 26, 4, 14, 3, 9, 19, 10, 13, 8, 22, 3, 15, 4, 8, 10, 28, 24, 5, 29, 23, 2, 14, 17, 26, 21, 4, 23, 22, 19, 18, 17, 14, 10, 8, 17, 23, 24, 12, 17, 15, 12, 25, 23, 0, 25, 22, 26, 6, 15, 23, 16, 2, 20, 22, 24, 29, 12, 13, 13, 16, 29, 27, 6, 21, 29, 18, 13, 4, 17, 14, 28]
=============================test68=============================
59267
[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, 1, 1, 1, 1, 1]
[25, 21, 27, 25, 4, 18, 25, 28, 25, 0, 9, 4, 14, 24, 12, 2, 1, 9, 23, 29, 17, 5, 4, 0, 7, 1, 6, 3, 27, 2, 23, 9, 5, 21, 4, 28, 24, 15, 9, 10, 16, 27, 0, 5, 0, 15, 0, 27, 26, 29, 27, 3, 19, 17, 12, 7, 22, 9, 13, 4, 16, 22, 23, 2, 13, 22, 20, 22, 8, 21, 27, 4, 2, 5, 2, 8, 23, 20, 26, 21, 12, 5, 19, 9, 14, 16, 13, 5, 14, 26, 26, 23, 21, 26, 15, 11, 21, 20, 0, 21, 17, 2, 15, 11, 19, 14, 12, 10, 18, 27, 23, 28, 25, 3, 8, 23, 16, 3, 29, 6, 16, 9, 2, 12, 16, 7, 8, 29, 27, 6, 6, 2, 9, 0, 5, 19, 16, 26, 13, 22, 17, 5, 4, 19, 21, 20, 9, 7, 27, 18, 8, 6, 28, 3, 5, 0, 10, 18, 1, 9, 11, 28, 3, 29, 3, 21, 5, 23, 1, 28, 29, 28, 0, 0, 6, 28, 19, 26, 13, 29, 2, 2, 27, 4, 11, 27, 18, 24, 29, 1, 11, 26, 16, 16, 6, 20, 25, 13, 27, 5]
=============================test69=============================
68875
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[14, 7, 21, 25, 4, 10, 17, 13, 24, 12, 4, 13, 3, 16, 25, 0, 4, 8, 22, 0, 5, 18, 22, 14, 10, 24, 7, 8, 23, 1, 2, 13, 8, 7, 21, 9, 5, 20, 0, 4, 7, 16, 21, 8, 20, 3, 3, 26, 5, 20, 2, 8, 20, 18, 14, 6, 21, 29, 13, 19, 21, 27, 3, 0, 12, 16, 8, 22, 22, 21, 28, 21, 11, 4, 18, 11, 1, 6, 20, 21, 8, 28, 26, 13, 27, 8, 1, 0, 17, 22, 12, 12, 6, 27, 29, 1, 19, 18, 19, 26, 8, 4, 24, 28, 3, 10, 22, 10, 0, 6, 20, 13, 21, 13, 6, 14, 16, 6, 18, 7, 4, 5, 6, 24, 4, 6, 20, 21, 29, 19, 3, 9, 18, 1, 16, 5, 7, 4, 5, 19, 25, 9, 0, 23, 10, 16, 9, 2, 9, 9, 13, 25, 1, 18, 17, 3, 26, 3, 19, 24, 9, 10, 8, 12, 24, 2, 24, 22, 2, 16, 1, 18, 3, 6, 9, 19, 8, 0, 24, 21, 16, 20, 10, 0, 2, 5, 12, 21, 24, 29, 22, 27, 29, 19, 29, 14, 7, 5, 27, 19]
=============================test70=============================
89563
[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, 1, 1, 1, 1, 1]
[5, 22, 15, 3, 21, 13, 28, 17, 19, 29, 20, 4, 25, 19, 18, 7, 2, 18, 21, 5, 20, 26, 17, 16, 8, 19, 26, 28, 28, 19, 18, 21, 22, 6, 17, 18, 22, 20, 10, 20, 20, 5, 20, 22, 4, 13, 29, 4, 0, 6, 9, 27, 29, 7, 16, 5, 1, 11, 18, 6, 26, 9, 14, 6, 7, 21, 22, 15, 4, 17, 25, 17, 10, 2, 14, 7, 22, 5, 6, 9, 6, 16, 21, 5, 27, 12, 23, 3, 4, 27, 19, 8, 1, 24, 17, 27, 27, 7, 27, 15, 13, 22, 4, 21, 18, 3, 8, 4, 16, 24, 0, 12, 25, 25, 12, 19, 17, 21, 15, 2, 25, 8, 11, 13, 6, 7, 2, 11, 17, 13, 0, 13, 10, 7, 2, 16, 4, 18, 9, 27, 3, 24, 20, 3, 14, 1, 29, 28, 10, 12, 1, 3, 1, 7, 5, 22, 20, 22, 22, 13, 3, 22, 12, 21, 19, 18, 12, 27, 22, 17, 13, 10, 25, 23, 8, 10, 11, 12, 26, 21, 11, 29, 9, 29, 6, 9, 0, 10, 13, 13, 19, 5, 14, 17, 25, 27, 1, 22, 8, 1]
=============================test71=============================
74555
[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, 1, 1, 1, 1, 1]
[3, 7, 24, 15, 13, 5, 3, 19, 1, 3, 12, 22, 7, 14, 11, 1, 3, 12, 17, 14, 18, 1, 2, 7, 14, 27, 12, 22, 17, 24, 20, 18, 10, 12, 12, 26, 1, 23, 8, 24, 1, 7, 6, 6, 27, 4, 11, 4, 19, 17, 15, 23, 11, 24, 4, 27, 27, 24, 4, 23, 8, 24, 13, 15, 15, 5, 19, 14, 21, 21, 22, 23, 14, 29, 1, 4, 22, 28, 13, 7, 22, 28, 26, 0, 23, 4, 8, 10, 24, 13, 28, 0, 14, 18, 11, 19, 5, 11, 8, 5, 18, 11, 5, 24, 22, 19, 3, 24, 22, 6, 24, 25, 24, 24, 9, 9, 25, 27, 23, 15, 22, 23, 13, 28, 5, 6, 5, 0, 28, 24, 2, 13, 23, 3, 17, 17, 4, 28, 16, 17, 8, 2, 18, 11, 8, 15, 15, 29, 13, 27, 13, 29, 2, 19, 13, 21, 14, 23, 10, 29, 13, 27, 15, 11, 29, 11, 3, 6, 18, 13, 26, 5, 16, 2, 12, 5, 18, 9, 0, 27, 24, 9, 3, 26, 2, 17, 2, 1, 10, 18, 16, 28, 0, 11, 14, 0, 6, 23, 2, 12]
4. 模拟退火算法
4.1 算法框架
模拟退火算法和局部最优算法类似, 只是模拟退火算法有一定的概率接受差解
算法流程如下
- (1)设置初温T0, 停止温度Tmin
- (2)以贪心算法的解为最初的可行解, 当做最优解
- (3)从初始解开始生成邻居解, 如果邻居解比最优解好,则更改最优解, 如果差则以一定的概率接受解
- (4)生成解 迭代1000次后进入第(5)步
- 进行降温操作 如果温度没有降低到Tmin,则进入到(3),否则退出输出最优解
4.2 关键代码和注释
这是模拟退火的流程, 这次生成解的函数是和局部搜索的函数相同
#设置初始参数
T0 = 1000
Tmin = 1
eta = 0.95
#生成初始解 此解是贪心算法得到的
tmp = greedSingle()
bestCost = tmp[0]
bestFactoryOpen = tmp[1]
bestValueAssign = tmp[2]
capacity_copy = capacity.copy()
#因为进行贪心算法之后 全局数据发送了污染 所以要重新读取数据
ReadData(i)
t = T0
while(t >= Tmin):
#进行1000次生成新解的函数
for j in range(1000):
# 生成局部新解
tmp1 = produce_local_search_solution(bestFactoryOpen, bestValueAssign, capacity_copy)
# 如果新解优于原先解 则进行更新
# 否则以一定的概率接受新解
costDiffence = tmp1[0] - bestCost
if tmp1[0] < bestCost or np.exp(-costDiffence/(t))>np.random.rand():
bestCost = tmp1[0]
bestFactoryOpen = tmp1[1]
bestValueAssign = tmp1[2]
capacity_copy = tmp1[3]
t = eta*t
#打印结果
print (bestCost)
print (bestFactoryOpen)
print (bestValueAssign)
return bestCost
4.3 算法结果
4.3.0 退火速率
4.3.1 结果表
- | 模拟退火cost | 模拟退火 time(s) |
---|---|---|
p1 | 13769 | 2.656587 |
p2 | 11466 | 2.641850 |
p3 | 14727 | 2.667020 |
p4 | 16584 | 2.852294 |
p5 | 15663 | 3.088868 |
p6 | 14574 | 3.065171 |
p7 | 16591 | 3.149880 |
p8 | 18325 | 3.218644 |
p9 | 14532 | 2.296108 |
p10 | 13365 | 2.258312 |
p11 | 14302 | 2.376785 |
p12 | 17423 | 2.471864 |
p13 | 18987 | 2.823275 |
p14 | 16537 | 2.651768 |
p15 | 19149 | 2.624019 |
p16 | 22386 | 2.613067 |
p17 | 18924 | 2.832877 |
p18 | 16436 | 2.843060 |
p19 | 20099 | 2.653470 |
p20 | 22959 | 2.621644 |
p21 | 18402 | 2.483836 |
p22 | 16259 | 2.471129 |
p23 | 19784 | 2.436823 |
p24 | 23242 | 2.480293 |
p25 | 32878 | 4.742827 |
p26 | 29553 | 5.012122 |
p27 | 36043 | 5.101242 |
p28 | 41920 | 4.633053 |
p29 | 31933 | 4.437649 |
p30 | 29027 | 4.481081 |
p31 | 35778 | 5.907061 |
p32 | 41484 | 4.662687 |
p33 | 33539 | 4.742150 |
p34 | 29768 | 4.578903 |
p35 | 36035 | 4.707220 |
p36 | 41515 | 4.441839 |
p37 | 33301 | 4.639021 |
p38 | 29845 | 5.087751 |
p39 | 35394 | 5.377422 |
p40 | 40584 | 5.604045 |
p41 | 5442 | 3.724595 |
p42 | 13317 | 3.209031 |
p43 | 13865 | 3.123259 |
p44 | 5943 | 3.532807 |
p45 | 12521 | 3.153406 |
p46 | 16609 | 3.366062 |
p47 | 5062 | 3.812164 |
p48 | 9421 | 3.516839 |
p49 | 11845 | 3.131725 |
p50 | 6345 | 3.685108 |
p51 | 11575 | 4.196008 |
p52 | 10671 | 3.930527 |
p53 | 15839 | 4.120759 |
p54 | 7229 | 4.266769 |
p55 | 11748 | 3.726715 |
p56 | 59824 | 5.849333 |
p57 | 68007 | 6.136020 |
p58 | 87489 | 5.713861 |
p59 | 74406 | 5.884807 |
p60 | 59233 | 5.341070 |
p61 | 67598 | 5.435954 |
p62 | 88646 | 5.310712 |
p63 | 74016 | 5.395750 |
p64 | 59057 | 5.307251 |
p65 | 68004 | 5.295937 |
p66 | 86777 | 5.286841 |
p68 | 59149 | 5.435258 |
p69 | 68575 | 5.343042 |
p70 | 89383 | 5.425940 |
p71 | 74436 | 5.361859 |
4.3.2 解决方案
=============================test1=============================
13761
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 0, 9, 8, 9, 1, 4, 0, 9, 3, 5, 4, 0, 3, 4, 3, 4, 0, 4, 3, 1, 6, 0, 7, 6, 3, 5, 6, 9, 3, 7, 4, 4, 5, 7, 2, 9, 6, 6, 8, 4, 8, 0, 6, 2, 8, 1, 7, 9, 0]
=============================test2=============================
12596
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[2, 8, 7, 6, 6, 3, 4, 9, 4, 4, 3, 0, 6, 6, 4, 9, 8, 3, 7, 3, 0, 9, 9, 5, 7, 9, 3, 3, 5, 1, 0, 2, 8, 6, 2, 3, 5, 2, 1, 2, 7, 7, 8, 1, 0, 7, 5, 0, 2, 9]
=============================test3=============================
13499
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 2, 2, 7, 2, 4, 4, 0, 3, 4, 3, 0, 9, 0, 3, 6, 5, 9, 4, 0, 3, 0, 7, 9, 1, 6, 4, 4, 4, 9, 9, 7, 7, 5, 8, 2, 9, 5, 9, 0, 5, 1, 8, 5, 1, 6, 2, 5, 0, 9]
=============================test4=============================
15377
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[3, 9, 4, 1, 6, 9, 5, 4, 8, 2, 9, 4, 1, 3, 8, 9, 5, 9, 7, 9, 1, 8, 4, 2, 9, 9, 4, 2, 2, 9, 4, 2, 0, 2, 5, 4, 5, 3, 7, 2, 8, 7, 6, 9, 8, 1, 7, 0, 5, 4]
=============================test5=============================
15958
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 1, 2, 1, 4, 7, 0, 8, 6, 4, 2, 0, 3, 9, 9, 5, 0, 1, 4, 9, 8, 8, 5, 7, 7, 7, 6, 6, 3, 1, 8, 0, 2, 9, 2, 8, 0, 6, 4, 4, 5, 1, 2, 1, 3, 6, 9, 2, 6, 2]
=============================test6=============================
14076
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 4, 8, 9, 4, 8, 7, 4, 7, 6, 5, 8, 4, 1, 5, 9, 6, 4, 5, 7, 2, 9, 8, 7, 6, 0, 2, 6, 3, 2, 9, 3, 1, 5, 0, 3, 9, 5, 1, 4, 2, 0, 4, 2, 4, 0, 0, 6, 3, 3]
=============================test7=============================
16329
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[6, 6, 0, 6, 2, 4, 5, 5, 4, 9, 3, 8, 0, 8, 8, 0, 8, 3, 7, 9, 1, 7, 4, 3, 4, 7, 4, 9, 6, 2, 5, 6, 4, 1, 7, 1, 9, 5, 6, 8, 2, 9, 5, 8, 9, 2, 1, 5, 9, 4]
=============================test8=============================
18000
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[7, 5, 4, 8, 8, 9, 3, 4, 5, 4, 5, 2, 8, 8, 3, 6, 2, 2, 9, 0, 7, 2, 1, 6, 1, 9, 8, 5, 2, 8, 9, 5, 6, 6, 0, 3, 1, 2, 0, 6, 7, 1, 3, 0, 6, 3, 0, 4, 7, 9]
=============================test9=============================
14603
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 9, 2, 8, 6, 8, 5, 4, 2, 1, 5, 9, 0, 2, 3, 3, 8, 3, 2, 2, 6, 2, 4, 6, 9, 3, 9, 6, 9, 0, 5, 4, 2, 8, 1, 3, 4, 1, 4, 4, 0, 0, 6, 9, 7, 4, 3, 3, 8, 0]
=============================test10=============================
12741
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[6, 4, 9, 0, 7, 9, 3, 6, 9, 2, 6, 9, 9, 7, 6, 8, 6, 9, 7, 1, 8, 4, 9, 5, 4, 2, 2, 6, 8, 6, 1, 7, 0, 9, 5, 6, 5, 5, 8, 5, 3, 3, 7, 4, 9, 1, 0, 0, 5, 4]
=============================test11=============================
14778
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 1, 3, 4, 7, 5, 6, 8, 9, 7, 6, 1, 2, 0, 5, 6, 9, 5, 6, 7, 7, 5, 6, 2, 0, 3, 9, 3, 3, 3, 5, 6, 1, 6, 5, 9, 2, 3, 5, 3, 9, 0, 5, 0, 3, 3, 2, 6, 4, 8]
=============================test12=============================
16676
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 3, 9, 9, 0, 2, 5, 7, 5, 1, 4, 8, 4, 3, 7, 4, 3, 3, 0, 2, 7, 0, 6, 0, 8, 3, 0, 0, 8, 5, 9, 2, 8, 6, 3, 5, 6, 5, 6, 1, 5, 6, 9, 6, 8, 2, 2, 2, 8, 3]
=============================test13=============================
19392
[1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 19, 17, 4, 11, 8, 10, 0, 8, 5, 3, 4, 5, 17, 5, 17, 6, 0, 16, 3, 1, 1, 17, 18, 3, 12, 8, 13, 15, 7, 11, 10, 8, 0, 14, 2, 1, 7, 4, 12, 12, 0, 5, 17, 12, 1, 5, 3, 14, 16]
=============================test14=============================
16115
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[11, 17, 19, 6, 10, 3, 19, 4, 4, 2, 13, 3, 4, 1, 0, 19, 17, 10, 18, 7, 15, 1, 9, 14, 7, 9, 0, 7, 19, 0, 11, 16, 17, 5, 10, 13, 6, 17, 2, 12, 0, 11, 9, 15, 0, 16, 2, 8, 4, 15]
=============================test15=============================
19720
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1]
[13, 1, 18, 2, 7, 19, 3, 3, 10, 14, 11, 19, 8, 10, 9, 17, 18, 10, 4, 1, 5, 19, 13, 16, 18, 2, 13, 10, 3, 5, 3, 9, 10, 1, 3, 3, 17, 4, 19, 1, 12, 19, 6, 3, 14, 2, 9, 6, 6, 5]
=============================test16=============================
22862
[1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 16, 10, 18, 13, 1, 7, 19, 16, 6, 5, 9, 6, 1, 9, 19, 17, 5, 19, 7, 17, 0, 1, 17, 2, 15, 4, 18, 4, 1, 14, 10, 11, 3, 5, 3, 12, 1, 12, 14, 12, 10, 15, 2, 12, 14, 4, 3, 15, 10]
=============================test17=============================
19362
[1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 4, 0, 0, 13, 15, 9, 6, 13, 8, 6, 17, 7, 12, 6, 16, 17, 12, 5, 15, 13, 5, 17, 2, 11, 17, 17, 10, 9, 4, 5, 7, 5, 16, 19, 9, 18, 8, 8, 3, 6, 11, 13, 2, 2, 4, 14, 16, 8, 11]
=============================test18=============================
15077
[1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[7, 9, 3, 12, 11, 7, 14, 3, 17, 11, 12, 18, 4, 7, 7, 2, 2, 1, 1, 2, 10, 5, 13, 17, 19, 3, 12, 15, 10, 12, 9, 3, 1, 0, 15, 10, 5, 19, 1, 8, 14, 17, 12, 19, 4, 16, 7, 10, 18, 2]
=============================test19=============================
20357
[1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[9, 14, 9, 17, 1, 18, 10, 17, 13, 1, 18, 15, 2, 17, 18, 12, 19, 4, 12, 2, 6, 18, 14, 5, 2, 9, 12, 8, 15, 14, 0, 17, 14, 10, 5, 14, 2, 16, 17, 1, 16, 8, 17, 19, 2, 2, 18, 4, 19, 16]
=============================test20=============================
22761
[1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 3, 19, 14, 15, 13, 0, 7, 17, 19, 10, 14, 11, 5, 19, 5, 7, 11, 18, 5, 11, 4, 8, 11, 16, 2, 12, 8, 18, 1, 16, 16, 12, 2, 16, 0, 1, 4, 4, 15, 5, 12, 5, 16, 6, 4, 0, 0, 5, 6]
=============================test21=============================
19047
[1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1]
[19, 5, 2, 14, 10, 4, 15, 2, 5, 0, 14, 19, 7, 0, 9, 0, 16, 12, 9, 5, 11, 12, 13, 7, 14, 4, 5, 5, 11, 13, 4, 13, 5, 18, 3, 7, 4, 14, 12, 10, 0, 12, 6, 19, 9, 1, 16, 12, 10, 12]
=============================test22=============================
16484
[1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[11, 19, 19, 18, 10, 18, 17, 12, 1, 4, 6, 6, 12, 19, 8, 12, 2, 1, 12, 12, 17, 5, 1, 2, 5, 8, 19, 6, 19, 1, 5, 17, 17, 5, 8, 3, 13, 3, 12, 18, 3, 4, 16, 0, 12, 15, 4, 14, 18, 2]
=============================test23=============================
18914
[1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[6, 15, 18, 17, 12, 13, 10, 10, 12, 7, 0, 8, 2, 19, 5, 0, 16, 9, 18, 0, 13, 16, 2, 17, 18, 2, 5, 14, 10, 11, 3, 13, 6, 16, 2, 16, 12, 13, 9, 4, 2, 19, 16, 6, 19, 2, 0, 5, 14, 16]
=============================test24=============================
22617
[1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 12, 15, 7, 19, 17, 2, 16, 4, 13, 6, 12, 17, 6, 16, 5, 17, 12, 4, 4, 14, 1, 6, 6, 7, 2, 12, 0, 7, 15, 12, 7, 18, 1, 7, 14, 7, 5, 4, 12, 4, 9, 18, 6, 4, 2, 1, 0, 2, 3]
=============================test25=============================
32887
[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, 1, 1, 1, 1, 1]
[27, 17, 12, 0, 11, 23, 21, 12, 28, 12, 11, 20, 17, 23, 10, 2, 10, 10, 4, 23, 5, 26, 20, 3, 2, 25, 12, 3, 22, 4, 14, 17, 5, 18, 11, 5, 21, 29, 24, 0, 4, 9, 11, 9, 14, 4, 12, 1, 16, 9, 29, 24, 23, 0, 26, 5, 8, 19, 10, 7, 29, 26, 17, 6, 25, 14, 18, 20, 22, 15, 28, 18, 21, 22, 0, 15, 19, 23, 23, 24, 17, 23, 9, 8, 16, 2, 19, 19, 9, 17, 20, 19, 7, 5, 26, 15, 5, 22, 21, 1, 9, 13, 26, 10, 10, 3, 26, 5, 3, 16, 9, 28, 2, 11, 3, 11, 2, 25, 15, 4, 13, 0, 23, 19, 14, 17, 7, 27, 16, 19, 24, 23, 9, 11, 27, 12, 24, 16, 7, 5, 17, 15, 26, 25, 15, 8, 25, 20, 0, 6]
=============================test26=============================
29949
[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, 1, 1, 1, 1, 1]
[2, 26, 21, 2, 24, 10, 25, 1, 21, 6, 23, 14, 5, 16, 16, 9, 7, 11, 24, 10, 15, 9, 21, 9, 17, 26, 3, 25, 3, 8, 29, 17, 20, 19, 17, 19, 23, 15, 24, 8, 13, 15, 20, 1, 9, 21, 6, 17, 2, 8, 24, 22, 14, 24, 12, 12, 27, 22, 12, 19, 3, 16, 28, 25, 25, 4, 6, 9, 10, 16, 26, 3, 22, 18, 9, 26, 1, 6, 14, 24, 22, 17, 9, 24, 7, 7, 4, 6, 20, 1, 1, 23, 2, 9, 20, 24, 13, 16, 11, 10, 16, 6, 4, 4, 9, 7, 28, 28, 7, 8, 18, 27, 3, 22, 25, 2, 5, 11, 17, 10, 9, 2, 0, 24, 10, 11, 14, 1, 3, 20, 18, 27, 28, 6, 28, 3, 12, 16, 19, 17, 15, 19, 17, 2, 1, 25, 17, 21, 24, 6]
=============================test27=============================
35704
[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, 1, 1, 1, 1, 1]
[14, 0, 27, 3, 2, 20, 1, 23, 2, 1, 6, 11, 7, 18, 5, 10, 7, 27, 19, 28, 4, 14, 10, 24, 10, 25, 17, 1, 13, 29, 8, 16, 12, 11, 3, 11, 16, 4, 12, 29, 13, 12, 27, 22, 0, 27, 26, 4, 10, 24, 22, 28, 20, 20, 24, 27, 22, 4, 23, 22, 8, 2, 17, 27, 18, 18, 5, 8, 2, 15, 7, 28, 10, 14, 15, 3, 17, 28, 28, 8, 25, 29, 16, 0, 25, 24, 0, 0, 25, 6, 6, 22, 18, 1, 3, 17, 17, 22, 16, 0, 19, 28, 9, 24, 12, 27, 17, 22, 21, 19, 0, 19, 5, 9, 29, 4, 14, 13, 27, 14, 11, 1, 13, 13, 10, 26, 12, 29, 24, 6, 17, 7, 2, 4, 17, 18, 16, 6, 29, 7, 17, 8, 18, 27, 9, 18, 26, 21, 15, 12]
=============================test28=============================
40993
[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, 1, 1, 1, 1, 1]
[4, 16, 26, 16, 6, 27, 19, 22, 13, 4, 23, 16, 7, 11, 2, 15, 16, 29, 25, 12, 28, 29, 22, 6, 11, 13, 18, 6, 11, 15, 11, 14, 15, 24, 24, 23, 2, 15, 4, 11, 11, 7, 21, 7, 9, 19, 11, 27, 22, 22, 10, 14, 1, 1, 13, 22, 28, 17, 20, 24, 25, 26, 13, 8, 18, 26, 9, 4, 22, 12, 5, 2, 6, 10, 1, 16, 16, 7, 4, 23, 4, 26, 16, 16, 19, 12, 27, 28, 10, 3, 28, 8, 24, 13, 21, 19, 9, 16, 21, 26, 15, 24, 9, 27, 16, 14, 7, 5, 23, 16, 26, 25, 18, 14, 6, 11, 16, 5, 17, 22, 20, 10, 27, 28, 3, 0, 6, 2, 6, 15, 27, 19, 19, 17, 3, 13, 21, 10, 25, 11, 2, 25, 20, 9, 15, 18, 11, 7, 16, 2]
=============================test29=============================
32913
[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, 1, 1, 1, 1, 1]
[6, 10, 26, 15, 7, 2, 15, 1, 13, 15, 29, 5, 15, 29, 28, 2, 8, 24, 28, 24, 0, 4, 16, 21, 7, 26, 21, 19, 27, 29, 18, 8, 18, 26, 1, 13, 21, 6, 17, 15, 28, 24, 10, 3, 26, 11, 10, 16, 25, 26, 9, 7, 26, 12, 16, 14, 13, 5, 22, 22, 19, 3, 20, 13, 24, 23, 23, 14, 29, 8, 24, 1, 28, 0, 10, 6, 21, 6, 22, 14, 19, 24, 9, 23, 3, 21, 16, 15, 24, 12, 28, 20, 11, 9, 16, 16, 22, 17, 25, 15, 6, 10, 5, 0, 28, 15, 16, 19, 12, 4, 13, 7, 25, 1, 21, 25, 14, 23, 7, 13, 13, 21, 14, 20, 0, 11, 20, 7, 3, 0, 28, 16, 3, 11, 26, 3, 1, 17, 25, 9, 21, 7, 7, 28, 8, 17, 27, 9, 25, 1]
=============================test30=============================
29874
[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, 1, 1, 1, 1, 1]
[29, 4, 4, 3, 7, 0, 20, 15, 29, 21, 29, 20, 0, 29, 27, 26, 25, 2, 25, 1, 24, 21, 11, 15, 21, 21, 8, 17, 5, 4, 27, 5, 25, 23, 0, 12, 14, 1, 3, 26, 4, 1, 5, 2, 24, 1, 0, 23, 13, 29, 10, 10, 18, 29, 5, 9, 16, 5, 9, 8, 24, 13, 26, 27, 18, 25, 15, 15, 5, 28, 6, 11, 11, 18, 11, 28, 14, 6, 9, 21, 14, 23, 25, 12, 22, 27, 26, 0, 22, 18, 14, 26, 28, 24, 12, 19, 8, 26, 3, 13, 22, 25, 1, 9, 24, 26, 10, 7, 12, 17, 14, 19, 13, 14, 19, 16, 3, 29, 13, 11, 22, 22, 2, 20, 19, 11, 2, 20, 23, 23, 28, 7, 1, 7, 21, 4, 11, 26, 21, 16, 21, 21, 3, 17, 8, 28, 0, 16, 7, 1]
=============================test31=============================
35833
[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, 1, 1, 1, 1, 1]
[1, 14, 3, 21, 29, 11, 1, 16, 3, 7, 29, 25, 28, 9, 1, 0, 25, 3, 10, 17, 27, 17, 17, 15, 8, 5, 4, 24, 16, 25, 13, 21, 5, 0, 5, 4, 1, 20, 21, 22, 7, 0, 2, 26, 1, 24, 6, 29, 29, 25, 6, 4, 8, 28, 8, 29, 27, 7, 29, 3, 26, 19, 2, 12, 13, 23, 16, 20, 14, 1, 11, 24, 9, 16, 9, 23, 17, 6, 17, 17, 4, 0, 17, 17, 24, 3, 10, 13, 23, 10, 13, 26, 10, 4, 10, 14, 13, 18, 14, 9, 17, 0, 26, 23, 27, 1, 11, 17, 9, 0, 6, 7, 19, 11, 29, 7, 15, 17, 20, 15, 12, 7, 17, 21, 5, 13, 28, 22, 25, 16, 17, 14, 18, 3, 11, 13, 25, 7, 11, 7, 4, 20, 6, 18, 27, 3, 27, 25, 17, 15]
=============================test32=============================
41558
[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, 1, 1, 1, 1, 1]
[0, 8, 26, 18, 3, 24, 14, 16, 10, 28, 10, 27, 6, 8, 25, 17, 23, 11, 17, 9, 11, 21, 27, 28, 16, 1, 15, 14, 4, 26, 19, 28, 16, 13, 11, 10, 19, 21, 2, 17, 26, 2, 25, 19, 22, 10, 7, 23, 27, 2, 16, 15, 18, 19, 21, 23, 29, 3, 2, 25, 0, 1, 3, 5, 9, 25, 12, 26, 15, 8, 28, 2, 11, 19, 11, 24, 20, 29, 6, 17, 14, 1, 22, 28, 2, 4, 17, 10, 17, 24, 21, 13, 18, 17, 8, 26, 29, 1, 21, 11, 27, 23, 25, 21, 7, 18, 18, 10, 25, 9, 18, 3, 6, 8, 7, 23, 21, 22, 1, 2, 23, 21, 3, 16, 25, 29, 25, 28, 7, 3, 27, 10, 17, 12, 21, 26, 19, 19, 17, 20, 29, 22, 8, 18, 24, 9, 28, 23, 2, 15]
=============================test33=============================
33333
[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, 1, 1, 1, 1, 1]
[17, 10, 24, 4, 2, 20, 25, 23, 20, 22, 18, 21, 11, 4, 7, 10, 13, 27, 1, 12, 1, 10, 9, 17, 13, 23, 1, 8, 10, 27, 12, 26, 26, 28, 4, 2, 0, 6, 25, 25, 7, 25, 0, 21, 3, 11, 23, 5, 29, 26, 5, 9, 15, 2, 19, 23, 3, 9, 16, 21, 8, 13, 11, 8, 21, 28, 19, 11, 22, 29, 25, 14, 1, 21, 25, 5, 3, 8, 19, 11, 27, 17, 14, 9, 11, 21, 14, 8, 0, 1, 9, 25, 27, 16, 18, 26, 3, 16, 20, 22, 5, 9, 24, 19, 23, 12, 11, 28, 6, 23, 4, 14, 6, 2, 6, 24, 27, 13, 14, 11, 15, 14, 5, 17, 28, 8, 11, 20, 4, 14, 29, 28, 4, 29, 16, 24, 1, 16, 17, 6, 5, 4, 19, 13, 9, 23, 6, 22, 21, 27]
=============================test34=============================
30304
[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, 1, 1, 1, 1, 1]
[24, 5, 27, 13, 14, 26, 3, 15, 7, 19, 10, 13, 14, 1, 1, 18, 21, 5, 21, 24, 16, 21, 19, 7, 7, 13, 8, 17, 19, 14, 28, 12, 6, 2, 11, 0, 4, 10, 22, 22, 12, 14, 16, 9, 19, 9, 29, 7, 1, 19, 12, 26, 10, 28, 6, 2, 20, 21, 26, 23, 18, 3, 17, 19, 17, 27, 17, 10, 11, 21, 11, 28, 17, 16, 8, 9, 23, 10, 15, 16, 21, 27, 28, 13, 8, 6, 5, 19, 10, 3, 25, 5, 6, 21, 13, 7, 11, 12, 16, 1, 23, 18, 7, 25, 10, 11, 7, 2, 28, 5, 10, 26, 28, 12, 5, 18, 4, 20, 27, 22, 0, 24, 20, 7, 23, 3, 12, 2, 18, 2, 11, 22, 22, 8, 14, 4, 17, 27, 6, 17, 1, 1, 29, 0, 17, 2, 7, 6, 9, 16]
=============================test35=============================
35381
[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, 1, 1, 1, 1, 1]
[23, 17, 9, 22, 13, 26, 18, 20, 27, 26, 24, 15, 1, 24, 3, 6, 29, 2, 15, 19, 23, 23, 19, 10, 1, 13, 23, 8, 6, 2, 13, 10, 13, 2, 26, 3, 10, 26, 13, 24, 6, 26, 22, 22, 11, 9, 4, 9, 7, 23, 20, 6, 14, 3, 23, 22, 4, 14, 27, 2, 26, 29, 4, 19, 22, 23, 14, 11, 5, 1, 6, 10, 21, 17, 19, 19, 24, 24, 17, 4, 1, 11, 2, 4, 17, 29, 10, 29, 11, 7, 18, 16, 21, 0, 17, 28, 2, 24, 10, 16, 25, 13, 12, 11, 10, 11, 10, 3, 5, 8, 11, 19, 0, 8, 9, 2, 18, 24, 14, 10, 8, 12, 28, 25, 17, 18, 24, 6, 9, 1, 28, 9, 2, 18, 13, 29, 8, 5, 24, 25, 17, 8, 17, 15, 17, 6, 8, 5, 15, 22]
=============================test36=============================
40037
[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, 1, 1, 1, 1, 1]
[24, 24, 13, 26, 12, 18, 21, 23, 21, 9, 8, 8, 2, 6, 28, 23, 4, 8, 16, 11, 14, 22, 24, 2, 24, 22, 3, 15, 12, 11, 0, 24, 11, 27, 15, 21, 8, 22, 20, 23, 13, 22, 10, 11, 19, 10, 20, 10, 21, 0, 15, 3, 27, 20, 12, 23, 23, 25, 19, 15, 19, 26, 22, 1, 23, 23, 11, 2, 7, 15, 15, 23, 21, 25, 19, 11, 6, 0, 20, 5, 21, 16, 12, 1, 18, 17, 18, 0, 27, 14, 17, 21, 8, 11, 18, 12, 18, 4, 4, 24, 26, 16, 7, 26, 21, 0, 7, 5, 29, 2, 11, 4, 7, 28, 14, 18, 24, 10, 5, 12, 6, 3, 0, 6, 3, 25, 7, 16, 5, 26, 7, 18, 17, 27, 9, 20, 21, 28, 16, 21, 0, 13, 19, 9, 24, 6, 11, 0, 23, 14]
=============================test37=============================
33872
[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, 1, 1, 1, 1, 1]
[4, 8, 27, 26, 6, 18, 9, 19, 28, 6, 17, 10, 19, 23, 25, 11, 24, 28, 2, 26, 17, 9, 3, 8, 5, 5, 5, 16, 24, 23, 3, 17, 24, 9, 15, 13, 22, 14, 28, 21, 18, 14, 15, 10, 24, 3, 8, 19, 25, 14, 20, 1, 12, 25, 21, 18, 22, 15, 21, 1, 25, 21, 8, 18, 9, 5, 17, 27, 4, 24, 7, 13, 16, 15, 27, 27, 24, 4, 5, 28, 16, 27, 2, 22, 18, 10, 13, 29, 17, 21, 0, 23, 29, 24, 29, 18, 23, 4, 6, 23, 0, 4, 9, 7, 10, 29, 3, 8, 27, 6, 3, 24, 12, 12, 13, 14, 1, 29, 2, 22, 28, 28, 6, 3, 8, 22, 27, 0, 12, 19, 24, 6, 16, 16, 24, 21, 8, 0, 16, 5, 4, 12, 26, 19, 13, 8, 0, 1, 18, 12]
=============================test38=============================
28762
[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, 1, 1, 1, 1, 1]
[29, 11, 5, 10, 10, 23, 24, 3, 25, 14, 18, 4, 14, 5, 0, 24, 11, 21, 20, 2, 25, 2, 28, 23, 12, 13, 18, 26, 26, 22, 16, 0, 21, 4, 17, 25, 1, 11, 26, 28, 26, 16, 19, 19, 8, 4, 28, 7, 12, 21, 24, 5, 1, 29, 24, 13, 9, 9, 10, 13, 19, 25, 11, 23, 12, 5, 6, 26, 6, 27, 25, 5, 2, 8, 25, 2, 5, 14, 8, 1, 9, 0, 8, 26, 19, 24, 19, 27, 28, 20, 6, 12, 29, 18, 2, 5, 25, 4, 21, 3, 3, 2, 6, 21, 23, 24, 24, 1, 25, 27, 5, 0, 7, 18, 14, 23, 3, 8, 12, 9, 13, 13, 13, 19, 0, 14, 6, 10, 4, 13, 17, 0, 10, 0, 2, 28, 29, 17, 4, 12, 7, 20, 20, 4, 11, 8, 27, 15, 20, 22]
=============================test39=============================
35833
[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, 1, 1, 1, 1, 1]
[16, 19, 29, 5, 6, 2, 4, 15, 21, 24, 26, 27, 12, 10, 25, 16, 7, 7, 7, 22, 25, 1, 8, 21, 10, 25, 18, 12, 0, 11, 12, 14, 1, 4, 27, 28, 6, 20, 29, 27, 23, 11, 4, 5, 5, 22, 15, 9, 3, 22, 25, 16, 21, 22, 18, 21, 14, 23, 19, 19, 8, 26, 25, 9, 12, 24, 5, 13, 17, 20, 23, 6, 17, 2, 15, 11, 11, 4, 21, 2, 29, 12, 2, 6, 1, 7, 1, 25, 3, 24, 3, 13, 6, 19, 28, 9, 14, 17, 17, 25, 16, 26, 29, 0, 28, 20, 20, 6, 4, 16, 20, 25, 1, 14, 26, 13, 14, 23, 11, 7, 2, 14, 1, 23, 14, 15, 28, 21, 21, 6, 7, 5, 29, 19, 21, 28, 25, 18, 15, 21, 26, 7, 28, 20, 26, 7, 22, 29, 29, 0]
=============================test40=============================
41428
[0, 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, 1, 1, 1, 1]
[16, 21, 7, 13, 4, 21, 24, 4, 12, 4, 10, 26, 5, 18, 21, 23, 14, 24, 5, 27, 4, 10, 23, 26, 29, 7, 12, 14, 29, 2, 8, 26, 18, 18, 7, 11, 5, 17, 24, 23, 11, 12, 23, 2, 2, 20, 19, 17, 10, 27, 25, 22, 20, 26, 1, 1, 6, 18, 5, 16, 24, 18, 14, 15, 6, 27, 18, 22, 4, 5, 26, 27, 10, 10, 24, 16, 3, 9, 24, 9, 2, 18, 29, 21, 16, 7, 7, 27, 23, 18, 9, 23, 10, 18, 10, 11, 22, 22, 20, 24, 6, 6, 6, 3, 19, 14, 2, 17, 8, 20, 3, 7, 4, 8, 20, 7, 27, 16, 23, 22, 8, 10, 2, 8, 23, 24, 19, 14, 19, 7, 12, 21, 14, 3, 21, 3, 18, 19, 5, 16, 27, 6, 16, 7, 11, 24, 23, 21, 28, 20]
=============================test41=============================
5511
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 6, 9, 2, 8, 6, 7, 5, 7, 4, 4, 6, 1, 1, 6, 3, 7, 3, 0, 8, 5, 7, 8, 4, 7, 3, 0, 7, 8, 8, 1, 1, 5, 2, 4, 2, 5, 1, 4, 3, 4, 3, 9, 6, 6, 5, 5, 2, 1, 4, 2, 2, 3, 4, 4, 9, 6, 4, 7, 1, 3, 7, 7, 9, 0, 6, 4, 6, 0, 5, 9, 0, 1, 7, 9, 0, 4, 2, 6, 2, 4, 5, 4, 6, 0, 7, 2, 1, 8, 3]
=============================test42=============================
12548
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[11, 4, 7, 13, 13, 12, 17, 8, 19, 8, 17, 12, 11, 1, 15, 4, 5, 19, 12, 4, 16, 15, 19, 6, 14, 11, 17, 0, 0, 4, 5, 10, 8, 14, 17, 0, 17, 4, 18, 6, 3, 16, 6, 13, 1, 14, 9, 6, 5, 16, 2, 8, 11, 19, 14, 4, 19, 14, 18, 18, 17, 7, 11, 13, 3, 16, 1, 14, 8, 15, 16, 8, 19, 13, 6, 10, 2, 0, 18, 9]
=============================test43=============================
13755
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1]
[20, 15, 14, 7, 29, 27, 21, 7, 0, 0, 12, 17, 4, 19, 19, 9, 7, 24, 22, 21, 25, 29, 8, 28, 3, 16, 8, 1, 13, 19, 9, 16, 12, 24, 7, 16, 9, 10, 19, 26, 11, 2, 10, 14, 21, 14, 5, 25, 5, 6, 12, 21, 14, 16, 5, 18, 28, 9, 27, 7, 20, 4, 14, 28, 2, 9, 29, 8, 8, 4]
=============================test44=============================
6163
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 3, 2, 4, 7, 9, 2, 3, 4, 9, 4, 0, 5, 5, 1, 1, 0, 2, 2, 2, 4, 2, 2, 7, 7, 9, 5, 0, 3, 2, 5, 8, 2, 4, 2, 2, 8, 9, 8, 1, 8, 7, 7, 2, 6, 8, 8, 4, 3, 3, 0, 5, 5, 9, 0, 1, 1, 1, 3, 7, 7, 0, 1, 4, 7, 0, 6, 9, 4, 5, 4, 4, 6, 6, 7, 0, 2, 7, 0, 5, 9, 5, 2, 3, 3, 6, 4, 6, 6, 1]
=============================test45=============================
12440
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[16, 17, 5, 4, 16, 2, 3, 16, 2, 8, 5, 5, 10, 15, 5, 4, 9, 6, 11, 3, 4, 13, 0, 6, 5, 16, 2, 9, 11, 4, 5, 16, 8, 13, 15, 12, 7, 9, 12, 19, 8, 5, 8, 8, 11, 16, 7, 6, 9, 16, 6, 13, 5, 7, 9, 15, 1, 5, 2, 12, 4, 14, 10, 18, 3, 4, 2, 11, 2, 13, 14, 19, 0, 13, 19, 18, 16, 0, 1, 9]
=============================test46=============================
16616
[1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]
[14, 4, 29, 15, 18, 4, 2, 21, 11, 4, 12, 13, 22, 23, 14, 2, 16, 12, 24, 29, 5, 8, 19, 21, 11, 21, 2, 2, 5, 12, 23, 13, 23, 19, 1, 12, 27, 23, 1, 1, 0, 25, 0, 27, 9, 25, 28, 11, 22, 1, 10, 10, 29, 10, 3, 23, 23, 18, 20, 20, 4, 8, 27, 21, 19, 25, 15, 25, 15, 22]
=============================test47=============================
5054
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[4, 4, 4, 7, 5, 2, 9, 9, 5, 2, 8, 2, 2, 4, 3, 6, 4, 4, 0, 8, 7, 1, 8, 4, 0, 7, 2, 4, 4, 6, 3, 9, 9, 7, 7, 8, 0, 1, 1, 0, 0, 5, 3, 6, 5, 4, 4, 0, 8, 1, 3, 6, 2, 9, 6, 5, 5, 5, 9, 7, 6, 4, 2, 0, 3, 5, 7, 6, 2, 0, 5, 7, 6, 2, 6, 1, 3, 5, 0, 0, 3, 6, 6, 4, 4, 4, 7, 5, 9, 3]
=============================test48=============================
9271
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 3, 13, 13, 19, 5, 10, 9, 18, 1, 4, 17, 17, 17, 2, 14, 8, 10, 6, 5, 10, 7, 2, 12, 6, 15, 19, 18, 14, 6, 2, 4, 5, 13, 10, 7, 15, 7, 4, 0, 3, 18, 0, 14, 9, 7, 0, 8, 16, 8, 6, 13, 7, 15, 18, 13, 18, 17, 18, 1, 2, 7, 6, 19, 16, 5, 6, 19, 8, 12, 2, 19, 17, 2, 3, 12, 3, 17, 10, 10]
=============================test49=============================
12184
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
[7, 3, 7, 19, 24, 4, 16, 10, 16, 24, 1, 5, 3, 20, 21, 10, 18, 11, 11, 9, 4, 8, 20, 19, 27, 28, 26, 19, 11, 20, 20, 7, 15, 18, 2, 12, 26, 27, 26, 18, 21, 5, 29, 26, 15, 25, 19, 16, 5, 3, 4, 9, 6, 11, 13, 19, 7, 4, 28, 11, 27, 2, 5, 15, 28, 7, 17, 5, 23, 27]
=============================test50=============================
6333
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 9, 6, 0, 2, 5, 5, 3, 0, 7, 2, 4, 7, 3, 0, 8, 8, 0, 6, 4, 0, 6, 5, 1, 4, 4, 6, 4, 2, 9, 5, 2, 3, 8, 3, 0, 1, 9, 0, 2, 6, 6, 6, 2, 7, 1, 7, 3, 2, 8, 2, 7, 8, 7, 6, 9, 6, 2, 2, 1, 9, 0, 8, 6, 3, 8, 2, 6, 4, 1, 6, 4, 6, 6, 7, 8, 1, 3, 4, 0, 7, 0, 1, 1, 7, 5, 6, 6, 0, 9, 6, 0, 1, 7, 1, 5, 6, 0, 1, 7]
=============================test51=============================
11529
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[16, 12, 7, 4, 13, 5, 3, 9, 6, 18, 18, 6, 0, 0, 3, 6, 0, 19, 12, 3, 9, 19, 10, 19, 3, 12, 2, 19, 5, 4, 13, 17, 9, 7, 3, 18, 7, 9, 6, 7, 6, 4, 16, 4, 0, 7, 5, 4, 0, 0, 18, 11, 14, 1, 7, 18, 17, 0, 5, 13, 1, 0, 15, 14, 18, 9, 17, 7, 5, 15, 12, 8, 18, 7, 9, 9, 16, 8, 3, 13, 2, 17, 19, 13, 0, 12, 13, 7, 10, 16, 5, 7, 18, 1, 10, 18, 16, 16, 18, 9]
=============================test52=============================
10446
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 6, 0, 7, 0, 9, 1, 6, 0, 2, 6, 4, 3, 5, 5, 7, 6, 3, 2, 2, 5, 3, 2, 7, 4, 2, 6, 0, 0, 4, 6, 5, 8, 2, 9, 5, 3, 6, 0, 1, 6, 7, 2, 7, 5, 3, 8, 5, 2, 8, 6, 3, 0, 6, 9, 4, 7, 4, 1, 0, 3, 3, 4, 9, 1, 7, 5, 7, 7, 7, 7, 0, 6, 1, 5, 8, 5, 5, 5, 7, 9, 0, 6, 3, 7, 0, 0, 6, 6, 4, 7, 7, 5, 9, 5, 3, 3, 7, 4, 8]
=============================test53=============================
15805
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[15, 18, 7, 19, 10, 1, 0, 4, 7, 15, 19, 4, 3, 4, 17, 13, 3, 8, 18, 2, 2, 9, 17, 3, 11, 12, 5, 13, 13, 0, 18, 8, 16, 2, 18, 13, 7, 14, 5, 10, 17, 16, 17, 10, 14, 12, 1, 0, 19, 7, 18, 2, 18, 6, 18, 10, 9, 4, 2, 14, 11, 18, 19, 16, 18, 10, 0, 2, 4, 1, 14, 7, 4, 1, 2, 5, 5, 5, 18, 6, 13, 16, 13, 15, 7, 8, 16, 9, 4, 0, 9, 0, 4, 8, 12, 9, 3, 10, 15, 7]
=============================test54=============================
7256
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[5, 0, 7, 4, 1, 2, 4, 1, 2, 3, 8, 6, 2, 8, 4, 3, 1, 7, 6, 7, 0, 4, 6, 3, 4, 6, 1, 5, 6, 9, 3, 6, 3, 9, 0, 1, 7, 4, 0, 3, 6, 6, 6, 1, 4, 2, 8, 7, 5, 3, 8, 3, 2, 3, 1, 0, 3, 3, 2, 2, 4, 7, 4, 2, 7, 8, 6, 8, 0, 5, 5, 1, 3, 3, 5, 7, 6, 2, 4, 2, 4, 6, 3, 4, 0, 8, 7, 4, 4, 1, 5, 7, 4, 3, 3, 7, 8, 6, 5, 9]
=============================test55=============================
12076
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 3, 11, 15, 15, 19, 2, 13, 0, 6, 14, 16, 3, 14, 16, 6, 3, 7, 11, 16, 19, 7, 16, 16, 18, 7, 12, 15, 7, 1, 4, 18, 16, 16, 7, 18, 16, 9, 7, 1, 8, 9, 5, 8, 13, 0, 14, 14, 16, 11, 5, 13, 17, 14, 7, 13, 9, 11, 8, 16, 5, 3, 7, 9, 17, 1, 10, 7, 0, 14, 10, 5, 1, 4, 12, 8, 16, 8, 17, 4, 13, 12, 7, 5, 3, 15, 5, 5, 5, 5, 9, 7, 16, 8, 8, 14, 15, 12, 2, 18]
=============================test56=============================
59620
[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, 1, 1, 1, 1, 1]
[10, 8, 14, 20, 23, 9, 22, 11, 1, 27, 7, 13, 0, 10, 7, 3, 21, 18, 13, 5, 23, 11, 23, 5, 20, 26, 15, 15, 11, 29, 27, 13, 6, 28, 20, 25, 25, 14, 11, 6, 17, 25, 19, 6, 15, 17, 16, 26, 9, 28, 3, 15, 5, 29, 18, 26, 1, 11, 13, 15, 11, 19, 13, 1, 1, 8, 13, 27, 1, 11, 25, 2, 16, 11, 29, 26, 6, 22, 25, 6, 26, 0, 9, 23, 5, 13, 25, 8, 9, 0, 21, 24, 10, 0, 29, 10, 3, 26, 18, 29, 6, 5, 19, 27, 8, 2, 24, 24, 23, 26, 3, 10, 5, 3, 23, 20, 23, 21, 27, 27, 18, 5, 8, 21, 17, 27, 14, 4, 28, 21, 25, 13, 25, 16, 15, 1, 9, 21, 3, 11, 26, 23, 8, 27, 7, 26, 18, 11, 2, 1, 17, 1, 4, 6, 4, 9, 27, 6, 28, 7, 21, 26, 26, 8, 19, 25, 25, 19, 1, 15, 20, 4, 15, 12, 14, 5, 6, 27, 29, 18, 7, 5, 16, 8, 3, 11, 28, 25, 18, 28, 18, 25, 17, 21, 7, 26, 9, 20, 10, 18]
=============================test57=============================
69062
[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, 1, 1, 1, 1, 1]
[26, 2, 12, 20, 19, 29, 1, 0, 4, 20, 9, 25, 5, 21, 4, 24, 19, 6, 18, 17, 17, 12, 26, 5, 23, 28, 17, 17, 2, 26, 8, 5, 11, 29, 11, 29, 13, 10, 16, 11, 12, 29, 18, 9, 8, 10, 1, 6, 21, 7, 1, 12, 17, 0, 10, 21, 15, 25, 26, 27, 26, 29, 13, 13, 6, 29, 27, 17, 29, 7, 22, 27, 4, 6, 23, 19, 23, 10, 16, 10, 4, 11, 21, 22, 13, 8, 23, 20, 8, 28, 20, 29, 8, 20, 20, 20, 29, 2, 12, 1, 11, 25, 14, 6, 11, 24, 1, 6, 15, 2, 5, 4, 8, 3, 13, 1, 27, 27, 6, 24, 5, 13, 19, 27, 19, 18, 13, 8, 8, 22, 2, 19, 1, 5, 24, 12, 14, 27, 9, 6, 27, 6, 6, 10, 27, 4, 2, 28, 8, 15, 7, 2, 27, 0, 14, 26, 0, 11, 13, 22, 26, 9, 4, 12, 4, 29, 13, 6, 15, 10, 16, 18, 26, 24, 20, 25, 2, 22, 21, 12, 8, 1, 16, 22, 4, 20, 17, 9, 28, 24, 11, 29, 19, 13, 4, 5, 9, 23, 9, 28]
=============================test58=============================
89655
[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, 1, 1, 1, 1, 1]
[22, 19, 1, 1, 5, 5, 25, 8, 28, 11, 27, 16, 15, 25, 0, 24, 15, 26, 16, 24, 0, 26, 20, 14, 10, 17, 4, 24, 21, 26, 6, 24, 26, 4, 0, 17, 20, 6, 16, 26, 15, 4, 3, 28, 1, 13, 23, 17, 21, 25, 11, 9, 8, 5, 1, 7, 20, 14, 27, 12, 1, 0, 11, 26, 28, 16, 7, 17, 8, 9, 5, 26, 29, 21, 25, 7, 1, 11, 9, 8, 19, 29, 6, 25, 8, 9, 23, 23, 9, 18, 0, 16, 28, 9, 11, 15, 2, 18, 3, 12, 24, 2, 20, 22, 3, 4, 28, 17, 24, 23, 11, 29, 18, 29, 27, 26, 12, 29, 13, 28, 27, 27, 3, 18, 16, 20, 11, 6, 15, 3, 26, 17, 7, 27, 27, 9, 4, 29, 23, 20, 29, 6, 10, 21, 3, 23, 3, 8, 19, 20, 27, 10, 3, 9, 29, 16, 27, 26, 13, 17, 17, 8, 21, 5, 7, 5, 12, 0, 11, 24, 14, 19, 2, 6, 10, 22, 26, 1, 4, 11, 0, 8, 25, 10, 5, 14, 7, 29, 17, 4, 2, 4, 5, 7, 24, 2, 12, 4, 3, 15]
=============================test59=============================
74742
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[16, 23, 13, 18, 28, 2, 10, 28, 1, 20, 5, 7, 1, 22, 28, 20, 19, 28, 15, 2, 9, 29, 17, 14, 20, 21, 25, 20, 10, 8, 16, 28, 7, 25, 2, 25, 15, 18, 21, 16, 4, 9, 25, 0, 4, 28, 6, 16, 1, 25, 5, 7, 19, 23, 5, 3, 9, 8, 29, 19, 25, 27, 26, 26, 16, 5, 29, 21, 13, 11, 11, 15, 9, 7, 21, 26, 1, 13, 19, 23, 8, 23, 16, 13, 3, 18, 27, 1, 14, 0, 17, 4, 10, 5, 14, 28, 3, 28, 21, 9, 29, 7, 8, 17, 6, 25, 13, 27, 21, 9, 16, 28, 14, 20, 17, 8, 10, 21, 27, 2, 24, 6, 21, 10, 15, 11, 16, 23, 22, 1, 3, 29, 18, 18, 5, 24, 6, 14, 17, 4, 21, 16, 26, 19, 6, 25, 10, 5, 14, 29, 4, 14, 8, 7, 5, 5, 21, 18, 27, 9, 19, 26, 25, 8, 28, 17, 19, 14, 8, 25, 20, 28, 5, 20, 18, 4, 28, 18, 27, 13, 3, 6, 18, 14, 26, 15, 17, 3, 11, 13, 9, 29, 5, 7, 24, 26, 10, 0, 17, 16]
=============================test60=============================
59820
[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, 1, 1, 1, 1, 1]
[20, 29, 24, 5, 27, 23, 12, 10, 7, 2, 17, 7, 17, 28, 17, 27, 7, 23, 6, 25, 6, 15, 0, 4, 25, 16, 23, 28, 0, 4, 13, 24, 15, 8, 8, 16, 8, 2, 11, 4, 18, 19, 27, 2, 18, 11, 3, 16, 14, 5, 28, 28, 21, 4, 14, 25, 14, 4, 26, 9, 27, 19, 9, 15, 20, 19, 7, 5, 5, 10, 14, 4, 16, 12, 11, 18, 23, 6, 6, 23, 4, 23, 6, 9, 15, 2, 24, 16, 13, 29, 29, 28, 6, 11, 9, 18, 12, 27, 18, 28, 9, 21, 13, 27, 22, 18, 23, 22, 20, 15, 26, 1, 5, 23, 21, 1, 14, 18, 23, 11, 13, 4, 4, 1, 25, 8, 3, 23, 1, 28, 4, 22, 25, 12, 11, 21, 9, 2, 10, 3, 10, 1, 1, 12, 26, 0, 25, 6, 8, 25, 28, 27, 15, 21, 3, 20, 0, 25, 13, 5, 8, 29, 15, 20, 13, 6, 22, 28, 24, 18, 8, 7, 24, 18, 26, 25, 22, 3, 14, 8, 15, 23, 25, 13, 1, 27, 29, 1, 5, 2, 20, 28, 6, 22, 20, 5, 10, 26, 19, 10]
=============================test61=============================
69078
[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, 1, 1, 1, 1, 1]
[3, 18, 7, 12, 24, 25, 16, 29, 3, 8, 25, 21, 3, 8, 13, 13, 27, 23, 10, 23, 27, 2, 17, 17, 16, 6, 11, 13, 27, 8, 10, 27, 15, 17, 3, 12, 8, 27, 18, 24, 29, 14, 18, 15, 29, 21, 7, 24, 22, 12, 27, 1, 14, 12, 13, 12, 7, 25, 13, 11, 12, 13, 29, 18, 8, 8, 4, 3, 25, 20, 11, 17, 4, 24, 8, 13, 12, 12, 0, 6, 6, 25, 26, 16, 1, 28, 8, 25, 28, 23, 20, 8, 18, 12, 8, 23, 4, 24, 26, 19, 7, 6, 25, 6, 0, 1, 0, 23, 4, 11, 11, 26, 9, 1, 7, 21, 2, 2, 11, 27, 16, 19, 1, 16, 20, 27, 7, 15, 27, 26, 29, 18, 17, 23, 20, 4, 17, 8, 24, 18, 25, 15, 3, 26, 8, 9, 2, 8, 3, 8, 3, 13, 8, 19, 0, 21, 8, 18, 5, 17, 20, 4, 3, 2, 29, 3, 9, 20, 25, 20, 28, 7, 24, 22, 9, 29, 20, 17, 26, 9, 10, 5, 28, 1, 14, 16, 15, 1, 13, 29, 4, 6, 7, 23, 21, 17, 15, 16, 4, 11]
=============================test62=============================
88888
[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, 1, 1, 1, 1, 1]
[7, 26, 9, 27, 2, 1, 6, 24, 16, 28, 16, 20, 27, 10, 16, 22, 25, 23, 19, 5, 0, 27, 28, 21, 17, 26, 26, 15, 28, 12, 27, 8, 3, 10, 7, 28, 9, 29, 1, 21, 2, 16, 8, 20, 9, 17, 26, 26, 9, 11, 0, 14, 26, 5, 7, 29, 16, 23, 10, 12, 21, 20, 20, 12, 18, 3, 4, 11, 11, 8, 17, 29, 27, 11, 11, 14, 9, 13, 2, 16, 5, 2, 3, 13, 13, 27, 3, 0, 20, 1, 21, 24, 16, 28, 3, 0, 28, 19, 14, 12, 2, 14, 29, 13, 24, 28, 19, 17, 11, 13, 19, 0, 7, 2, 13, 21, 14, 25, 19, 2, 11, 22, 10, 9, 5, 12, 2, 2, 11, 9, 21, 27, 28, 29, 1, 2, 29, 3, 23, 7, 6, 2, 1, 0, 21, 25, 1, 12, 19, 8, 24, 12, 29, 21, 26, 22, 21, 14, 28, 22, 6, 7, 10, 27, 6, 3, 3, 15, 19, 4, 17, 25, 14, 9, 28, 27, 28, 24, 19, 28, 22, 2, 19, 15, 28, 26, 29, 8, 3, 12, 26, 26, 2, 23, 20, 6, 22, 13, 17, 4]
=============================test63=============================
75220
[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, 1, 1, 1, 1, 1]
[12, 28, 16, 25, 1, 6, 13, 4, 21, 19, 20, 7, 28, 17, 1, 21, 13, 1, 17, 22, 21, 8, 1, 16, 21, 29, 17, 16, 0, 13, 9, 12, 13, 4, 22, 2, 0, 7, 26, 25, 24, 0, 2, 10, 23, 1, 6, 10, 5, 12, 23, 3, 19, 18, 19, 6, 11, 15, 27, 5, 23, 13, 21, 25, 18, 11, 18, 7, 15, 13, 27, 10, 15, 12, 8, 15, 21, 17, 15, 13, 28, 13, 20, 10, 8, 25, 13, 23, 26, 10, 11, 13, 25, 15, 22, 9, 20, 20, 24, 4, 8, 29, 15, 1, 5, 1, 10, 29, 7, 22, 24, 29, 3, 0, 25, 1, 7, 20, 2, 16, 27, 15, 27, 4, 14, 2, 8, 29, 19, 11, 26, 13, 19, 26, 20, 25, 8, 21, 9, 2, 18, 28, 1, 0, 13, 5, 1, 16, 8, 21, 6, 0, 4, 23, 13, 29, 12, 22, 3, 27, 15, 26, 21, 8, 13, 2, 15, 29, 0, 16, 5, 28, 11, 10, 16, 6, 5, 26, 25, 15, 18, 27, 16, 22, 9, 22, 5, 24, 12, 6, 0, 9, 27, 21, 4, 2, 29, 22, 13, 1]
=============================test64=============================
60387
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1]
[2, 21, 18, 25, 28, 0, 4, 19, 6, 28, 10, 14, 1, 18, 4, 27, 12, 10, 25, 10, 1, 2, 2, 28, 1, 1, 11, 5, 16, 26, 11, 0, 29, 15, 15, 18, 2, 21, 15, 0, 23, 16, 10, 9, 29, 6, 26, 15, 5, 9, 3, 12, 15, 11, 28, 12, 23, 6, 2, 16, 14, 15, 1, 12, 0, 27, 24, 11, 3, 17, 27, 19, 20, 14, 24, 0, 24, 25, 23, 9, 4, 1, 0, 7, 16, 2, 15, 2, 17, 7, 21, 25, 23, 2, 0, 14, 8, 26, 1, 27, 8, 6, 26, 2, 14, 24, 12, 25, 13, 7, 9, 20, 11, 29, 5, 14, 19, 20, 18, 16, 17, 13, 16, 3, 28, 18, 6, 29, 4, 14, 27, 8, 21, 18, 29, 5, 4, 14, 11, 14, 11, 18, 5, 11, 14, 0, 21, 9, 14, 27, 9, 29, 18, 21, 10, 12, 1, 26, 11, 9, 21, 11, 8, 27, 18, 5, 3, 7, 3, 7, 24, 20, 29, 8, 2, 16, 28, 20, 7, 15, 13, 9, 27, 27, 12, 20, 5, 10, 9, 18, 28, 26, 13, 26, 28, 13, 14, 8, 4, 7]
=============================test65=============================
67850
[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, 1, 1, 1, 1, 1]
[14, 11, 21, 13, 18, 11, 21, 1, 3, 20, 10, 25, 29, 14, 23, 12, 13, 12, 20, 21, 12, 9, 17, 11, 16, 20, 19, 15, 19, 17, 16, 7, 8, 15, 11, 26, 4, 6, 4, 13, 18, 20, 11, 10, 5, 3, 24, 12, 15, 27, 21, 11, 18, 24, 22, 23, 26, 7, 4, 24, 24, 10, 5, 2, 19, 27, 0, 13, 0, 7, 25, 28, 8, 27, 26, 11, 24, 25, 11, 11, 2, 13, 4, 3, 23, 0, 25, 1, 14, 12, 26, 27, 27, 5, 3, 17, 16, 10, 29, 10, 4, 0, 2, 7, 26, 7, 7, 2, 1, 14, 4, 8, 21, 27, 25, 16, 19, 19, 15, 22, 19, 16, 1, 26, 24, 12, 4, 21, 5, 6, 22, 20, 13, 23, 2, 4, 7, 17, 16, 22, 1, 13, 20, 8, 15, 23, 22, 12, 28, 28, 14, 25, 3, 28, 5, 23, 8, 9, 26, 9, 1, 15, 21, 20, 4, 29, 7, 21, 28, 23, 11, 19, 9, 23, 21, 4, 17, 1, 16, 17, 27, 11, 5, 15, 10, 21, 24, 10, 16, 23, 8, 21, 19, 27, 5, 13, 21, 14, 1, 27]
=============================test66=============================
89091
[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, 1, 1, 1, 1, 1]
[3, 23, 2, 18, 0, 26, 19, 5, 25, 5, 2, 2, 29, 28, 16, 24, 17, 11, 20, 25, 20, 14, 25, 24, 23, 3, 19, 2, 23, 28, 13, 10, 2, 17, 20, 18, 5, 0, 13, 6, 18, 9, 13, 11, 23, 16, 6, 5, 4, 4, 4, 20, 5, 10, 4, 4, 16, 0, 2, 12, 5, 0, 7, 1, 11, 6, 14, 21, 6, 14, 20, 13, 26, 3, 24, 22, 22, 3, 28, 18, 5, 14, 16, 23, 25, 15, 12, 19, 21, 14, 8, 8, 2, 21, 19, 22, 11, 9, 25, 22, 12, 16, 27, 1, 6, 24, 24, 7, 25, 20, 14, 11, 28, 19, 5, 5, 17, 24, 28, 0, 9, 6, 28, 11, 8, 26, 27, 25, 9, 3, 10, 0, 15, 14, 13, 25, 13, 22, 22, 16, 29, 7, 27, 0, 25, 19, 28, 24, 25, 16, 26, 17, 7, 4, 16, 5, 10, 19, 29, 3, 15, 20, 3, 1, 2, 25, 29, 0, 12, 15, 7, 10, 3, 19, 3, 17, 18, 0, 11, 3, 10, 19, 22, 24, 29, 9, 18, 24, 17, 2, 7, 23, 5, 11, 20, 10, 12, 7, 9, 28]
=============================test68=============================
59479
[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, 1, 1, 1, 1, 1]
[23, 2, 22, 17, 5, 24, 26, 15, 22, 16, 7, 20, 4, 7, 9, 25, 26, 22, 7, 4, 18, 16, 20, 2, 18, 27, 21, 28, 19, 12, 11, 17, 14, 2, 20, 23, 21, 7, 29, 19, 8, 29, 25, 5, 17, 1, 23, 12, 8, 20, 29, 25, 11, 8, 20, 16, 14, 2, 1, 9, 29, 13, 18, 10, 13, 18, 4, 13, 7, 12, 12, 9, 0, 22, 5, 15, 1, 20, 26, 5, 26, 25, 15, 29, 4, 13, 15, 24, 15, 11, 4, 0, 6, 23, 17, 13, 20, 25, 29, 12, 23, 9, 24, 21, 26, 3, 8, 12, 0, 16, 9, 20, 6, 26, 22, 28, 24, 20, 4, 3, 16, 24, 6, 5, 14, 11, 16, 29, 28, 23, 29, 27, 5, 17, 2, 28, 4, 8, 26, 3, 10, 7, 18, 5, 2, 9, 17, 3, 11, 0, 23, 8, 13, 9, 8, 27, 1, 13, 6, 0, 16, 1, 21, 29, 24, 29, 28, 1, 5, 19, 10, 10, 10, 25, 23, 0, 28, 13, 1, 28, 0, 8, 9, 3, 15, 13, 3, 0, 27, 19, 17, 23, 26, 20, 13, 13, 17, 11, 8, 4]
=============================test69=============================
68782
[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, 1, 1, 1, 1, 1]
[2, 4, 17, 21, 15, 20, 2, 16, 10, 1, 21, 25, 28, 20, 26, 2, 9, 18, 26, 7, 29, 8, 21, 15, 6, 0, 15, 11, 12, 23, 13, 6, 17, 26, 14, 7, 4, 3, 2, 8, 4, 18, 18, 27, 24, 19, 2, 8, 18, 24, 1, 25, 24, 7, 6, 1, 3, 15, 7, 15, 28, 10, 24, 13, 6, 17, 5, 23, 4, 19, 2, 23, 9, 21, 5, 11, 24, 4, 4, 24, 9, 3, 7, 17, 16, 6, 17, 24, 21, 11, 21, 24, 22, 17, 8, 9, 7, 20, 4, 0, 28, 18, 1, 1, 28, 12, 22, 7, 3, 18, 12, 20, 19, 15, 22, 8, 4, 3, 23, 6, 1, 27, 5, 17, 18, 22, 9, 27, 25, 24, 24, 13, 19, 14, 8, 28, 11, 16, 25, 14, 8, 4, 6, 9, 5, 20, 25, 23, 17, 0, 28, 28, 11, 18, 10, 2, 5, 13, 27, 0, 23, 19, 4, 2, 5, 22, 16, 0, 15, 15, 11, 1, 21, 20, 8, 17, 10, 16, 8, 15, 14, 27, 15, 5, 2, 7, 6, 17, 15, 10, 22, 28, 27, 21, 18, 10, 8, 13, 27, 29]
=============================test70=============================
90108
[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, 1, 1, 1, 1, 1]
[14, 23, 15, 25, 4, 11, 4, 0, 23, 12, 24, 11, 23, 8, 23, 5, 3, 6, 10, 25, 26, 11, 16, 4, 24, 16, 16, 23, 13, 21, 0, 4, 1, 3, 19, 6, 25, 24, 19, 18, 28, 10, 11, 5, 0, 28, 22, 9, 28, 29, 4, 21, 18, 13, 5, 19, 1, 27, 1, 17, 0, 16, 4, 1, 8, 0, 19, 25, 18, 22, 27, 21, 20, 17, 20, 17, 22, 1, 23, 26, 8, 13, 21, 0, 27, 8, 7, 21, 2, 0, 0, 19, 27, 22, 13, 29, 24, 22, 16, 19, 24, 3, 18, 13, 22, 8, 27, 24, 0, 19, 10, 21, 1, 2, 9, 3, 10, 12, 0, 18, 6, 10, 8, 28, 19, 17, 6, 11, 6, 17, 1, 18, 27, 8, 16, 28, 9, 16, 7, 15, 8, 0, 15, 27, 22, 16, 3, 20, 18, 28, 5, 23, 18, 11, 3, 15, 19, 2, 16, 24, 15, 2, 9, 26, 16, 22, 2, 7, 9, 26, 29, 1, 8, 8, 14, 25, 9, 3, 16, 0, 26, 29, 7, 14, 24, 25, 5, 14, 1, 20, 13, 29, 1, 8, 10, 25, 24, 3, 1, 23]
=============================test71=============================
74562
[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, 1, 1, 1, 1, 1]
[11, 26, 18, 5, 18, 7, 11, 26, 18, 13, 21, 0, 29, 28, 19, 14, 18, 13, 19, 23, 23, 26, 17, 8, 24, 0, 19, 17, 13, 24, 14, 13, 9, 6, 23, 28, 0, 0, 21, 18, 4, 26, 16, 14, 27, 8, 28, 2, 10, 29, 16, 18, 20, 3, 28, 1, 7, 28, 19, 17, 27, 12, 12, 23, 7, 13, 19, 23, 0, 4, 13, 24, 11, 1, 29, 25, 14, 26, 21, 3, 21, 16, 25, 5, 10, 15, 21, 26, 29, 14, 16, 25, 10, 27, 22, 14, 4, 4, 9, 10, 20, 4, 21, 9, 3, 22, 7, 18, 28, 1, 1, 20, 11, 4, 13, 7, 12, 0, 20, 5, 19, 26, 21, 7, 19, 26, 3, 27, 11, 11, 4, 0, 9, 0, 24, 16, 18, 22, 26, 0, 23, 22, 3, 28, 17, 29, 29, 9, 18, 15, 27, 0, 21, 5, 16, 5, 26, 1, 6, 8, 17, 27, 0, 16, 5, 1, 2, 8, 23, 13, 24, 27, 14, 1, 1, 2, 7, 4, 3, 18, 25, 15, 5, 16, 16, 22, 15, 18, 14, 1, 6, 2, 14, 18, 6, 22, 4, 20, 21, 11]