QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#203711#5156. Going in CirclesGuanYunchangAC ✓70ms4248kbC++201.8kb2023-10-06 19:31:212023-10-06 19:31:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 36ms
memory: 4240kb

input:

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

output:

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

result:

ok Queries used; 6782.

Test #2:

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

input:

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

output:

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

result:

ok Queries used; 6575.

Test #3:

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

input:

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

output:

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

result:

ok Queries used; 6782.

Test #4:

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

input:

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

output:

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

result:

ok Queries used; 5575.

Test #5:

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

input:

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

output:

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

result:

ok Queries used; 5576.

Test #6:

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

input:

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

output:

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

result:

ok Queries used; 5578.

Test #7:

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

input:

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

output:

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

result:

ok Queries used; 6782.

Test #8:

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

input:

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

output:

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

result:

ok Queries used; 6575.

Test #9:

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

input:

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

output:

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

result:

ok Queries used; 6782.

Test #10:

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

input:

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

output:

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

result:

ok Queries used; 5575.

Test #11:

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

input:

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

output:

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

result:

ok Queries used; 5576.

Test #12:

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

input:

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

output:

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

result:

ok Queries used; 5578.

Test #13:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #14:

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

input:

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

output:

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

result:

ok Queries used; 2387.

Test #15:

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

input:

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

output:

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

result:

ok Queries used; 4387.

Test #16:

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

input:

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

output:

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

result:

ok Queries used; 6637.

Test #17:

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

input:

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

output:

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

result:

ok Queries used; 6537.

Test #18:

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

input:

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

output:

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

result:

ok Queries used; 6523.

Test #19:

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

input:

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

output:

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

result:

ok Queries used; 6538.

Test #20:

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

input:

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

output:

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

result:

ok Queries used; 6673.

Test #21:

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

input:

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

output:

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

result:

ok Queries used; 6769.

Test #22:

score: 0
Accepted
time: 24ms
memory: 3976kb

input:

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

output:

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

result:

ok Queries used; 6133.

Test #23:

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

input:

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

output:

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

result:

ok Queries used; 6403.

Test #24:

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

input:

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

output:

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

result:

ok Queries used; 6610.

Test #25:

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

input:

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

output:

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

result:

ok Queries used; 6016.

Test #26:

score: 0
Accepted
time: 35ms
memory: 3900kb

input:

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

output:

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

result:

ok Queries used; 6625.

Test #27:

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

input:

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

output:

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

result:

ok Queries used; 6663.

Test #28:

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

input:

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

output:

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

result:

ok Queries used; 5433.

Test #29:

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

input:

1
1
1
1
0
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
1
0
1
1
0
1
1
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
0
1
0
1
1
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
0
1
0
1
0
1
1
0
1
0
1
0
1
0
1
1
0
0
1
0
1
0
1
1
1
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
0
1
1
0
1
1
1
1
1
1
0
1
1
0
1
1
0
...

output:

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

result:

ok Queries used; 500.

Test #30:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #31:

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

input:

1
1
1
1
0
1
1
1
1
0
1
1
0
1
1
1
1
0
1
1
1
0
1
0
0
1
1
0
0
1
0
1
1
1
0
1
1
1
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
1
0
1
0
1
0
0
1
0
0
1
0
0
0
1
0
1
1
0
1
0
1
1
1
0
1
0
1
0
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
1
0
1
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
1
1
1
0
0
1
...

output:

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

result:

ok Queries used; 500.

Test #32:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #33:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #34:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #35:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #36:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #37:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #38:

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

input:

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

output:

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

result:

ok Queries used; 1161.

Test #39:

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

input:

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

output:

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

result:

ok Queries used; 2744.

Test #40:

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

input:

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

output:

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

result:

ok Queries used; 5057.

Test #41:

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

input:

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

output:

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

result:

ok Queries used; 5578.

Test #42:

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

input:

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

output:

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

result:

ok Queries used; 6780.

Test #43:

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

input:

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

output:

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

result:

ok Queries used; 6782.

Test #44:

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

input:

0
0
0
0
1
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
1
0
0
1
0
0
1
0
0
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
1
0
1
0
0
1
0
0
1
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
0
0
0
1
0
1
0
1
1
0
1
1
0
1
1
0
0
1
0
0
1
1
0
0
1
0
0
0
0
0
0
1
0
0
1
0
0
1
...

output:

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

result:

ok Queries used; 500.

Test #45:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #46:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #47:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #48:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #49:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
1
0
1
0
0
0
0
1
1
0
0
1
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
1
0
1
0
1
0
0
1
1
1
0
0
1
1
0
1
0
0
1
1
0
1
0
0
1
0
0
1
1
0
0
0
0
1
0
1
0
1
1
0
1
0
0
0
1
0
1
1
1
0
1
0
0
1
0
1
0
0
1
1
1
0
1
0
1
1
0
0
1
1
1
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
1
1
0
1
0
0
1
1
0
...

output:

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

result:

ok Queries used; 500.

Test #50:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
1
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
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
1
1
0
1
1
1
0
0
1
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
0
0
0
1
0
1
1
1
1
0
1
0
0
0
0
1
0
1
0
1
1
0
0
0
0
0
1
0
1
0
0
1
1
0
0
0
0
1
1
1
0
1
1
0
...

output:

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

result:

ok Queries used; 500.

Test #51:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #52:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #53:

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

input:

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

output:

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

result:

ok Queries used; 592.

Test #54:

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

input:

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

output:

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

result:

ok Queries used; 1345.

Test #55:

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

input:

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

output:

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

result:

ok Queries used; 3542.

Test #56:

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

input:

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

output:

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

result:

ok Queries used; 5576.

Test #57:

score: 0
Accepted
time: 25ms
memory: 4012kb

input:

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

output:

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

result:

ok Queries used; 6780.

Test #58:

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

input:

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

output:

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

result:

ok Queries used; 6782.

Test #59:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #60:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #61:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #62:

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

input:

1
0
0
1
0
0
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
0
1
0
0
1
0
1
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
1
0
1
0
1
0
1
0
0
1
1
1
1
0
1
0
1
1
1
1
1
0
0
1
1
1
1
0
0
1
0
1
0
1
1
0
1
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
1
0
0
1
0
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
0
1
0
0
1
0
0
0
1
0
0
1
...

output:

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

result:

ok Queries used; 500.

Test #63:

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

input:

1
0
0
0
1
0
0
0
1
0
1
0
1
1
0
0
0
1
1
1
1
0
0
1
0
0
1
1
1
0
0
1
1
0
0
1
1
0
1
1
0
0
1
0
1
1
1
0
0
1
0
1
1
0
1
0
0
1
0
1
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
0
0
1
1
1
1
0
0
1
1
0
0
1
1
1
0
1
0
1
0
0
1
1
0
0
1
1
0
0
1
0
1
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
1
1
1
1
0
0
1
...

output:

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

result:

ok Queries used; 500.

Test #64:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #65:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #66:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #67:

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

input:

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

output:

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

result:

ok Queries used; 640.

Test #68:

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

input:

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

output:

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

result:

ok Queries used; 856.

Test #69:

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

input:

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

output:

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

result:

ok Queries used; 1119.

Test #70:

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

input:

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

output:

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

result:

ok Queries used; 1550.

Test #71:

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

input:

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

output:

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

result:

ok Queries used; 1913.

Test #72:

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

input:

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

output:

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

result:

ok Queries used; 2330.

Test #73:

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

input:

0
1
0
1
0
0
0
0
0
0
1
1
0
1
0
1
1
0
0
0
0
1
1
0
0
0
1
0
1
0
1
0
0
0
1
1
0
1
1
1
0
0
1
1
0
1
1
0
1
1
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
1
0
1
1
0
1
0
1
0
0
1
1
0
0
0
0
1
0
1
0
1
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
0
0
0
1
0
1
0
1
1
1
0
0
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
0
1
1
0
1
1
0
1
0
1
...

output:

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

result:

ok Queries used; 2728.

Test #74:

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

input:

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

output:

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

result:

ok Queries used; 3124.

Test #75:

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

input:

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

output:

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

result:

ok Queries used; 3445.

Test #76:

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

input:

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

output:

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

result:

ok Queries used; 3762.

Test #77:

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

input:

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

output:

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

result:

ok Queries used; 4226.

Test #78:

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

input:

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

output:

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

result:

ok Queries used; 4390.

Test #79:

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

input:

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

output:

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

result:

ok Queries used; 4758.

Test #80:

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

input:

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

output:

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

result:

ok Queries used; 5112.

Test #81:

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

input:

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

output:

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

result:

ok Queries used; 5397.

Test #82:

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

input:

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

