QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83177#5156. Going in Circlesxiaowuc1AC ✓111ms3560kbC++172.5kb2023-03-01 06:18:122023-03-01 06:19:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 73ms
memory: 3464kb

input:

0
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
1
0
1
0
1
1
0
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
0
1
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
1
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
0
0
1
0
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
1
1
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #2:

score: 0
Accepted
time: 52ms
memory: 3468kb

input:

1
0
1
0
1
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
1
1
0
1
0
1
0
1
1
0
1
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
1
1
0
1
1
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
1
0
0
0
1
1
0
1
1
0
1
1
1
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15003.

Test #3:

score: 0
Accepted
time: 71ms
memory: 3464kb

input:

0
0
1
0
0
0
0
0
1
1
0
0
1
0
1
0
0
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
1
1
0
0
1
1
1
0
1
0
0
0
1
0
1
0
1
1
0
1
1
1
0
0
0
1
1
1
0
1
0
1
1
1
0
0
1
0
1
0
0
1
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
1
1
1
0
1
0
1
1
1
0
0
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
1
1
0
1
0
0
0
1
0
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #4:

score: 0
Accepted
time: 47ms
memory: 3452kb

input:

0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
1
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
0
0
1
1
0
0
1
1
0
0
0
0
0
0
1
1
1
0
1
1
0
0
0
1
1
1
0
1
1
0
1
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
1
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12735.

Test #5:

score: 0
Accepted
time: 49ms
memory: 3460kb

input:

0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
1
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
0
0
1
1
0
0
1
1
0
0
0
0
0
0
1
1
1
0
1
1
0
0
0
1
1
1
0
1
1
0
1
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
1
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12739.

Test #6:

score: 0
Accepted
time: 50ms
memory: 3460kb

input:

0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
1
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
0
0
1
1
0
0
1
1
0
0
0
0
0
0
1
1
1
0
1
1
0
0
0
1
1
1
0
1
1
0
1
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
1
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12742.

Test #7:

score: 0
Accepted
time: 40ms
memory: 3460kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #8:

score: 0
Accepted
time: 74ms
memory: 3496kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15003.

Test #9:

score: 0
Accepted
time: 62ms
memory: 3528kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #10:

score: 0
Accepted
time: 43ms
memory: 3504kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12735.

Test #11:

score: 0
Accepted
time: 65ms
memory: 3428kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12739.

Test #12:

score: 0
Accepted
time: 80ms
memory: 3504kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12742.

Test #13:

score: 0
Accepted
time: 4ms
memory: 3364kb

input:

0
0
0
1
0
0
1
0
1
0
1
0
1
1
1
0
0
1
0
0
1
1
0
0
0
1
1
1
1
0
0
1
0
0
1
0
1
0
0
1
1
0
1
1
1
1
0
0
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
0
0
1
0
1
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
1
1
0
1
0
0
0
1
1
1
0
0
0
1
0
1
0
0
1
0
1
1
0
0
0
0
1
0
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 597.

Test #14:

score: 0
Accepted
time: 18ms
memory: 3400kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
1
1
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
0
1
1
0
0
1
1
0
1
0
0
1
0
0
0
0
0
1
1
1
0
1
0
1
0
0
1
0
0
0
1
1
1
0
1
0
1
0
0
0
0
1
0
1
0
0
0
1
0
1
1
0
0
1
0
0
0
1
1
0
1
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5530.

Test #15:

score: 0
Accepted
time: 38ms
memory: 3428kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
1
1
0
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
1
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
0
0
0
1
0
0
1
1
1
0
1
1
0
1
0
1
0
0
0
0
0
1
1
1
0
1
1
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10074.

Test #16:

score: 0
Accepted
time: 89ms
memory: 3504kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
1
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
1
0
1
0
0
0
1
0
1
0
0
0
1
0
0
1
1
0
0
1
0
1
1
0
0
1
0
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
1
1
1
0
1
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15147.

Test #17:

score: 0
Accepted
time: 77ms
memory: 3552kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
1
0
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
1
0
1
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14919.

Test #18:

score: 0
Accepted
time: 68ms
memory: 3540kb

input:

0
0
0
1
0
1
0
0
1
1
0
1
0
0
0
1
1
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
1
0
0
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
1
0
1
1
1
0
0
0
1
0
0
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
1
0
0
1
0
1
0
1
0
0
1
0
0
1
1
1
0
1
1
0
1
1
0
0
0
0
1
0
0
1
1
0
0
0
1
1
1
0
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14890.

Test #19:

score: 0
Accepted
time: 53ms
memory: 3460kb

input:

1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
1
0
0
1
1
0
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
1
1
1
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
1
0
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
0
0
1
0
1
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14922.

Test #20:

score: 0
Accepted
time: 48ms
memory: 3436kb

input:

0
0
1
0
1
1
1
1
0
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
0
0
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
1
1
1
1
1
0
0
0
1
1
1
0
1
0
1
0
0
0
1
1
1
0
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
1
1
0
1
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15219.

Test #21:

score: 0
Accepted
time: 60ms
memory: 3560kb

input:

1
0
0
1
0
1
0
1
0
1
0
0
1
1
1
1
1
1
0
0
1
1
0
0
0
1
0
1
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
0
0
1
1
0
0
1
1
1
0
1
0
1
0
0
1
1
1
0
0
1
0
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
1
0
0
1
0
0
0
1
1
1
0
1
0
0
1
1
0
0
1
1
1
0
1
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
1
1
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15424.

Test #22:

score: 0
Accepted
time: 66ms
memory: 3524kb

input:

1
1
1
0
1
0
0
0
1
1
0
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
0
0
1
1
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
1
1
0
0
1
0
0
0
1
1
0
0
0
1
0
1
1
1
1
0
1
0
1
1
0
1
0
0
1
1
0
0
1
1
1
0
0
0
1
1
1
1
1
0
1
1
1
0
0
1
1
0
0
1
0
0
1
0
0
1
1
1
0
1
0
1
1
1
0
0
1
1
1
1
0
1
0
0
1
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14022.

Test #23:

score: 0
Accepted
time: 57ms
memory: 3456kb

input:

1
1
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
0
0
1
1
0
1
0
1
1
0
0
1
1
1
0
0
0
1
1
0
0
1
1
0
1
0
1
1
0
0
1
0
0
1
1
0
0
1
0
0
0
1
1
0
1
1
1
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
1
0
1
1
0
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
0
0
1
1
1
0
1
1
1
1
0
1
1
0
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14625.

