QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#124856#5156. Going in Circlesjzh#AC ✓40ms3512kbC++141.9kb2023-07-15 16:53:072023-07-15 16:53:09

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-15 16:53:09]
  • 评测
  • 测评结果:AC
  • 用时:40ms
  • 内存:3512kb
  • [2023-07-15 16:53:07]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
const int N = 2e5 + 5;

int rd() {
    int u;
    cin >> u;
    return u;
}

int filp() {
    cout << "? flip" << endl;
    return rd();
}

int lf() {
    cout << "? left" << endl;
    return rd();
}

int rt() {
    cout << "? right" << endl;
    return rd();
}

void answer(int ans) {
    cout << "! " << ans << endl;
    exit(0);
}

void makeTryEL(int n) {
    int new_cur = rt();
    if (new_cur == 1) {
        filp();
        return;
    } else if (new_cur == 0) {
        filp();
        int lst = 0;
        for (int i = 0; i < n - 1; i++) {
            lst = lf();
        }
        if (lst == 1) {
            answer(n - 1);
        }
        for (int i = 0; i < n - 1; i++) {
            rt();
        }
        filp();
    }
}
// 0 0 0 0 0 0 [0]

deque<int> hashvec = {1, 0, 0, 1, 1,
                      1, 0, 1, 0, 1,
                      1, 1, 1, 1, 0,
                      0, 0 ,1, 0 ,1};




bool equal(deque<int>&a ,deque<int>&b){
    if(a.size()!=b.size())return false;
    for(int i=0;i<a.size();i++){
        if(a[i]!=b[i])return false;
    }
    return true;
}
int main() {
    ios::sync_with_stdio(false);
    int st = rd();
    if (st == 1) {
        filp();
    }
    for (int i = 2; i <= 3; i++) {
        int cur = rt();
        if (cur == 1) {
            filp();
        }
    }
    const int len = 20;
    for (int i = 4; i <= len; i++) {
        makeTryEL(i);
    }
    int step_cnt = 0;
    deque<int> record;
    for (int i = 0; i < len; i++) {
        int ret = rt();
        if (ret != hashvec[i]) {
            filp();
        }
    }
    while (step_cnt < 15500) {
        int cur = rt();
        step_cnt++;
        record.push_back(cur);
        while (record.size() > len) record.pop_front();
        if(equal(record,hashvec)){
            answer(step_cnt);
        }
    }


}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 3472kb

input:

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

output:

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

result:

ok Queries used; 5188.

Test #2:

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

input:

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

output:

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

result:

ok Queries used; 5212.

Test #3:

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

input:

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

output:

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

result:

ok Queries used; 5364.

Test #4:

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

input:

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

output:

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

result:

ok Queries used; 4310.

Test #5:

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

input:

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

output:

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

result:

ok Queries used; 4311.

Test #6:

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

input:

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

output:

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

result:

ok Queries used; 4312.

Test #7:

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

input:

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

output:

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

result:

ok Queries used; 5459.

Test #8:

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

input:

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

output:

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

result:

ok Queries used; 5310.

Test #9:

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

input:

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

output:

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

result:

ok Queries used; 5459.

Test #10:

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

input:

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

output:

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

result:

ok Queries used; 4554.

Test #11:

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

input:

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

output:

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

result:

ok Queries used; 4555.

Test #12:

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

input:

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

output:

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

result:

ok Queries used; 4556.

Test #13:

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

input:

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

output:

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

result:

ok Queries used; 317.

Test #14:

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

input:

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

output:

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

result:

ok Queries used; 2091.

Test #15:

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

input:

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

output:

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

result:

ok Queries used; 3644.

Test #16:

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

input:

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

output:

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

result:

ok Queries used; 5333.

Test #17:

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

input:

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

output:

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

result:

ok Queries used; 5249.

Test #18:

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

input:

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

output:

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

result:

ok Queries used; 5118.

Test #19:

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

input:

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

output:

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

result:

ok Queries used; 5173.

Test #20:

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