output:

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

result:

ok Queries used; 5682.

Test #83:

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

input:

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

output:

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

result:

ok Queries used; 6055.

Test #84:

score: 0
Accepted
time: 36ms
memory: 4004kb

input:

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

output:

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

result:

ok Queries used; 6327.

Test #85:

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

input:

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

output:

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

result:

ok Queries used; 6548.

Test #86:

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

input:

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

output:

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

result:

ok Queries used; 6780.

Test #87:

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

input:

1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
1
0
0
1
1
0
1
0
1
0
0
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
1
1
0
0
1
0
1
1
1
1
1
0
1
0
1
0
1
0
0
1
1
0
1
1
1
1
0
1
0
1
0
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
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
1
0
0
1
1
0
0
1
0
1
...

output:

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

result:

ok Queries used; 6782.

Test #88:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #89:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #90:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #91:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #92:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #93:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #94:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #95:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #96:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #97:

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

input:

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

output:

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

result:

ok Queries used; 637.

Test #98:

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

input:

1
1
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
1
1
0
1
1
1
0
1
0
1
0
1
1
0
1
1
1
1
1
0
1
0
1
0
0
1
1
1
1
1
0
1
1
1
1
1
1
1
0
0
0
1
0
1
0
1
0
1
1
0
1
1
1
0
1
1
1
1
0
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
0
1
1
0
1
1
1
1
0
1
0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
0
...

output:

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

result:

ok Queries used; 747.

Test #99:

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

input:

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

output:

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

result:

ok Queries used; 809.

Test #100:

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

input:

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

output:

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

result:

ok Queries used; 888.

Test #101:

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

input:

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

output:

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

result:

ok Queries used; 1195.

Test #102:

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

input:

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

output:

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

result:

ok Queries used; 1257.

Test #103:

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

input:

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

output:

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

result:

ok Queries used; 1399.

Test #104:

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

input:

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

output:

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

result:

ok Queries used; 1598.

Test #105:

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

input:

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

output:

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

result:

ok Queries used; 1661.

Test #106:

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

input:

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

output:

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

result:

ok Queries used; 1823.

Test #107:

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

input:

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

output:

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

result:

ok Queries used; 1859.

Test #108:

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

input:

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

output:

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

result:

ok Queries used; 2054.

Test #109:

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

input:

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

output:

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

result:

ok Queries used; 2127.

Test #110:

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

input:

1
1
1
1
0
1
1
1
1
1
0
1
0
1
1
1
1
1
1
1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
1
1
0
1
0
0
1
1
1
0
1
1
1
1
0
0
1
1
1
1
1
0
0
1
1
1
1
0
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
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
1
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
1
1
1
0
1
0
...

output:

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

result:

ok Queries used; 2330.

Test #111:

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

input:

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

output:

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

result:

ok Queries used; 2420.

Test #112:

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

input:

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

output:

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

result:

ok Queries used; 2594.

Test #113:

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

input:

1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
1
1
1
1
1
1
0
0
1
1
1
0
1
0
1
1
0
1
1
1
1
1
1
0
1
0
1
0
1
0
1
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
1
0
1
1
1
1
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
0
1
0
1
1
1
1
0
1
1
1
0
1
0
1
1
1
0
1
0
0
1
1
1
0
1
0
0
1
0
1
1
1
1
0
0
1
1
1
0
0
1
1
1
1
0
1
1
1
0
1
0
...

output:

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

result:

ok Queries used; 2755.

Test #114:

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

input:

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

output:

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

result:

ok Queries used; 2941.

Test #115:

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

input:

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

output:

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

result:

ok Queries used; 2948.

Test #116:

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

input:

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

output:

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

result:

ok Queries used; 3041.

Test #117:

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

input:

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

output:

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

result:

ok Queries used; 3252.

Test #118:

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

input:

1
0
1
0
1
1
1
0
0
1
0
1
0
1
1
1
1
1
1
1
1
0
1
0
0
1
1
1
1
0
0
1
1
1
0
1
1
1
0
1
0
1
0
1
0
1
1
0
1
1
1
1
1
0
1
0
1
0
0
1
1
1
0
1
1
0
1
1
1
1
1
1
0
1
1
1
1
1
0
1
0
1
1
0
1
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
0
1
1
0
1
1
1
0
1
1
0
1
1
0
1
0
1
1
0
0
1
0
1
0
1
1
0
1
1
0
1
0
0
1
1
0
...