Test #24:

score: 0
Accepted
time: 84ms
memory: 3456kb

input:

0
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
1
0
1
1
0
0
1
1
1
0
0
1
1
0
1
1
0
1
0
1
1
0
0
1
1
0
0
1
0
1
0
1
1
0
0
1
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
0
1
1
0
0
1
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15084.

Test #25:

score: 0
Accepted
time: 37ms
memory: 3528kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13770.

Test #26:

score: 0
Accepted
time: 89ms
memory: 3556kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15121.

Test #27:

score: 0
Accepted
time: 94ms
memory: 3524kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15198.

Test #28:

score: 0
Accepted
time: 67ms
memory: 3492kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12418.

Test #29:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

1
1
1
0
1
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
0
1
1
0
1
1
1
1
0
1
1
0
0
1
0
0
1
0
1
0
1
1
1
1
1
0
1
1
0
0
1
1
0
0
1
0
0
0
1
0
0
1
1
0
1
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
1
1
0
1
0
1
0
0
1
0
1
0
1
1
1
1
1
1
0
1
1
0
1
1
0
0
1
0
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
1
0
0
1
0
1
0
1
1
0
0
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 460.

Test #30:

score: 0
Accepted
time: 6ms
memory: 3428kb

input:

1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 462.

Test #31:

score: 0
Accepted
time: 16ms
memory: 3348kb

input:

1
1
1
0
1
1
1
1
0
0
1
1
0
1
1
0
1
0
1
1
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
1
1
0
0
1
1
1
1
0
1
0
1
1
0
1
0
0
1
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 465.

Test #32:

score: 0
Accepted
time: 1ms
memory: 3392kb

input:

1
1
1
0
1
1
1
1
0
1
0
0
1
1
1
1
0
0
1
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
1
0
0
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
1
0
0
0
1
1
1
0
1
0
0
0
1
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
0
0
1
1
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 468.

Test #33:

score: 0
Accepted
time: 6ms
memory: 3324kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
0
0
1
1
0
1
0
0
1
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
1
1
0
1
0
0
0
1
1
0
1
1
0
0
0
0
1
1
0
1
1
0
0
0
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 472.

Test #34:

score: 0
Accepted
time: 6ms
memory: 3424kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
1
0
0
0
0
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 475.

Test #35:

score: 0
Accepted
time: 19ms
memory: 3408kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
0
1
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
1
0
0
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
1
1
1
0
1
0
0
0
1
1
1
1
0
1
1
0
0
1
0
0
1
1
1
0
0
1
0
0
1
0
0
1
0
1
1
0
0
0
0
1
0
0
1
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 478.

Test #36:

score: 0
Accepted
time: 5ms
memory: 3360kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
0
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
0
0
1
1
1
0
0
0
1
1
1
0
0
1
0
0
1
1
0
1
0
0
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
0
1
1
0
0
0
1
1
1
0
1
0
1
1
1
0
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 481.

Test #37:

score: 0
Accepted
time: 14ms
memory: 3364kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 747.

Test #38:

score: 0
Accepted
time: 20ms
memory: 3384kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2733.

Test #39:

score: 0
Accepted
time: 39ms
memory: 3408kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6348.

Test #40:

score: 0
Accepted
time: 64ms
memory: 3484kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11568.

Test #41:

score: 0
Accepted
time: 111ms
memory: 3460kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12742.

Test #42:

score: 0
Accepted
time: 46ms
memory: 3560kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15447.

Test #43:

score: 0
Accepted
time: 99ms
memory: 3532kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #44:

score: 0
Accepted
time: 0ms
memory: 3332kb

input:

0
0
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
0
1
1
0
0
1
0
0
0
0
1
0
0
1
1
0
1
1
0
1
0
1
0
0
0
0
0
1
0
0
1
1
0
0
1
1
0
1
1
1
0
1
1
0
0
1
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
1
0
1
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
1
1
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
0
0
1
1
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 460.

Test #45:

score: 0
Accepted
time: 5ms
memory: 3452kb

input:

0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
1
0
0
1
1
0
1
0
0
1
1
0
0
1
1
0
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 462.

Test #46:

score: 0
Accepted
time: 4ms
memory: 3360kb

input:

0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
1
0
1
0
0
1
0
1
1
0
1
0
1
1
0
1
1
0
0
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
0
0
0
1
0
1
0
0
1
0
1
1
0
0
1
0
0
1
1
0
0
0
1
0
1
0
1
0
0
1
0
1
1
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 465.

Test #47:

score: 0
Accepted
time: 10ms
memory: 3376kb

input:

0
0
0
1
0
0
0
0
1
0
1
1
0
0
0
0
1
1
0
0
1
0
1
0
0
1
1
0
1
0
1
0
1
1
1
0
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
0
0
0
1
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
1
0
1
1
1
1
1
0
0
1
0
1
1
1
0
0
0
1
0
1
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 468.

Test #48:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
1
1
0
0
1
0
1
1
0
0
1
1
0
1
1
1
0
0
1
0
1
1
1
0
1
1
0
0
1
0
1
1
0
0
1
0
0
0
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
1
0
0
0
1
0
1
1
1
0
0
1
0
0
1
1
1
1
0
0
1
0
0
1
1
1
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 472.

Test #49:

score: 0
Accepted
time: 0ms
memory: 3348kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
1
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 475.

Test #50:

score: 0
Accepted
time: 6ms
memory: 3360kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
1
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
1
0
0
1
0
1
0
0
0
0
1
1
1
0
0
1
1
0
1
0
1
0
0
1
1
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
1
0
0
0
1
1
1
0
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
0
0
0
0
1
0
1
1
1
0
0
0
0
1
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
1
1
0
1
0
0
1
1
1
1
0
1
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 478.

Test #51:

score: 0
Accepted
time: 0ms
memory: 3352kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
0
0
1
1
0
1
1
0
0
1
0
1
1
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
1
0
0
1
1
1
0
0
0
1
0
1
0
0
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 481.

Test #52:

score: 0
Accepted
time: 1ms
memory: 3356kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 747.

Test #53:

score: 0
Accepted
time: 16ms
memory: 3356kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1485.

Test #54:

score: 0
Accepted
time: 21ms
memory: 3384kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3127.

Test #55:

score: 0
Accepted
time: 55ms
memory: 3476kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8134.

Test #56:

score: 0
Accepted
time: 42ms
memory: 3464kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12739.