input:

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

output:

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

result:

ok Queries used; 5161.

Test #21:

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

input:

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

output:

? flip
? right
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 5230.

Test #22:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? ri...

result:

ok Queries used; 4779.

Test #23:

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

input:

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

output:

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

result:

ok Queries used; 4962.

Test #24:

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

input:

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

output:

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

result:

ok Queries used; 5100.

Test #25:

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

input:

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

output:

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

result:

ok Queries used; 4899.

Test #26:

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

input:

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

output:

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

result:

ok Queries used; 5349.

Test #27:

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

input:

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

output:

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

result:

ok Queries used; 5375.

Test #28:

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

input:

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

output:

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

result:

ok Queries used; 4448.

Test #29:

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

input:

1
0
1
0
1
0
0
1
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
! 3

result:

ok Queries used; 10.

Test #30:

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

input:

1
0
1
0
1
0
1
0
0
1
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
! 4

result:

ok Queries used; 13.

Test #31:

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

input:

1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
! 5

result:

ok Queries used; 16.

Test #32:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
! 6

result:

ok Queries used; 19.

Test #33:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
! 7

result:

ok Queries used; 22.

Test #34:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
! 8

result:

ok Queries used; 25.

Test #35:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
! 9

result:

ok Queries used; 28.

Test #36:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
! 10

result:

ok Queries used; 31.

Test #37:

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

input:

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

output:

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

result:

ok Queries used; 166.

Test #38:

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

input:

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

output:

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

result:

ok Queries used; 828.

Test #39:

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

input:

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

output:

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

result:

ok Queries used; 2033.

Test #40:

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

input:

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

output:

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

result:

ok Queries used; 3773.

Test #41:

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

input:

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

output:

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

result:

ok Queries used; 4164.

Test #42:

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

input:

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

output:

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

result:

ok Queries used; 5066.

Test #43:

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

input:

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

output:

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

result:

ok Queries used; 5067.

Test #44:

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

input:

0
0
0
0
1
0
0
1

output:

? right
? right
? right
? flip
? left
? left
? left
! 3

result:

ok Queries used; 7.

Test #45:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1

output:

? right
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
! 4

result:

ok Queries used; 17.

Test #46:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1

output:

? right
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
! 5

result:

ok Queries used; 29.

Test #47:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1

output:

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

result:

ok Queries used; 43.

Test #48:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 59.

Test #49:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 77.

Test #50:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 97.

Test #51:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 119.

Test #52:

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

input:

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

output:

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

result:

ok Queries used; 558.

Test #53:

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

input:

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

output:

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

result:

ok Queries used; 804.

Test #54:

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

input:

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

output:

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

result:

ok Queries used; 1351.

Test #55:

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

input:

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

output:

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

result:

ok Queries used; 3020.

Test #56:

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

input:

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

output:

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

result:

ok Queries used; 4555.

Test #57:

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

input:

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

output:

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

result:

ok Queries used; 5458.

Test #58:

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

input:

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

output:

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

result:

ok Queries used; 5459.

Test #59:

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

input:

0
1
0
0
0
1
0
0
1

output:

? right
? flip
? right
? right
? flip
? left
? left
? left
! 3

result:

ok Queries used; 8.

Test #60:

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

input:

0
1
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1

output:

? right
? flip
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
! 4

result:

ok Queries used; 18.

Test #61:

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

input:

0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1

output:

? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
! 5

result:

ok Queries used; 24.

Test #62:

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

input:

1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1

output:

? flip
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
! 6

result:

ok Queries used; 37.

Test #63:

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

input:

1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 60.

Test #64:

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

input:

1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 51.

Test #65:

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

input:

1
0
1
0
1
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 85.

Test #66:

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

input:

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

output:

? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? rig...

result:

ok Queries used; 313.

Test #67:

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

input:

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

output:

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

result:

ok Queries used; 640.

Test #68:

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

input:

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

output:

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

result:

ok Queries used; 747.

Test #69:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? righ...

result:

ok Queries used; 957.

Test #70:

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

input:

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

output:

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

result:

ok Queries used; 1299.

Test #71:

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

input:

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

output:

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

result:

ok Queries used; 1622.

Test #72:

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

input:

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

output:

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

result:

ok Queries used; 1970.

Test #73:

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

input:

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

output:

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

result:

ok Queries used; 2275.

Test #74:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? right
? rig...

result:

ok Queries used; 2503.

Test #75:

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

input:

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

output:

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

result:

ok Queries used; 2636.

Test #76:

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

input:

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

output:

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

result:

ok Queries used; 2944.

Test #77:

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

input:

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

output:

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

result:

ok Queries used; 3318.

Test #78:

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

input:

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

output:

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

result:

ok Queries used; 3551.

Test #79:

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

input:

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

output:

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

result:

ok Queries used; 3680.

Test #80:

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

input:

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

output:

? flip
? right
? right
? flip
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? right
? ri...

result:

ok Queries used; 3910.

Test #81:

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

input:

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

output:

? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? l...

result:

ok Queries used; 4243.

Test #82:

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

input:

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

output:

? flip
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 4423.

Test #83:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? l...

result:

ok Queries used; 4692.

Test #84:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 4898.

Test #85:

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

input:

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

output:

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

result:

ok Queries used; 5048.

Test #86:

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

input:

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

output:

? flip
? right
? flip
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? rig...

result:

ok Queries used; 5205.

Test #87:

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

input:

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

output:

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

result:

ok Queries used; 5330.

Test #88:

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

input:

1
0
1
0
0
0
1
0
0
1

output:

? flip
? right
? flip
? right
? right
? flip
? left
? left
? left
! 3

result:

ok Queries used; 9.

Test #89:

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

input:

1
0
1
0
0
1
0
0
1
0
0
0
1

output:

? flip
? right
? flip
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
! 4

result:

ok Queries used; 12.

Test #90:

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

input:

1
0
0
0
1
0
1
0
0
1
0
0
0
0
1

output:

? flip
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
! 5

result:

ok Queries used; 14.

Test #91:

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

input:

1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
! 6

result:

ok Queries used; 39.

Test #92:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
! 7

result:

ok Queries used; 35.

Test #93:

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

input:

1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
! 8

result:

ok Queries used; 40.

Test #94:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? right
? right
? ri...

result:

ok Queries used; 227.

Test #95:

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

input:

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

output:

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

result:

ok Queries used; 263.

Test #96:

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

input:

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

output:

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

result:

ok Queries used; 349.

Test #97:

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

input:

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

output:

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

result:

ok Queries used; 554.

Test #98:

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

input:

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

output:

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

result:

ok Queries used; 549.

Test #99:

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

input:

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

output:

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

result:

ok Queries used; 590.

Test #100:

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

input:

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

output:

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

result:

ok Queries used; 630.

Test #101:

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

input:

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

output:

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

result:

ok Queries used; 956.

Test #102:

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

input:

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

output:

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

result:

ok Queries used; 934.

Test #103:

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

input:

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

output:

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

result:

ok Queries used; 1021.

Test #104:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 1265.

Test #105:

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

input:

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

output:

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

result:

ok Queries used; 1265.

Test #106:

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

input:

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

output:

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

result:

ok Queries used; 1347.

Test #107:

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

input:

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

output:

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

result:

ok Queries used; 1506.

Test #108:

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

input:

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

output:

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

result:

ok Queries used; 1586.

Test #109:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? l...

result:

ok Queries used; 1600.

Test #110:

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

input:

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

output:

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

result:

ok Queries used; 1718.

Test #111:

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

input:

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

output:

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

result:

ok Queries used; 1852.

Test #112:

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

input:

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

output:

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

result:

ok Queries used; 1974.

Test #113:

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

input:

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

output:

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

result:

ok Queries used; 2079.

Test #114:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? right
? right
? right
? rig...

result:

ok Queries used; 2209.

Test #115:

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

input:

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

output:

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