output:

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

result:

ok Queries used; 3445.

Test #119:

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

input:

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

output:

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

result:

ok Queries used; 3587.

Test #120:

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

input:

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

output:

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

result:

ok Queries used; 3683.

Test #121:

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

input:

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

output:

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

result:

ok Queries used; 3898.

Test #122:

score: 0
Accepted
time: 24ms
memory: 3984kb

input:

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

output:

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

result:

ok Queries used; 3978.

Test #123:

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

input:

1
0
1
0
1
1
1
1
1
1
0
1
0
1
1
1
1
0
1
1
1
0
1
0
1
1
1
1
1
0
1
0
0
1
1
1
1
1
1
1
0
1
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
0
1
1
1
1
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
0
1
0
1
1
0
1
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
0
1
1
0
1
0
1
1
1
1
0
1
1
1
0
1
0
...

output:

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

result:

ok Queries used; 3973.

Test #124:

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

input:

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

output:

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

result:

ok Queries used; 4169.

Test #125:

score: 0
Accepted
time: 24ms
memory: 4152kb

input:

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

output:

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

result:

ok Queries used; 4307.

Test #126:

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

input:

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

output:

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

result:

ok Queries used; 4503.

Test #127:

score: 0
Accepted
time: 30ms
memory: 3980kb

input:

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

output:

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

result:

ok Queries used; 4621.

Test #128:

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

input:

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

output:

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

result:

ok Queries used; 4774.

Test #129:

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

input:

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

output:

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

result:

ok Queries used; 4927.

Test #130:

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

input:

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

output:

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

result:

ok Queries used; 4931.

Test #131:

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

input:

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

output:

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

result:

ok Queries used; 5137.

Test #132:

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

input:

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

output:

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

result:

ok Queries used; 5187.

Test #133:

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

input:

1
1
1
1
0
1
1
1
1
1
0
1
0
0
1
1
1
1
1
1
1
0
1
0
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
0
1
0
1
0
1
0
1
1
0
1
0
0
1
1
0
1
0
0
1
1
1
1
1
1
0
1
1
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
0
1
1
1
0
1
1
1
0
1
1
1
0
1
0
1
1
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
1
1
0
1
0
1
1
0
1
0
1
1
0
1
1
1
1
0
1
0
...

output:

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

result:

ok Queries used; 5435.

Test #134:

score: 0
Accepted
time: 26ms
memory: 4008kb

input:

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

output:

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

result:

ok Queries used; 5496.

Test #135:

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

input:

1
0
0
1
0
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
1
1
1
1
0
1
0
0
1
1
1
0
0
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
1
0
0
1
1
1
0
1
0
1
1
1
1
1
0
1
0
1
1
0
1
1
1
1
0
1
1
0
1
1
0
0
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
1
0
1
0
1
0
1
1
0
1
0
1
1
0
1
1
0
0
0
1
1
1
0
1
1
1
0
0
1
...

output:

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

result:

ok Queries used; 5639.

Test #136:

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

input:

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

output:

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

result:

ok Queries used; 5834.

Test #137:

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

input:

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

output:

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

result:

ok Queries used; 5885.

Test #138:

score: 0
Accepted
time: 24ms
memory: 3948kb

input:

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

output:

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

result:

ok Queries used; 6023.

Test #139:

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

input:

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

output:

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

result:

ok Queries used; 6216.

Test #140:

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

input:

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

output:

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

result:

ok Queries used; 6253.

Test #141:

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

input:

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

output:

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

result:

ok Queries used; 6466.

Test #142:

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

input:

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

output:

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

result:

ok Queries used; 6587.

Test #143:

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

input:

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

output:

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

result:

ok Queries used; 6761.

Test #144:

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

input:

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

output:

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

result:

ok Queries used; 6780.

Test #145:

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

input:

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

output:

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

result:

ok Queries used; 6782.

Test #146:

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

input:

1
0
1
1
0
0
1
0
0
1
0
0
1
0
0
1
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
1
0
0
1
1
0
1
1
1
1
1
1
0
1
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
1
0
1
0
1
1
0
1
1
0
0
1
0
1
0
1
1
0
0
1
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
1
1
0
1
1
0
1
1
1
1
0
1
0
...

output:

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

result:

ok Queries used; 500.

Test #147:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #148:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #149:

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

input:

1
0
0
0
1
0
0
1
0
0
1
1
0
0
0
1
0
1
0
0
0
1
1
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
0
0
1
1
0
1
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
1
1
0
1
1
1
1
1
0
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
1
1
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
1
1
0
1
1
0
0
1
1
1
0
0
1
0
1
1
0
0
0
1
0
0
1
...

output:

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

result:

ok Queries used; 500.

Test #150:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #151:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #152:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #153:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #154:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #155:

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

input:

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

output:

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

result:

ok Queries used; 500.

Test #156:

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

input:

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

output:

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

result:

ok Queries used; 540.

Test #157:

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

input:

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

output:

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

result:

ok Queries used; 554.

Test #158:

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

input:

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

output:

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

result:

ok Queries used; 724.

Test #159:

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

input:

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

output:

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

result:

ok Queries used; 925.

Test #160:

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

input:

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

output:

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

result:

ok Queries used; 935.

Test #161:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
0
0
0
0
1
1
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
0
0
1
0
1
0
1
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
0
0
1
0
0
0
1
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
1
0
1
0
0
1
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
1
1
0
0
1
0
1
...

output:

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

result:

ok Queries used; 1195.

Test #162:

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

input:

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

output:

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

result:

ok Queries used; 1326.

Test #163:

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

input:

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

output:

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

result:

ok Queries used; 1453.

Test #164:

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

input:

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

output:

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

result:

ok Queries used; 1557.

Test #165:

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

input:

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

output:

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

result:

ok Queries used; 1626.

Test #166:

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

input:

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

output:

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

result:

ok Queries used; 1807.

Test #167:

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

input:

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

output:

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

result:

ok Queries used; 1965.

Test #168:

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

input:

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

output:

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

result:

ok Queries used; 2021.

Test #169:

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

input:

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

output:

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

result:

ok Queries used; 2161.

Test #170:

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

input:

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

output:

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

result:

ok Queries used; 2328.

Test #171:

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

input:

0
0
0
0
1
0
1
0
0
0
1
0
1
1
0
0
0
0
1
0
0
1
1
0
0
0
1
1
0
1
1
0
0
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
0
0
1
1
0
0
1
0
0
1
0
0
1
0
1
0
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
0
0
1
0
1
0
0
0
0
1
0
1
0
0
0
0
1
0
1
0
1
0
0
0
1
0
1
1
0
1
0
1
0
0
0
1
0
1
0
0
0
1
1
0
...

output:

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

result:

ok Queries used; 2463.

Test #172:

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

input:

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

output:

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

result:

ok Queries used; 2517.

Test #173:

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

input:

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

output:

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

result:

ok Queries used; 2720.

Test #174:

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

input:

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

output:

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

result:

ok Queries used; 2858.

Test #175:

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

input:

0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
1
0
1
0
0
0
1
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
0
0
0
0
1
1
1
0
0
1
0
1
0
1
0
0
0
1
1
0
0
0
1
0
0
1
1
0
0
1
1
0
1
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
1
0
0
1
0
1
1
1
1
0
1
0
1
0
0
1
0
0
0
0
1
0
1
0
1
0
0
0
1
1
0
1
0
1
0
1
0
1
...

output:

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

result:

ok Queries used; 3020.

Test #176:

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

input:

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

output:

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

result:

ok Queries used; 3084.

Test #177:

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

input:

0
0
0
1
0
0
0
0
1
0
1
1
0
0
0
1
0
0
0
0
0
1
0
1
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
1
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
1
0
0
1
0
0
1
0
1
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
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
1
0
0
0
0
1
0
0
0
0
1
0
1
...

output:

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

result:

ok Queries used; 3250.

Test #178:

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

input:

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

output:

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

result:

ok Queries used; 3473.

Test #179:

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

input:

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

output:

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

result:

ok Queries used; 3490.

Test #180:

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

input:

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

output:

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

result:

ok Queries used; 3632.

Test #181:

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

input:

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

output:

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

result:

ok Queries used; 3750.

Test #182:

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

input:

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

output:

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

result:

ok Queries used; 3964.

Test #183:

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

input:

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

output:

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

result:

ok Queries used; 4055.

Test #184:

score: 0
Accepted
time: 25ms
memory: 3976kb

input:

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

output:

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

result:

ok Queries used; 4145.

Test #185:

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

input:

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

output:

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

result:

ok Queries used; 4393.

Test #186:

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

input:

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