Test #57:

score: 0
Accepted
time: 73ms
memory: 3500kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15447.

Test #58:

score: 0
Accepted
time: 49ms
memory: 3552kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #59:

score: 0
Accepted
time: 1ms
memory: 3456kb

input:

0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
1
1
0
1
1
0
0
1
0
0
0
1
0
0
1
1
0
1
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
1
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
1
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 460.

Test #60:

score: 0
Accepted
time: 4ms
memory: 3388kb

input:

0
1
0
1
0
0
1
1
0
0
1
0
1
1
0
1
1
1
0
0
1
1
0
1
0
1
1
0
1
0
1
1
0
0
0
1
1
0
0
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
1
1
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
0
0
1
0
0
0
0
0
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
1
0
1
0
1
1
0
0
0
1
1
0
0
0
1
0
0
0
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 462.

Test #61:

score: 0
Accepted
time: 10ms
memory: 3360kb

input:

0
1
1
0
1
0
0
1
0
0
1
1
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
0
1
0
1
1
0
1
0
1
1
0
0
1
0
0
1
1
0
0
0
1
0
1
0
0
0
1
1
0
1
0
0
1
1
1
0
1
0
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
0
1
1
1
1
1
1
0
1
1
0
1
1
0
0
1
1
0
1
0
0
1
1
0
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 465.

Test #62:

score: 0
Accepted
time: 6ms
memory: 3424kb

input:

1
0
0
1
1
0
0
1
0
0
1
1
0
1
0
0
0
1
0
0
1
1
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
0
1
1
1
0
1
1
0
0
1
0
1
0
0
1
0
0
1
0
0
0
1
0
0
1
1
0
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
0
1
0
0
1
1
0
0
0
0
1
1
1
0
0
0
1
0
1
1
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 468.

Test #63:

score: 0
Accepted
time: 0ms
memory: 3364kb

input:

1
0
0
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
0
0
1
1
0
1
1
1
0
0
1
0
1
1
0
1
1
1
0
1
1
1
0
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
1
1
1
0
0
1
0
1
1
1
1
0
1
0
0
1
1
1
1
0
1
1
0
0
1
1
1
1
0
1
0
0
1
0
1
1
0
1
0
0
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 472.

Test #64:

score: 0
Accepted
time: 0ms
memory: 3412kb

input:

1
1
1
0
1
1
0
1
0
0
1
1
0
1
0
1
1
0
1
0
1
1
0
0
1
0
0
1
1
0
1
1
0
0
0
1
0
1
0
1
1
0
0
1
0
0
1
1
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
1
1
0
0
1
0
1
0
1
1
0
1
0
1
1
0
1
0
0
1
0
0
1
1
1
1
0
0
1
0
0
1
1
1
0
1
0
1
0
1
0
0
1
1
0
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 475.

Test #65:

score: 0
Accepted
time: 11ms
memory: 3356kb

input:

1
1
1
0
0
0
0
0
1
1
0
0
1
1
1
0
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
0
1
0
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
1
1
0
1
0
1
0
1
0
0
0
0
1
1
0
0
0
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
1
1
0
1
0
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 478.

Test #66:

score: 0
Accepted
time: 1ms
memory: 3360kb

input:

1
0
1
0
1
1
1
0
1
1
0
1
0
0
1
0
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
1
1
1
0
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
0
1
0
0
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
0
0
0
1
0
0
0
1
0
0
1
0
1
1
0
1
0
0
0
1
0
1
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 817.

Test #67:

score: 0
Accepted
time: 11ms
memory: 3364kb

input:

0
0
1
0
0
1
1
1
0
1
0
0
1
1
0
0
0
0
1
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
1
0
0
0
0
0
1
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
0
0
0
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
1
0
0
0
1
1
0
1
0
1
1
0
0
1
0
0
0
1
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1603.

Test #68:

score: 0
Accepted
time: 17ms
memory: 3436kb

input:

0
0
1
0
1
1
1
1
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
1
1
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
0
1
1
1
0
1
1
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2082.

Test #69:

score: 0
Accepted
time: 16ms
memory: 3436kb

input:

1
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
1
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
0
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
1
1
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
0
0
1
0
1
1
0
1
0
0
0
0
1
1
1
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2637.

Test #70:

score: 0
Accepted
time: 38ms
memory: 3476kb

input:

1
0
0
1
0
1
1
1
0
0
1
0
1
0
1
1
0
1
0
0
1
1
0
0
0
1
1
1
1
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
1
1
0
1
0
1
1
1
0
0
1
1
1
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
1
0
1
1
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3613.

Test #71:

score: 0
Accepted
time: 28ms
memory: 3476kb

input:

0
0
1
0
1
1
0
1
0
0
1
0
1
0
1
1
1
0
1
0
1
1
0
0
0
1
0
1
1
0
0
1
0
0
0
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
0
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
1
0
0
0
1
1
0
0
1
1
0
0
1
1
0
1
1
0
0
0
1
0
1
1
1
1
0
1
1
0
1
1
1
0
1
0
1
1
0
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4452.

Test #72:

score: 0
Accepted
time: 18ms
memory: 3416kb

input:

1
1
0
1
0
0
0
0
1
1
0
1
0
1
1
0
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
1
0
1
0
1
0
0
0
0
1
0
0
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
0
1
1
1
1
0
1
1
0
0
1
1
0
0
1
0
1
0
1
1
1
0
1
0
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5401.

Test #73:

score: 0
Accepted
time: 70ms
memory: 3460kb

input:

0
1
0
1
1
0
0
0
1
0
1
0
1
1
1
0
1
1
0
0
1
0
1
0
0
1
1
0
0
1
1
0
1
1
1
0
0
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
1
1
0
0
0
1
1
1
0
0
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
0
1
1
1
1
0
0
1
0
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6309.

Test #74:

score: 0
Accepted
time: 23ms
memory: 3444kb

input:

1
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
0
0
1
1
0
0
1
1
1
0
0
0
1
0
0
0
1
1
1
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
1
0
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
1
0
0
0
0
0
0
1
1
0
1
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
1
1
0
0
0
1
1
0
0
1
0
1
1
1
1
0
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7198.

Test #75:

score: 0
Accepted
time: 54ms
memory: 3504kb

input:

0
0
1
0
1
1
1
0
1
0
1
1
0
1
1
1
0
0
1
1
0
1
0
1
1
0
1
1
1
0
0
1
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
0
1
1
1
0
0
0
0
0
1
0
0
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
1
1
1
0
0
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7924.