result:

ok Queries used; 2254.

Test #116:

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

input:

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

output:

? flip
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? ri...

result:

ok Queries used; 2313.

Test #117:

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

input:

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

output:

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

result:

ok Queries used; 2476.

Test #118:

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

input:

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

output:

? flip
? right
? right
? flip
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 2634.

Test #119:

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

input:

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

output:

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

result:

ok Queries used; 2786.

Test #120:

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

input:

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

output:

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

result:

ok Queries used; 2784.

Test #121:

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

input:

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

output:

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

result:

ok Queries used; 2967.

Test #122:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? right
? rig...

result:

ok Queries used; 3036.

Test #123:

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

input:

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

output:

? flip
? right
? right
? flip
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? l...

result:

ok Queries used; 2985.

Test #124:

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

input:

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

output:

? flip
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 3210.

Test #125:

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

input:

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

output:

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

result:

ok Queries used; 3315.

Test #126:

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

input:

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

output:

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

result:

ok Queries used; 3360.

Test #127:

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

input:

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

output:

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

result:

ok Queries used; 3524.

Test #128:

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

input:

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

output:

? flip
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? left
? lef...

result:

ok Queries used; 3624.

Test #129:

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

input:

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

output:

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

result:

ok Queries used; 3787.

Test #130:

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

input:

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

output:

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

result:

ok Queries used; 3717.

Test #131:

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

input:

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

output:

? flip
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? le...

result:

ok Queries used; 3900.

Test #132:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? l...

result:

ok Queries used; 3908.

Test #133:

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

input:

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

output:

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

result:

ok Queries used; 4115.

Test #134:

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

input:

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

output:

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

result:

ok Queries used; 4132.

Test #135:

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

input:

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

output:

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

result:

ok Queries used; 4235.

Test #136:

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

input:

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

output:

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

result:

ok Queries used; 4425.

Test #137:

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

input:

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

output:

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

result:

ok Queries used; 4485.

Test #138:

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

input:

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

output:

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

result:

ok Queries used; 4536.

Test #139:

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

input:

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

output:

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

result:

ok Queries used; 4702.

Test #140:

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

input:

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

output:

? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? left
? lef...

result:

ok Queries used; 4714.

Test #141:

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

input:

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

output:

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

result:

ok Queries used; 4865.

Test #142:

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

input:

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

output:

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

result:

ok Queries used; 5027.

Test #143:

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

input:

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

output:

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

result:

ok Queries used; 5060.

Test #144:

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

input:

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

output:

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

result:

ok Queries used; 5321.

Test #145:

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

input:

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

output:

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

result:

ok Queries used; 5065.

Test #146:

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

input:

1
0
0
1
0
0
1
0
0
1

output:

? flip
? right
? right
? flip
? right
? flip
? left
? left
? left
! 3

result:

ok Queries used; 9.

Test #147:

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

input:

0
1
0
1
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1

output:

? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
! 4

result:

ok Queries used; 19.

Test #148:

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

input:

1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1

output:

? flip
? right
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
! 5

result:

ok Queries used; 30.

Test #149:

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

input:

1
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1

output:

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

result:

ok Queries used; 44.

Test #150:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 50.

Test #151:

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

input:

0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1

output:

? right
? flip
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? ri...

result:

ok Queries used; 58.

Test #152:

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

input:

0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 69.

Test #153:

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

input:

0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1

output:

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

result:

ok Queries used; 77.

Test #154:

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

input:

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

output:

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

result:

ok Queries used; 344.

Test #155:

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

input:

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

output:

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

result:

ok Queries used; 497.

Test #156:

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

input:

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

output:

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

result:

ok Queries used; 768.

Test #157:

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

input:

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

output:

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

result:

ok Queries used; 690.

Test #158:

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

input:

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

output:

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

result:

ok Queries used; 900.

Test #159:

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

input:

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

output:

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

result:

ok Queries used; 960.

Test #160:

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

input:

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

output:

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

result:

ok Queries used; 982.