output:

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

result:

ok Queries used; 4446.

Test #187:

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

input:

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

output:

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

result:

ok Queries used; 4650.

Test #188:

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

input:

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

output:

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

result:

ok Queries used; 4796.

Test #189:

score: 0
Accepted
time: 24ms
memory: 3960kb

input:

1
0
0
0
1
0
1
1
1
0
1
0
1
1
1
1
0
0
0
0
1
0
1
0
1
0
1
0
0
1
1
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
1
1
0
0
0
0
1
0
1
0
1
0
1
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
0
0
1
0
1
0
0
1
0
0
1
1
0
0
1
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
1
1
0
0
1
0
1
0
0
1
0
0
1
0
0
1
1
1
1
0
1
0
1
0
0
1
0
1
...

output:

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

result:

ok Queries used; 4852.

Test #190:

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

input:

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

output:

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

result:

ok Queries used; 4942.

Test #191:

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

input:

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

output:

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

result:

ok Queries used; 5069.

Test #192:

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

input:

1
0
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
0
1
1
0
0
0
1
0
0
1
0
0
1
1
0
0
0
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
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
1
0
0
0
1
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
1
0
1
0
0
1
0
0
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
...

output:

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

result:

ok Queries used; 5244.

Test #193:

score: 0
Accepted
time: 36ms
memory: 3928kb

input:

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

output:

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

result:

ok Queries used; 5314.

Test #194:

score: 0
Accepted
time: 36ms
memory: 4008kb

input:

0
0
0
0
1
0
0
1
0
1
0
0
1
0
1
0
0
0
0
1
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
0
0
0
0
1
0
1
0
1
0
1
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
1
0
1
0
1
0
1
0
1
1
1
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
0
0
0
1
0
0
0
1
1
0
0
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1
1
0
0
0
1
0
0
0
0
1
0
0
1
1
0
1
0
...

output:

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

result:

ok Queries used; 5566.

Test #195:

score: 0
Accepted
time: 30ms
memory: 3912kb

input:

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

output:

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

result:

ok Queries used; 5614.

Test #196:

score: 0
Accepted
time: 25ms
memory: 4012kb

input:

1
0
0
1
0
1
0
0
0
0
1
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
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
0
0
1
0
1
0
1
1
0
0
1
0
1
0
1
0
0
0
0
0
0
1
0
0
1
1
0
1
1
0
0
0
1
0
0
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
1
0
1
0
1
1
0
0
1
1
0
0
0
0
1
1
0
0
0
0
0
1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
1
1
0
0
0
0
1
0
0
0
1
1
0
...

output:

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

result:

ok Queries used; 5802.

Test #197:

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

input:

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

output:

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

result:

ok Queries used; 5899.

Test #198:

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

input:

0
1
0
0
1
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
1
0
1
0
1
1
0
0
1
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
1
1
0
0
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
1
...

output:

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

result:

ok Queries used; 6081.

Test #199:

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

input:

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

output:

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

result:

ok Queries used; 6220.

Test #200:

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

input:

0
0
0
0
1
0
0
1
1
0
1
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1
0
1
0
0
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
0
1
0
0
0
1
0
1
0
0
0
0
1
1
0
1
1
0
1
0
1
0
1
0
0
0
1
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
0
0
1
0
1
0
0
0
1
1
0
0
1
0
0
1
0
1
0
0
1
0
0
0
0
1
0
1
1
0
1
0
0
0
0
1
0
1
0
0
1
0
1
...

output:

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

result:

ok Queries used; 6312.

Test #201:

score: 0
Accepted
time: 36ms
memory: 3948kb

input:

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

output:

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

result:

ok Queries used; 6431.

Test #202:

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

input:

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

output:

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

result:

ok Queries used; 6563.

Test #203:

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

input:

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

output:

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

result:

ok Queries used; 6684.

Test #204:

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

input:

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

output:

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

result:

ok Queries used; 6780.

Test #205:

score: 0
Accepted
time: 44ms
memory: 4008kb

input:

0
0
0
0
1
1
0
0
0
0
1
0
1
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
0
1
0
0
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
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
1
0
0
0
1
0
1
0
1
0
1
0
0
1
1
0
0
1
1
0
1
0
0
1
0
0
0
1
0
1
0
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
0
0
1
0
0
0
0
0
1
0
0
0
1
0
1
...

output:

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

result:

ok Queries used; 6782.