QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140776#5156. Going in CirclesGamal74#AC ✓31ms3600kbC++202.5kb2023-08-16 20:07:592023-08-16 20:08:03

Judging History

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

  • [2023-08-16 20:08:03]
  • 评测
  • 测评结果:AC
  • 用时:31ms
  • 内存:3600kb
  • [2023-08-16 20:07:59]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define EPS 1e-9
#define all(x) x.begin(),x.end()
#define allr(x) x.rbegin(),x.rend()
#define yes cout << "YES" << '\n';
#define no cout << "NO" << '\n';
#define mem(arrr, xx) memset(arrr,xx,sizeof arrr)
#define PI acos(-1)
#define Ones(n) __builtin_popcount(n)
#define Onesl(n) __builtin_popcountll(n)
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
const ll MOD = 1e9 + 7;
const ll N = 2e5 + 5;
const int OO = 0x3f3f3f3f;
const ll LOO = 0x3f3f3f3f3f3f3f3f;
int dx8[] = {+0, +0, -1, +1, +1, +1, -1, -1};
int dy8[] = {-1, +1, +0, +0, +1, -1, +1, -1};
int dx4[] = {+0, +0, -1, +1};
int dy4[] = {-1, +1, +0, +0};

void Fast() {
    cin.tie(nullptr), cout.tie(nullptr), cin.sync_with_stdio(false), cout.sync_with_stdio(false);
#ifdef Clion
    freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
#endif
}

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());

int ask(const string &s){
    cout << "? " << s << endl;
    int ret;
    cin >> ret;
    return ret;
}
void Solution() {
    int x;
    cin >> x;
    vector<int> values;
    for (int i = 0; i < 100; ++i) {
        values.push_back(x);
        int cur = rng() % 2;
        if(ask("right") != cur) ask("flip");
        x = cur;
    }
    bool ok = false;
    for (int i = 0; i < 100; ++i) {
        x = ask("left");
        if(x != values.back()) {
            ok = true;
            break;
        }
        values.pop_back();
    }
    if(ok){
        for (int i = 0; i < 100; ++i) {
            if(x)ask("flip");
            x = ask("right");
        }
        ask("flip");
        int n = 1;
        while (true){
            if(ask("right")){
                cout << "! " << n << endl;
                return;
            }
            n++;
        }
    }
    else{
        deque<int> taken, nw;
        for (int i = 0; i < 100; ++i) {
            taken.push_back(x);
            x = ask("right");
        }
        int n = 1;
        while (true){
            nw.push_back(x);
            x = ask("right");
            if(nw.size() > 100) nw.pop_front();
            if(nw == taken){
                cout << "! " << n << endl;
                return;
            }
            n++;
        }
    }
}