Test #76:

score: 0
Accepted
time: 47ms
memory: 3504kb

input:

1
0
0
1
0
0
0
0
1
1
0
1
0
1
0
1
0
0
1
1
0
1
0
1
1
0
0
1
1
0
0
1
0
1
0
1
1
0
1
0
1
0
1
0
0
0
1
1
1
0
1
0
0
1
0
1
0
1
0
1
1
0
1
1
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
1
1
1
1
0
1
0
0
1
0
0
0
1
1
0
1
1
0
1
1
1
1
1
0
1
1
0
0
1
0
1
0
1
1
1
0
0
1
1
0
1
1
0
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8631.

Test #77:

score: 0
Accepted
time: 53ms
memory: 3384kb

input:

0
1
1
0
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
0
1
1
1
1
0
1
1
0
1
1
0
0
1
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
1
0
1
0
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
1
0
1
0
0
1
1
0
0
1
1
0
1
0
1
1
0
0
0
0
1
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
0
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9702.

Test #78:

score: 0
Accepted
time: 51ms
memory: 3392kb

input:

1
0
1
0
1
1
1
1
0
1
0
1
0
0
1
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
0
0
1
1
0
1
1
0
1
1
1
0
1
0
0
0
1
0
1
1
1
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
1
1
0
0
1
0
1
1
0
0
0
1
0
1
1
0
0
1
1
1
1
0
0
1
0
0
1
0
1
0
0
1
1
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10080.

Test #79:

score: 0
Accepted
time: 67ms
memory: 3428kb

input:

0
1
0
1
0
0
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
1
1
0
1
1
0
0
0
1
1
1
0
0
0
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
1
0
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
1
0
0
1
1
1
0
1
0
0
0
0
1
1
1
1
0
1
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10891.

Test #80:

score: 0
Accepted
time: 48ms
memory: 3488kb

input:

1
0
1
0
0
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
1
0
0
0
1
1
1
0
0
1
1
0
1
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
1
0
1
0
0
1
1
0
0
1
1
1
0
1
0
0
1
0
1
0
1
1
0
0
0
0
0
1
0
0
1
1
1
1
0
0
1
0
0
0
0
1
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
1
1
1
0
0
0
0
1
1
1
0
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11683.

Test #81:

score: 0
Accepted
time: 80ms
memory: 3460kb

input:

0
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
0
1
0
0
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
1
0
0
0
1
1
0
0
0
1
0
1
0
1
1
0
1
1
1
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
1
1
0
1
1
0
0
0
1
0
1
0
0
0
1
1
1
0
0
1
0
1
1
0
0
1
0
1
0
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12333.

Test #82:

score: 0
Accepted
time: 92ms
memory: 3548kb

input:

1
0
1
0
1
0
0
1
0
0
1
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
0
1
1
1
0
0
0
1
0
0
1
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
0
1
1
0
1
0
1
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
1
1
1
1
1
0
1
1
0
1
1
0
0
1
0
0
0
1
0
1
1
0
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12999.

Test #83:

score: 0
Accepted
time: 72ms
memory: 3500kb

input:

1
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
0
0
0
0
1
1
1
0
1
0
0
1
0
0
1
0
0
1
1
1
0
0
0
1
0
1
0
1
1
0
1
0
0
0
1
1
0
1
0
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
0
0
1
1
1
0
1
0
1
0
1
0
1
1
0
0
0
0
1
0
1
1
0
1
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13855.

Test #84:

score: 0
Accepted
time: 75ms
memory: 3556kb

input:

0
1
0
1
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
1
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
1
0
0
1
0
1
0
1
1
0
0
1
1
1
1
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
1
1
0
1
0
0
1
0
0
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14452.

Test #85:

score: 0
Accepted
time: 78ms
memory: 3556kb

input:

0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
0
1
0
1
0
1
0
1
1
0
1
0
0
1
0
0
1
1
0
1
1
0
1
0
0
1
0
1
1
1
0
0
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
1
1
0
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
1
0
0
0
1
0
0
0
1
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
0
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14943.

Test #86:

score: 0
Accepted
time: 74ms
memory: 3452kb

input:

1
1
0
1
0
0
1
1
0
1
0
0
1
0
1
1
0
0
1
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
1
1
0
1
0
0
1
1
0
1
0
0
0
1
1
1
0
1
0
1
0
0
0
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15447.

Test #87:

score: 0
Accepted
time: 96ms
memory: 3556kb

input:

1
0
0
1
1
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
0
1
1
0
1
0
1
1
1
0
1
0
0
1
1
0
1
0
0
1
1
1
0
0
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
1
0
0
0
0
1
1
0
1
0
1
0
1
1
0
1
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
1
1
1
0
1
1
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #88:

score: 0
Accepted
time: 5ms
memory: 3456kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
0
0
0
0
0
1
0
1
0
1
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
0
0
1
1
0
1
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 460.

Test #89:

score: 0
Accepted
time: 5ms
memory: 3404kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
1
1
1
0
1
1
1
0
1
1
0
1
0
0
1
1
0
0
0
1
0
1
0
0
1
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 462.

Test #90:

score: 0
Accepted
time: 12ms
memory: 3376kb

input:

1
0
0
1
1
1
1
0
1
1
0
1
0
1
1
1
0
0
1
1
0
1
0
1
0
1
1
0
0
1
1
1
0
1
0
1
1
0
1
0
0
1
1
1
0
0
1
1
1
0
1
0
0
1
1
1
0
0
0
1
1
1
0
0
0
1
1
1
0
0
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
0
0
1
1
0
0
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
1
0
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 465.

Test #91:

score: 0
Accepted
time: 4ms
memory: 3448kb

input:

1
1
1
0
1
0
0
1
0
1
0
0
1
1
0
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
0
0
1
1
0
1
1
0
1
0
0
1
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
0
1
1
1
0
1
0
0
1
0
1
1
0
1
0
0
0
1
1
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 468.

Test #92:

score: 0
Accepted
time: 9ms
memory: 3376kb

input:

1
1
1
0
1
1
1
0
1
1
0
1
0
0
1
1
1
1
0
0
1
0
1
0
1
0
1
1
0
1
1
1
0
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
1
0
0
0
1
0
0
1
1
1
0
0
0
1
1
0
1
1
1
0
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
1
1
0
1
0
0
1
1
1
0
1
1
0
0
0
1
0
1
0
1
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 472.