Test #161:

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

input:

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

output:

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

result:

ok Queries used; 1175.

Test #162:

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

input:

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

output:

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

result:

ok Queries used; 1222.

Test #163:

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

input:

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

output:

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

result:

ok Queries used; 1364.

Test #164:

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

input:

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

output:

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

result:

ok Queries used; 1498.

Test #165:

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

input:

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

output:

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

result:

ok Queries used; 1431.

Test #166:

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

input:

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

output:

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

result:

ok Queries used; 1664.

Test #167:

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

input:

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

output:

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

result:

ok Queries used; 1730.

Test #168:

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

input:

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

output:

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

result:

ok Queries used; 1838.

Test #169:

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

input:

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

output:

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

result:

ok Queries used; 1930.

Test #170:

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

input:

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

output:

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

result:

ok Queries used; 2027.

Test #171:

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

input:

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

output:

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

result:

ok Queries used; 2112.

Test #172:

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

input:

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

output:

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

result:

ok Queries used; 2175.

Test #173:

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

input:

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

output:

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

result:

ok Queries used; 2362.

Test #174:

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

input:

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

output:

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

result:

ok Queries used; 2331.

Test #175:

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

input:

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

output:

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

result:

ok Queries used; 2548.

Test #176:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? right
? right
? right
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? ri...

result:

ok Queries used; 2640.

Test #177:

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

input:

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

output:

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

result:

ok Queries used; 2738.

Test #178:

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

input:

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

output:

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

result:

ok Queries used; 2937.

Test #179:

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

input:

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

output:

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

result:

ok Queries used; 2981.

Test #180:

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

input:

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

output:

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

result:

ok Queries used; 3071.

Test #181:

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

input:

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

output:

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

result:

ok Queries used; 3160.

Test #182:

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

input:

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

output:

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

result:

ok Queries used; 3287.

Test #183:

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

input:

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

output:

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

result:

ok Queries used; 3391.

Test #184:

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

input:

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

output:

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

result:

ok Queries used; 3441.

Test #185:

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

input:

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

output:

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

result:

ok Queries used; 3672.

Test #186:

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

input:

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

output:

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

result:

ok Queries used; 3594.

Test #187:

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

input:

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

output:

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

result:

ok Queries used; 3826.

Test #188:

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

input:

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

output:

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

result:

ok Queries used; 3957.

Test #189:

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

input:

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

output:

? flip
? right
? right
? right
? flip
? left
? left
? left
? right
? right
? right
? flip
? right
? flip
? left
? left
? left
? left
? right
? right
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? left
? left
? left
? left
? left
? left
? left
? left
? right
? ri...

result:

ok Queries used; 3792.

Test #190:

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

input:

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

output:

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

result:

ok Queries used; 3900.

Test #191:

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

input:

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

output:

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

result:

ok Queries used; 4103.

Test #192:

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

input:

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

output:

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

result:

ok Queries used; 4250.

Test #193:

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

input:

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

output:

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

result:

ok Queries used; 4339.

Test #194:

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

input:

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

output:

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

result:

ok Queries used; 4427.

Test #195:

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

input:

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

output:

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

result:

ok Queries used; 4543.

Test #196:

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

input:

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

output:

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

result:

ok Queries used; 4684.

Test #197:

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

input:

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

output:

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

result:

ok Queries used; 4740.

Test #198:

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

input:

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

output:

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

result:

ok Queries used; 4944.

Test #199:

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

input:

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

output:

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

result:

ok Queries used; 5003.

Test #200:

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

input:

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

output:

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

result:

ok Queries used; 5051.

Test #201:

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

input:

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

output:

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

result:

ok Queries used; 5132.

Test #202:

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

input:

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

output:

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

result:

ok Queries used; 5257.

Test #203:

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

input:

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

output:

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

result:

ok Queries used; 5345.

Test #204:

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

input:

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

output:

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

result:

ok Queries used; 5391.

Test #205:

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

input:

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

output:

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

result:

ok Queries used; 5420.