int main() {
    Fast();
    int T = 1;
//    cin >> T;
    while (T--) {
        Solution();
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 10ms
memory: 3528kb

input:

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

output:

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

result:

ok Queries used; 5339.

Test #2:

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

input:

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

output:

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

result:

ok Queries used; 5199.

Test #3:

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

input:

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

output:

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

result:

ok Queries used; 5348.

Test #4:

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

input:

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

output:

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

result:

ok Queries used; 4443.

Test #5:

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

input:

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

output:

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

result:

ok Queries used; 4443.

Test #6:

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

input:

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

output:

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

result:

ok Queries used; 4449.

Test #7:

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

input:

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

output:

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

result:

ok Queries used; 5342.

Test #8:

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

input:

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

output:

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

result:

ok Queries used; 5212.

Test #9:

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

input:

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

output:

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

result:

ok Queries used; 5349.

Test #10:

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

input:

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

output:

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

result:

ok Queries used; 4454.

Test #11:

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

input:

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

output:

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

result:

ok Queries used; 4447.

Test #12:

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

input:

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

output:

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

result:

ok Queries used; 4446.

Test #13:

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

input:

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

output:

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

result:

ok Queries used; 370.

Test #14:

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

input:

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

output:

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

result:

ok Queries used; 2047.

Test #15:

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

input:

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

output:

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

result:

ok Queries used; 3557.

Test #16:

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

input:

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

output:

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

result:

ok Queries used; 5238.

Test #17:

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

input:

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

output:

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

result:

ok Queries used; 5175.

Test #18:

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

input:

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

output:

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

result:

ok Queries used; 5162.

Test #19:

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

input:

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

output:

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

result:

ok Queries used; 5182.

Test #20:

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

input:

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

output:

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

result:

ok Queries used; 5268.

Test #21:

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

input:

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

output:

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

result:

ok Queries used; 5347.

Test #22:

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

input:

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

output:

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

result:

ok Queries used; 4873.

Test #23:

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

input:

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

output:

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

result:

ok Queries used; 5063.

Test #24:

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

input:

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

output:

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

result:

ok Queries used; 5222.

Test #25:

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

input:

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

output:

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

result:

ok Queries used; 4803.

Test #26:

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

input:

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

output:

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

result:

ok Queries used; 5237.

Test #27:

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

input:

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

output:

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

result:

ok Queries used; 5271.

Test #28:

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

input:

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

output:

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

result:

ok Queries used; 4346.

Test #29:

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

input:

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

output:

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

result:

ok Queries used; 254.

Test #30:

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

input:

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

output:

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

result:

ok Queries used; 267.

Test #31:

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

input:

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

output:

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

result:

ok Queries used; 270.

Test #32:

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

input:

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

output:

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

result:

ok Queries used; 265.

Test #33:

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

input:

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

output:

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

result:

ok Queries used; 276.

Test #34:

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

input:

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

output:

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

result:

ok Queries used; 280.

Test #35:

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

input:

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

output:

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

result:

ok Queries used; 268.

Test #36:

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

input:

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

output:

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

result:

ok Queries used; 275.

Test #37:

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

input:

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

output:

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

result:

ok Queries used; 498.

Test #38:

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

input:

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

output:

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

result:

ok Queries used; 1108.

Test #39:

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

input:

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

output:

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

result:

ok Queries used; 2318.

Test #40:

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

input:

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

output:

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

result:

ok Queries used; 4058.

Test #41:

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

input:

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

output:

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

result:

ok Queries used; 4453.

Test #42:

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

input:

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

output:

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

result:

ok Queries used; 5342.

Test #43:

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

input:

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

output:

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

result:

ok Queries used; 5349.

Test #44:

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

input:

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

output:

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

result:

ok Queries used; 252.

Test #45:

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

input:

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

output:

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

result:

ok Queries used; 258.

Test #46:

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

input:

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

output:

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

result:

ok Queries used; 267.

Test #47:

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

input:

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

output:

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

result:

ok Queries used; 265.

Test #48:

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

input:

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

output:

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

result:

ok Queries used; 267.

Test #49:

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

input:

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

output:

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

result:

ok Queries used; 274.

Test #50:

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

input:

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

output:

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

result:

ok Queries used; 274.

Test #51:

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

input:

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

output:

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

result:

ok Queries used; 275.

Test #52:

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

input:

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

output:

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

result:

ok Queries used; 495.

Test #53:

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

input:

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

output:

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

result:

ok Queries used; 698.

Test #54:

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

input:

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

output:

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

result:

ok Queries used; 1252.

Test #55:

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

input:

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

output:

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

result:

ok Queries used; 2914.

Test #56:

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

input:

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

output:

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

result:

ok Queries used; 4446.

Test #57:

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

input:

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

output:

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

result:

ok Queries used; 5350.

Test #58:

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

input:

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

output:

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

result:

ok Queries used; 5347.

Test #59:

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

input:

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

output:

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

result:

ok Queries used; 263.

Test #60:

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

input:

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

output:

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

result:

ok Queries used; 268.

Test #61:

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

input:

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

output:

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

result:

ok Queries used; 275.

Test #62:

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

input:

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

output:

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

result:

ok Queries used; 261.

Test #63:

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

input:

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

output:

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

result:

ok Queries used; 281.

Test #64:

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

input:

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

output:

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

result:

ok Queries used; 275.

Test #65:

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

input:

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

output:

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

result:

ok Queries used; 271.

Test #66:

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

input:

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

output:

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

result:

ok Queries used; 470.

Test #67:

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

input:

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

output:

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

result:

ok Queries used; 731.

Test #68:

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

input:

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

output:

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

result:

ok Queries used; 896.

Test #69:

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

input:

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

output:

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

result:

ok Queries used; 1073.

Test #70:

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

input:

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

output:

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

result:

ok Queries used; 1418.

Test #71:

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

input:

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

output:

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

result:

ok Queries used; 1689.

Test #72:

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

input:

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

output:

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

result:

ok Queries used; 2001.

Test #73:

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

input:

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

output:

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

result:

ok Queries used; 2300.

Test #74:

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

input:

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

output:

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

result:

ok Queries used; 2593.

Test #75:

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

input:

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

output:

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

result:

ok Queries used; 2832.

Test #76:

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

input:

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

output:

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

result:

ok Queries used; 3078.

Test #77:

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

input:

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

output:

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

result:

ok Queries used; 3437.

Test #78:

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

input:

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

output:

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

result:

ok Queries used; 3567.

Test #79:

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

input:

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

output:

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

result:

ok Queries used; 3832.

Test #80:

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

input:

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

output:

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

result:

ok Queries used; 4100.

Test #81:

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

input:

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

output:

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

result:

ok Queries used; 4310.

Test #82:

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

input:

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

output:

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

result:

ok Queries used; 4529.

Test #83:

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

input:

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

output:

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

result:

ok Queries used; 4823.

Test #84:

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

input:

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

output:

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

result:

ok Queries used; 5014.

Test #85:

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

input:

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

output:

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

result:

ok Queries used; 5186.

Test #86:

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

input:

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

output:

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

result:

ok Queries used; 5359.

Test #87:

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

input:

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

output:

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

result:

ok Queries used; 5347.

Test #88:

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

input:

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

output:

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

result:

ok Queries used; 261.

Test #89:

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

input:

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

output:

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

result:

ok Queries used; 262.

Test #90:

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

input:

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

output:

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

result:

ok Queries used; 265.

Test #91:

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

input:

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

output:

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

result:

ok Queries used; 268.

Test #92:

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

input:

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

output:

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

result:

ok Queries used; 270.

Test #93:

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

input:

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

output:

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

result:

ok Queries used; 275.

Test #94:

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

input:

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

output:

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

result:

ok Queries used; 356.

Test #95:

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

input:

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

output:

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

result:

ok Queries used; 478.

Test #96:

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

input:

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

output:

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

result:

ok Queries used; 580.

Test #97:

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

input:

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

output:

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

result:

ok Queries used; 732.

Test #98:

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

input:

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

output:

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

result:

ok Queries used; 808.

Test #99:

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

input:

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

output:

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

result:

ok Queries used; 853.

Test #100:

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

input:

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

output:

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

result:

ok Queries used; 926.

Test #101:

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

input:

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

output:

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

result:

ok Queries used; 1135.

Test #102:

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

input:

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

output:

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

result:

ok Queries used; 1177.

Test #103:

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

input:

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

output:

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

result:

ok Queries used; 1283.

Test #104:

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

input:

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

output:

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

result:

ok Queries used; 1443.

Test #105:

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

input:

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

output:

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

result:

ok Queries used; 1486.

Test #106:

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

input:

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

output:

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

result:

ok Queries used; 1606.

Test #107:

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

input:

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

output:

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

result:

ok Queries used; 1644.

Test #108:

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

input:

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

output:

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

result:

ok Queries used; 1783.

Test #109:

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

input:

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

output:

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

result:

ok Queries used; 1851.

Test #110:

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

input:

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

output:

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

result:

ok Queries used; 2000.

Test #111:

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

input:

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

output:

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

result:

ok Queries used; 2068.

Test #112:

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

input:

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

output:

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

result:

ok Queries used; 2202.

Test #113:

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

input:

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

output:

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

result:

ok Queries used; 2319.

Test #114:

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

input:

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

output:

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

result:

ok Queries used; 2463.

Test #115:

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

input:

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

output:

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

result:

ok Queries used; 2470.

Test #116:

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

input:

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

output:

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

result:

ok Queries used; 2531.

Test #117:

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

input:

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

output:

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

result:

ok Queries used; 2698.

Test #118:

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

input:

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

output:

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

result:

ok Queries used; 2833.

Test #119:

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

input:

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

output:

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

result:

ok Queries used; 2938.

Test #120:

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

input:

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

output:

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

result:

ok Queries used; 3017.

Test #121:

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

input:

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

output:

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

result:

ok Queries used; 3176.

Test #122:

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

input:

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

output:

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

result:

ok Queries used; 3232.

Test #123:

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

input:

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

output:

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

result:

ok Queries used; 3224.

Test #124:

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

input:

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

output:

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

result:

ok Queries used; 3383.

Test #125:

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

input:

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

output:

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

result:

ok Queries used; 3494.

Test #126:

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

input:

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

output:

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

result:

ok Queries used; 3636.

Test #127:

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

input:

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

output:

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

result:

ok Queries used; 3738.

Test #128:

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

input:

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

output:

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

result:

ok Queries used; 3843.

Test #129:

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

input:

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

output:

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

result:

ok Queries used; 3949.

Test #130:

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

input:

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

output:

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

result:

ok Queries used; 3962.

Test #131:

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

input:

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

output:

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

result:

ok Queries used; 4115.

Test #132:

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

input:

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

output:

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

result:

ok Queries used; 4156.

Test #133:

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

input:

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

output:

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

result:

ok Queries used; 4333.

Test #134:

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

input:

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

output:

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

result:

ok Queries used; 4391.

Test #135:

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

input:

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

output:

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

result:

ok Queries used; 4504.

Test #136:

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

input:

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

output:

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

result:

ok Queries used; 4644.

Test #137:

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

input:

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

output:

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

result:

ok Queries used; 4685.

Test #138:

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

input:

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

output:

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

result:

ok Queries used; 4793.

Test #139:

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

input:

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

output:

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

result:

ok Queries used; 4945.

Test #140:

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

input:

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

output:

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

result:

ok Queries used; 4972.

Test #141:

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

input:

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

output:

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

result:

ok Queries used; 5120.

Test #142:

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

input:

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

output:

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

result:

ok Queries used; 5215.

Test #143:

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

input:

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

output:

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

result:

ok Queries used; 5342.

Test #144:

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

input:

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

output:

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

result:

ok Queries used; 5347.

Test #145:

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

input:

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

output:

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

result:

ok Queries used; 5337.

Test #146:

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

input:

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

output:

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

result:

ok Queries used; 258.

Test #147:

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

input:

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

output:

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

result:

ok Queries used; 259.

Test #148:

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

input:

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

output:

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

result:

ok Queries used; 261.

Test #149:

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

input:

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

output:

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

result:

ok Queries used; 267.

Test #150:

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

input:

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

output:

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

result:

ok Queries used; 266.

Test #151:

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

input:

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

output:

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

result:

ok Queries used; 262.

Test #152:

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

input:

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

output:

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

result:

ok Queries used; 281.

Test #153:

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

input:

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

output:

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

result:

ok Queries used; 283.

Test #154:

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

input:

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

output:

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

result:

ok Queries used; 428.

Test #155:

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

input:

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

output:

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

result:

ok Queries used; 510.

Test #156:

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

input:

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

output:

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

result:

ok Queries used; 664.

Test #157:

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

input:

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

output:

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

result:

ok Queries used; 665.

Test #158:

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

input:

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

output:

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

result:

ok Queries used; 780.

Test #159:

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

input:

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

output:

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

result:

ok Queries used; 939.

Test #160:

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

input:

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

output:

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

result:

ok Queries used; 947.

Test #161:

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

input:

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

output:

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

result:

ok Queries used; 1146.

Test #162:

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

input:

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

output:

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

result:

ok Queries used; 1234.

Test #163:

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

input:

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

output:

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

result:

ok Queries used; 1320.

Test #164:

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

input:

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

output:

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

result:

ok Queries used; 1401.

Test #165:

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

input:

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

output:

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

result:

ok Queries used; 1460.

Test #166:

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

input:

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

output:

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

result:

ok Queries used; 1603.

Test #167:

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

input:

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

output:

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

result:

ok Queries used; 1733.

Test #168:

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

input:

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

output:

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

result:

ok Queries used; 1761.

Test #169:

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

input:

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

output:

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

result:

ok Queries used; 1871.

Test #170:

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

input:

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

output:

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

result:

ok Queries used; 1989.

Test #171:

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

input:

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

output:

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

result:

ok Queries used; 2109.

Test #172:

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

input:

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

output:

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

result:

ok Queries used; 2153.

Test #173:

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

input:

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

output:

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

result:

ok Queries used; 2302.

Test #174:

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

input:

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

output:

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

result:

ok Queries used; 2407.

Test #175:

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

input:

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

output:

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

result:

ok Queries used; 2522.

Test #176:

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

input:

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

output:

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

result:

ok Queries used; 2570.

Test #177:

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

input:

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

output:

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

result:

ok Queries used; 2695.

Test #178:

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

input:

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

output:

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

result:

ok Queries used; 2860.

Test #179:

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

input:

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

output:

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

result:

ok Queries used; 2873.

Test #180:

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

input:

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

output:

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

result:

ok Queries used; 2973.

Test #181:

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

input:

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

output:

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

result:

ok Queries used; 3076.

Test #182:

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

input:

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

output:

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

result:

ok Queries used; 3217.

Test #183:

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

input:

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

output:

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

result:

ok Queries used; 3299.

Test #184:

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

input:

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

output:

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

result:

ok Queries used; 3372.

Test #185:

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

input:

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

output:

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

result:

ok Queries used; 3561.

Test #186:

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

input:

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

output:

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

result:

ok Queries used; 3606.

Test #187:

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

input:

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

output:

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

result:

ok Queries used; 3756.

Test #188:

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

input:

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

output:

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

result:

ok Queries used; 3862.

Test #189:

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

input:

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

output:

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

result:

ok Queries used; 3900.

Test #190:

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

input:

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

output:

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

result:

ok Queries used; 3963.

Test #191:

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

input:

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

output:

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

result:

ok Queries used; 4064.

Test #192:

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

input:

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

output:

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

result:

ok Queries used; 4196.

Test #193:

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

input:

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

output:

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

result:

ok Queries used; 4244.

Test #194:

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

input:

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

output:

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

result:

ok Queries used; 4433.

Test #195:

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

input:

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

output:

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

result:

ok Queries used; 4484.

Test #196:

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

input:

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

output:

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

result:

ok Queries used; 4632.

Test #197:

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

input:

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

output:

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

result:

ok Queries used; 4704.

Test #198:

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

input:

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

output:

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

result:

ok Queries used; 4832.

Test #199:

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

input:

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

output:

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

result:

ok Queries used; 4939.

Test #200:

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

input:

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

output:

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

result:

ok Queries used; 5008.

Test #201:

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

input:

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

output:

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

result:

ok Queries used; 5095.

Test #202:

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

input:

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

output:

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

result:

ok Queries used; 5195.

Test #203:

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

input:

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

output:

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

result:

ok Queries used; 5287.

Test #204:

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

input:

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

output:

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

result:

ok Queries used; 5350.

Test #205:

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

input:

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

output:

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

result:

ok Queries used; 5355.