Test #93:

score: 0
Accepted
time: 7ms
memory: 3360kb

input:

1
1
1
0
1
1
1
1
0
0
1
1
0
1
0
1
1
1
0
0
1
1
0
0
1
0
0
1
1
0
0
1
0
0
0
1
0
1
0
1
1
0
0
0
0
0
1
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
1
0
1
0
1
0
1
0
0
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
1
1
1
0
0
1
0
1
1
1
1
0
1
0
1
1
0
1
0
1
1
0
0
1
1
1
1
0
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
1
1
0
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 475.

Test #94:

score: 0
Accepted
time: 19ms
memory: 3336kb

input:

1
1
1
0
0
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
0
1
1
0
0
1
0
1
0
0
1
1
0
1
1
1
1
0
0
0
1
1
0
1
0
1
1
0
1
1
0
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
1
0
1
1
0
1
0
0
1
1
0
0
1
0
1
0
0
1
0
1
0
1
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
1
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
1
0
1
1
0
0
1
1
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 564.

Test #95:

score: 0
Accepted
time: 3ms
memory: 3388kb

input:

1
1
0
1
1
1
1
1
0
0
1
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
0
1
1
1
1
0
1
1
1
0
1
0
1
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 796.

Test #96:

score: 0
Accepted
time: 7ms
memory: 3352kb

input:

1
1
1
0
0
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
0
1
1
0
1
0
0
1
1
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
0
1
1
1
0
1
1
0
0
1
1
1
1
1
1
0
1
0
1
1
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1171.

Test #97:

score: 0
Accepted
time: 14ms
memory: 3404kb

input:

1
1
0
1
1
1
0
1
0
1
0
0
1
0
1
1
1
0
1
1
0
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
0
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
0
1
1
0
0
1
1
0
1
1
0
0
1
1
0
0
1
0
1
0
0
1
1
1
1
0
0
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1593.

Test #98:

score: 0
Accepted
time: 14ms
memory: 3464kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
0
1
0
1
1
0
0
1
1
0
1
1
1
1
1
0
1
0
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1827.

Test #99:

score: 0
Accepted
time: 13ms
memory: 3364kb

input:

1
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
1
0
1
1
0
0
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
1
1
1
1
1
0
1
1
0
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
1
1
1
1
0
1
0
1
1
1
0
1
0
1
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1968.

Test #100:

score: 0
Accepted
time: 10ms
memory: 3376kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
0
1
0
0
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
1
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2145.

Test #101:

score: 0
Accepted
time: 6ms
memory: 3460kb

input:

1
1
1
0
0
1
1
0
1
1
0
1
0
0
1
1
1
1
0
0
1
1
0
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
1
0
0
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
0
1
1
0
0
1
1
1
1
0
0
1
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
0
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2805.

Test #102:

score: 0
Accepted
time: 14ms
memory: 3388kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
0
1
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
0
0
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2937.

Test #103:

score: 0
Accepted
time: 19ms
memory: 3396kb

input:

1
1
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
0
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3255.

Test #104:

score: 0
Accepted
time: 16ms
memory: 3412kb

input:

1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
1
1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
0
1
1
0
1
0
1
1
0
1
1
1
1
0
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3724.

Test #105:

score: 0
Accepted
time: 15ms
memory: 3476kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
0
1
1
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
0
1
1
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
0
0
0
1
1
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3861.

Test #106:

score: 0
Accepted
time: 23ms
memory: 3388kb

input:

0
1
0
1
1
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
0
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4233.

Test #107:

score: 0
Accepted
time: 28ms
memory: 3484kb

input:

1
0
1
0
0
1
1
1
0
1
0
0
1
1
0
1
1
1
0
1
0
0
1
0
0
1
1
1
1
0
1
0
1
0
0
1
1
0
1
0
0
1
1
0
0
0
1
1
1
0
1
0
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
1
0
1
1
1
0
0
1
0
0
1
1
1
1
0
0
1
0
0
1
1
1
0
1
0
1
1
1
0
1
1
0
1
1
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4326.

Test #108:

score: 0
Accepted
time: 11ms
memory: 3388kb

input:

1
1
1
0
0
1
1
1
0
1
0
0
1
1
0
1
1
1
0
1
0
1
0
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
1
1
1
0
1
0
1
0
1
1
1
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4767.

Test #109:

score: 0
Accepted
time: 32ms
memory: 3388kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
0
1
0
1
1
1
0
1
0
1
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4939.

Test #110:

score: 0
Accepted
time: 50ms
memory: 3380kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
1
0
1
1
1
0
1
1
1
0
1
0
1
1
0
1
1
1
1
1
0
0
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5401.

Test #111:

score: 0
Accepted
time: 34ms
memory: 3396kb

input:

1
1
1
0
1
1
0
1
0
1
0
0
1
1
1
1
1
1
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
0
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5613.

Test #112:

score: 0
Accepted
time: 40ms
memory: 3420kb

input:

1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
1
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
1
1
0
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6000.

Test #113:

score: 0
Accepted
time: 27ms
memory: 3408kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
0
1
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
1
1
0
0
1
0
1
1
0
1
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
1
1
0
1
1
1
0
0
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6376.

Test #114:

score: 0
Accepted
time: 60ms
memory: 3412kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
0
0
1
1
0
0
1
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6792.

Test #115:

score: 0
Accepted
time: 43ms
memory: 3456kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
0
1
0
1
0
0
1
1
0
0
0
1
1
0
1
0
1
1
0
1
1
0
0
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
1
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
0
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
0
1
0
1
0
0
1
1
1
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6808.

Test #116:

score: 0
Accepted
time: 31ms
memory: 3400kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
0
1
1
1
0
1
1
0
0
1
0
1
1
0
1
0
1
1
0
1
1
0
0
1
1
0
1
0
1
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
0
1
1
0
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
0
1
0
0
1
1
0
0
1
0
1
0
1
1
0
1
1
1
0
1
1
1
0
0
1
0
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7011.

Test #117:

score: 0
Accepted
time: 43ms
memory: 3496kb

input:

0
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
0
1
1
1
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
1
0
0
1
1
0
1
1
0
0
1
0
1
1
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
0
0
1
0
1
0
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7494.

Test #118:

score: 0
Accepted
time: 45ms
memory: 3472kb

input:

1
0
1
0
0
1
1
0
1
0
1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
0
0
1
1
1
1
0
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
1
1
0
0
1
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7924.

Test #119:

score: 0
Accepted
time: 37ms
memory: 3416kb

input:

1
0
1
0
1
1
0
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
0
1
1
0
0
1
1
1
0
1
0
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
0
1
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
0
1
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8233.

Test #120:

score: 0
Accepted
time: 21ms
memory: 3432kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8445.

Test #121:

score: 0
Accepted
time: 31ms
memory: 3480kb

input:

1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
1
1
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
0
1
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
1
1
1
1
1
0
0
1
0
1
1
0
0
1
0
0
1
1
0
0
0
1
0
1
1
0
1
1
0
1
1
1
0
0
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8919.

Test #122:

score: 0
Accepted
time: 68ms
memory: 3508kb

input:

1
1
1
0
1
1
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
1
0
1
1
0
1
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
0
1
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
0
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9109.

Test #123:

score: 0
Accepted
time: 14ms
memory: 3452kb

input:

1
0
1
0
0
1
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
0
1
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9097.

Test #124:

score: 0
Accepted
time: 48ms
memory: 3484kb

input:

1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
1
1
1
0
1
0
1
0
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
0
1
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9565.

Test #125:

score: 0
Accepted
time: 42ms
memory: 3440kb

input:

1
0
1
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
0
1
0
1
0
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
1
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
0
1
0
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9888.

Test #126:

score: 0
Accepted
time: 53ms
memory: 3412kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10327.

Test #127:

score: 0
Accepted
time: 54ms
memory: 3516kb

input:

0
1
1
0
0
1
1
1
0
0
1
0
1
1
1
1
1
1
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
0
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
1
0
1
1
1
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
0
1
1
1
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10599.

Test #128:

score: 0
Accepted
time: 42ms
memory: 3488kb

input:

1
0
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
0
1
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
0
1
1
0
0
1
1
1
1
0
0
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10924.

Test #129:

score: 0
Accepted
time: 63ms
memory: 3412kb

input:

0
0
0
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
0
1
1
0
0
1
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
1
0
1
1
0
1
1
0
0
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
0
0
1
1
0
1
1
1
1
1
0
0
1
1
1
0
1
1
1
0
1
0
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11277.

Test #130:

score: 0
Accepted
time: 47ms
memory: 3516kb

input:

1
1
1
0
1
0
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
0
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11286.

Test #131:

score: 0
Accepted
time: 66ms
memory: 3508kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
0
0
1
1
1
1
0
1
1
0
1
0
1
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
0
1
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11745.

Test #132:

score: 0
Accepted
time: 50ms
memory: 3488kb

input:

1
1
1
0
1
0
1
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
1
1
0
1
0
0
1
0
0
1
0
1
0
1
1
1
0
1
1
1
0
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11862.

Test #133:

score: 0
Accepted
time: 40ms
memory: 3464kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
0
1
1
0
1
0
1
0
0
1
0
0
1
0
0
0
1
1
1
0
0
1
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
0
1
1
1
1
1
1
0
1
1
0
0
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
0
1
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12423.

Test #134:

score: 0
Accepted
time: 62ms
memory: 3456kb

input:

1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12562.

Test #135:

score: 0
Accepted
time: 86ms
memory: 3460kb

input:

1
0
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
0
1
1
0
1
1
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
1
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
0
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
0
0
1
0
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12892.

Test #136:

score: 0
Accepted
time: 34ms
memory: 3520kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
0
1
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
1
1
0
1
1
1
1
1
0
1
1
0
0
1
0
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13353.

Test #137:

score: 0
Accepted
time: 77ms
memory: 3456kb

input:

1
1
0
1
1
1
1
1
0
0
1
1
0
1
1
1
1
1
0
0
1
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
1
0
0
1
0
1
0
1
0
0
0
1
1
1
0
1
1
0
1
1
0
0
0
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
0
1
1
1
1
1
1
0
0
1
0
1
1
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13468.

Test #138:

score: 0
Accepted
time: 72ms
memory: 3428kb

input:

1
1
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
1
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
1
1
0
1
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13782.

Test #139:

score: 0
Accepted
time: 59ms
memory: 3464kb

input:

0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
0
1
1
0
1
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14208.

Test #140:

score: 0
Accepted
time: 41ms
memory: 3432kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
0
1
1
0
1
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
0
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14295.

Test #141:

score: 0
Accepted
time: 58ms
memory: 3432kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
1
0
0
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14773.

Test #142:

score: 0
Accepted
time: 58ms
memory: 3456kb

input:

0
1
1
0
1
1
1
1
0
1
0
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
0
1
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15030.

Test #143:

score: 0
Accepted
time: 87ms
memory: 3468kb

input:

1
1
1
0
0
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
0
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
0
1
1
1
1
0
1
1
1
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
0
1
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15405.

Test #144:

score: 0
Accepted
time: 81ms
memory: 3472kb

input:

1
1
1
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
0
1
0
1
0
0
1
0
0
1
0
1
1
0
1
1
0
0
1
1
0
0
1
0
0
0
0
1
1
0
1
1
0
0
1
1
1
0
1
1
0
1
1
0
0
0
1
1
1
0
0
0
1
0
1
1
1
0
1
0
1
1
1
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
0
1
1
0
0
1
1
1
0
1
0
1
0
1
0
1
1
0
1
1
1
0
0
1
1
1
0
1
0
1
1
0
0
0
0
1
1
1
1
0
1
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15447.

Test #145:

score: 0
Accepted
time: 62ms
memory: 3556kb

input:

1
1
1
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
0
1
1
0
0
1
1
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
0
1
0
1
1
1
0
1
1
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.

Test #146:

score: 0
Accepted
time: 14ms
memory: 3328kb

input:

1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
0
0
1
0
0
1
1
0
1
1
1
0
1
1
0
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 460.

Test #147:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

0
1
1
0
0
0
1
0
1
0
1
0
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
1
0
1
0
1
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
1
1
1
0
1
1
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 462.

Test #148:

score: 0
Accepted
time: 1ms
memory: 3352kb

input:

1
0
0
1
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
0
1
0
1
0
0
1
0
0
0
0
1
1
0
1
0
1
0
1
1
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
1
1
0
1
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 465.

Test #149:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

1
0
0
1
0
0
0
1
0
0
1
1
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
1
1
0
1
0
1
1
0
1
0
1
0
1
1
1
0
0
0
1
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
1
1
1
1
0
1
1
1
1
1
1
0
1
1
0
1
1
1
0
0
1
0
0
1
1
1
0
0
0
1
1
1
0
1
0
1
0
1
1
1
0
1
1
1
1
0
1
1
0
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 468.

Test #150:

score: 0
Accepted
time: 10ms
memory: 3408kb

input:

0
0
0
1
0
1
0
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
1
1
1
0
1
0
0
1
1
0
0
1
1
0
1
0
1
0
0
1
0
1
1
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
0
1
1
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
1
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
1
0
0
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 472.

Test #151:

score: 0
Accepted
time: 12ms
memory: 3424kb

input:

0
1
0
1
1
0
0
1
0
0
1
0
1
1
1
1
0
0
1
0
1
1
0
1
1
0
1
1
0
1
1
1
0
0
1
0
0
1
1
0
1
0
1
1
0
0
1
0
1
0
0
1
0
1
1
1
0
0
1
0
0
0
1
1
1
0
1
0
1
0
0
1
0
1
1
1
0
0
1
1
1
0
1
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
0
1
0
0
0
0
1
1
0
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
1
1
0
0
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 475.

Test #152:

score: 0
Accepted
time: 4ms
memory: 3336kb

input:

0
0
0
1
0
0
1
0
1
0
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
0
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
0
1
0
1
0
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
1
1
0
1
0
0
1
0
1
1
0
1
1
0
0
0
0
1
1
0
1
1
0
0
1
0
0
0
1
1
1
0
1
0
1
0
1
1
0
0
1
1
1
0
1
1
1
0
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 478.

Test #153:

score: 0
Accepted
time: 3ms
memory: 3364kb

input:

0
0
1
0
1
0
0
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
1
1
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
1
0
1
1
0
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
0
1
1
0
1
0
0
1
0
1
1
0
1
0
0
0
1
0
0
0
1
1
0
1
1
0
1
0
0
0
1
0
0
1
1
0
1
1
1
1
0
1
0
1
0
0
1
0
0
1
1
1
1
0
1
1
0
1
0
0
1
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 481.

Test #154:

score: 0
Accepted
time: 12ms
memory: 3364kb

input:

0
0
0
1
0
0
0
1
0
1
0
1
0
1
1
0
0
1
0
0
1
1
0
0
1
0
0
0
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
1
0
0
0
0
1
0
0
1
1
1
0
1
0
0
1
1
0
0
0
0
0
0
1
1
1
0
0
0
1
0
1
1
1
0
1
1
1
1
0
1
0
1
1
0
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 645.

Test #155:

score: 0
Accepted
time: 1ms
memory: 3464kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
0
1
1
0
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
1
0
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
1
0
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 945.

Test #156:

score: 0
Accepted
time: 0ms
memory: 3360kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
1
0
0
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
1
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
1
0
0
0
1
0
0
1
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1374.

Test #157:

score: 0
Accepted
time: 4ms
memory: 3328kb

input:

0
1
0
1
0
0
0
0
1
0
1
0
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
0
1
0
0
1
1
0
0
0
1
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1404.

Test #158:

score: 0
Accepted
time: 15ms
memory: 3344kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
0
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 1776.

Test #159:

score: 0
Accepted
time: 5ms
memory: 3464kb

input:

0
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2226.

Test #160:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
1
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2247.

Test #161:

score: 0
Accepted
time: 8ms
memory: 3368kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
1
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 2805.

Test #162:

score: 0
Accepted
time: 14ms
memory: 3404kb

input:

0
0
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
1
0
0
1
0
1
0
0
0
0
1
0
1
0
0
0
1
1
0
0
1
0
1
0
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
1
0
0
1
0
1
1
1
0
1
0
1
0
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
0
0
1
0
1
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
0
1
0
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3082.

Test #163:

score: 0
Accepted
time: 29ms
memory: 3368kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
1
0
0
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3381.

Test #164:

score: 0
Accepted
time: 19ms
memory: 3360kb

input:

0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
1
0
1
0
0
1
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3631.

Test #165:

score: 0
Accepted
time: 11ms
memory: 3392kb

input:

1
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
1
0
0
1
1
0
1
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
0
0
1
1
0
0
0
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
1
1
0
0
1
1
0
0
1
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 3780.

Test #166:

score: 0
Accepted
time: 34ms
memory: 3384kb

input:

0
0
0
1
1
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
0
0
0
1
1
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4203.

Test #167:

score: 0
Accepted
time: 29ms
memory: 3372kb

input:

0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
1
1
0
0
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
1
1
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
1
0
1
0
0
1
0
1
0
0
1
0
0
0
0
1
0
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4575.

Test #168:

score: 0
Accepted
time: 28ms
memory: 3392kb

input:

0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
1
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
0
0
1
1
0
1
1
0
1
1
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
1
0
0
1
0
1
1
1
0
0
0
1
0
0
0
0
0
1
1
0
1
0
1
1
0
1
0
1
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 4693.

Test #169:

score: 0
Accepted
time: 28ms
memory: 3480kb

input:

0
0
1
0
0
0
0
1
0
0
1
1
0
0
1
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
0
0
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
1
0
0
1
0
1
0
1
1
0
0
1
1
0
1
0
0
0
0
1
1
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
0
0
1
0
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5011.

Test #170:

score: 0
Accepted
time: 27ms
memory: 3388kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
1
1
0
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
0
0
0
1
0
1
0
0
0
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5394.

Test #171:

score: 0
Accepted
time: 29ms
memory: 3484kb

input:

0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
1
1
0
0
0
1
1
0
0
1
1
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
0
0
0
1
0
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
1
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5710.

Test #172:

score: 0
Accepted
time: 51ms
memory: 3432kb

input:

0
0
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
1
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 5833.

Test #173:

score: 0
Accepted
time: 18ms
memory: 3408kb

input:

1
1
0
1
1
0
0
0
1
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
1
0
0
1
0
0
0
1
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
1
0
1
0
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6291.

Test #174:

score: 0
Accepted
time: 34ms
memory: 3452kb

input:

0
0
0
1
0
0
1
1
0
0
1
1
0
0
0
0
0
0
1
0
1
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
0
0
1
1
0
1
0
1
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
1
1
1
0
0
0
1
0
0
0
1
0
0
1
0
1
1
0
0
0
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6613.

Test #175:

score: 0
Accepted
time: 41ms
memory: 3440kb

input:

0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
1
1
0
0
0
1
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
1
0
1
0
0
1
1
0
1
0
1
1
0
0
1
0
1
0
1
1
0
0
0
0
1
1
1
0
1
1
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 6958.

Test #176:

score: 0
Accepted
time: 49ms
memory: 3408kb

input:

0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
1
0
1
0
1
1
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7110.

Test #177:

score: 0
Accepted
time: 27ms
memory: 3480kb

input:

0
0
0
1
1
0
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7488.

Test #178:

score: 0
Accepted
time: 47ms
memory: 3484kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
1
0
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
1
0
0
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 7980.

Test #179:

score: 0
Accepted
time: 33ms
memory: 3404kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
1
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
0
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8016.

Test #180:

score: 0
Accepted
time: 27ms
memory: 3508kb

input:

0
0
0
1
0
0
0
0
1
0
1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
1
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8334.

Test #181:

score: 0
Accepted
time: 34ms
memory: 3440kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
1
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
1
0
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
1
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 8607.

Test #182:

score: 0
Accepted
time: 22ms
memory: 3400kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9079.

Test #183:

score: 0
Accepted
time: 29ms
memory: 3424kb

input:

0
0
1
0
0
0
0
0
1
0
1
0
1
1
0
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
0
0
1
0
0
0
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
0
0
0
1
1
1
0
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9294.

Test #184:

score: 0
Accepted
time: 68ms
memory: 3412kb

input:

1
1
1
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
1
1
0
0
0
0
0
1
1
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 9511.

Test #185:

score: 0
Accepted
time: 42ms
memory: 3420kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
1
0
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10087.

Test #186:

score: 0
Accepted
time: 73ms
memory: 3484kb

input:

0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
0
0
1
0
1
1
0
1
0
0
1
0
1
0
0
0
1
1
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10200.

Test #187:

score: 0
Accepted
time: 40ms
memory: 3416kb

input:

0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
1
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10660.

Test #188:

score: 0
Accepted
time: 38ms
memory: 3440kb

input:

0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 10978.

Test #189:

score: 0
Accepted
time: 33ms
memory: 3516kb

input:

1
0
0
1
0
0
1
1
0
1
0
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
1
0
1
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
1
1
1
0
0
1
0
0
1
0
0
1
1
0
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11106.

Test #190:

score: 0
Accepted
time: 51ms
memory: 3468kb

input:

0
0
0
1
0
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
1
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
1
0
0
1
1
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
1
0
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
0
1
0
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11310.

Test #191:

score: 0
Accepted
time: 47ms
memory: 3508kb

input:

1
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
0
1
1
0
0
0
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
0
1
1
0
0
1
1
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11592.

Test #192:

score: 0
Accepted
time: 71ms
memory: 3376kb

input:

1
0
0
1
0
0
0
0
1
0
1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
1
0
0
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 11989.

Test #193:

score: 0
Accepted
time: 69ms
memory: 3472kb

input:

0
0
0
1
0
0
0
0
1
0
1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12147.

Test #194:

score: 0
Accepted
time: 57ms
memory: 3452kb

input:

0
0
0
1
0
0
0
1
0
0
1
1
0
0
0
1
0
0
1
0
1
0
1
1
1
0
0
0
0
1
1
0
1
0
0
1
0
1
1
0
0
1
1
0
1
0
1
1
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
1
0
1
0
0
1
0
0
1
1
1
0
1
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
0
1
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12718.

Test #195:

score: 0
Accepted
time: 27ms
memory: 3428kb

input:

0
0
0
1
1
0
0
0
1
1
0
0
1
0
1
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 12831.

Test #196:

score: 0
Accepted
time: 66ms
memory: 3456kb

input:

1
0
0
1
1
1
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
0
1
0
1
1
0
0
1
0
0
0
0
1
1
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
1
1
0
1
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
1
0
0
0
0
1
0
0
0
0
0
1
1
1
0
0
0
0
1
0
1
0
0
1
1
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13278.

Test #197:

score: 0
Accepted
time: 86ms
memory: 3552kb

input:

0
0
0
1
0
0
0
0
1
1
0
0
1
1
0
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
0
0
1
1
0
1
0
1
0
1
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
0
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13500.

Test #198:

score: 0
Accepted
time: 83ms
memory: 3492kb

input:

0
1
0
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
1
0
1
0
0
0
0
1
0
0
1
0
1
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 13906.

Test #199:

score: 0
Accepted
time: 31ms
memory: 3480kb

input:

0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
0
1
1
0
0
1
0
0
1
1
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
1
0
1
1
1
0
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
0
1
1
1
0
0
0
1
0
1
0
0
0
1
0
0
0
1
1
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14220.

Test #200:

score: 0
Accepted
time: 103ms
memory: 3456kb

input:

0
0
0
1
0
0
0
1
0
1
0
0
1
0
0
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
1
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
1
0
0
0
0
1
0
0
1
0
0
0
1
0
0
1
1
0
0
0
0
0
0
1
0
0
1
1
0
1
1
0
0
0
0
1
0
0
0
1
0
0
1
0
1
0
1
0
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14418.

Test #201:

score: 0
Accepted
time: 60ms
memory: 3460kb

input:

0
0
0
1
0
0
0
0
1
0
1
1
0
0
0
0
1
0
1
0
1
1
0
0
0
1
0
0
0
1
1
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
1
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14685.

Test #202:

score: 0
Accepted
time: 73ms
memory: 3556kb

input:

0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
0
0
1
1
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 14980.

Test #203:

score: 0
Accepted
time: 61ms
memory: 3528kb

input:

1
0
0
1
1
0
0
0
1
0
1
1
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
1
1
1
0
0
0
1
1
0
0
1
0
1
0
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
0
1
1
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
1
0
1
0
0
1
1
0
0
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15240.

Test #204:

score: 0
Accepted
time: 111ms
memory: 3512kb

input:

1
1
1
0
0
0
0
1
0
0
1
1
0
1
1
0
0
0
1
0
1
0
1
0
0
1
0
0
0
1
1
0
1
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
0
1
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
0
1
0
0
1
0
0
1
1
0
0
1
0
0
1
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
1
0
1
1
0
1
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15447.

Test #205:

score: 0
Accepted
time: 94ms
memory: 3528kb

input:

0
0
0
1
0
1
0
0
1
0
1
0
1
0
0
0
0
0
1
1
0
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
1
0
1
0
1
0
0
1
...

output:

? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
?...

result:

ok Queries used; 15450.