QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140873#5156. Going in CirclesGamal74AC ✓34ms3596kbC++202.4kb2023-08-16 21:59:452023-08-16 21:59:47

Judging History

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

  • [2023-08-16 21:59:47]
  • 评测
  • 测评结果:AC
  • 用时:34ms
  • 内存:3596kb
  • [2023-08-16 21:59:45]
  • 提交

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) {
        int cur = ask("left");
        if(cur != values.back()) ok = true;
        values.pop_back();
        x = cur;
    }
    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: 34ms
memory: 3588kb

input:

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

output:

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

result:

ok Queries used; 5361.

Test #2:

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

input:

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

output:

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

result:

ok Queries used; 5202.

Test #3:

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

input:

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

output:

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

result:

ok Queries used; 5343.

Test #4:

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

input:

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

output:

? right
? flip
? right
? flip
? right
? right
? right
? 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
? right
? right
? right
? right
? flip
? ...

result:

ok Queries used; 4448.

Test #5:

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

input:

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

output:

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

result:

ok Queries used; 4456.

Test #6:

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

input:

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

output:

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

result:

ok Queries used; 4440.

Test #7:

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

input:

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

output:

? right
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? 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
? right
? right
?...

result:

ok Queries used; 5351.

Test #8:

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

input:

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

output:

? 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
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? r...

result:

ok Queries used; 5203.

Test #9:

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

input:

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

output:

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

result:

ok Queries used; 5352.

Test #10:

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

input:

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

output:

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

result:

ok Queries used; 4445.

Test #11:

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

input:

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

output:

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

result:

ok Queries used; 4454.

Test #12:

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

input:

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

output:

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

result:

ok Queries used; 4438.

Test #13:

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

input:

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

output:

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

result:

ok Queries used; 425.

Test #14:

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

input:

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

output:

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

result:

ok Queries used; 2043.

Test #15:

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

input:

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

output:

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

result:

ok Queries used; 3556.

Test #16:

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

input:

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

output:

? 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
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? flip
? righ...

result:

ok Queries used; 5255.

Test #17:

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

input:

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

output:

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

result:

ok Queries used; 5171.

Test #18:

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

input:

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

output:

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

result:

ok Queries used; 5157.

Test #19:

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

input:

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

output:

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

result:

ok Queries used; 5173.

Test #20:

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

input:

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

output:

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

result:

ok Queries used; 5270.

Test #21:

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

input:

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

output:

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

result:

ok Queries used; 5337.

Test #22:

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

input:

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

output:

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

result:

ok Queries used; 4870.

Test #23:

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

input:

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

output:

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

result:

ok Queries used; 5069.

Test #24:

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

input:

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

output:

? right
? flip
? right
? right
? right
? flip
? 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
? flip
? right
? right
? right
? right
? right
? ...

result:

ok Queries used; 5231.

Test #25:

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

input:

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

output:

? 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
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? ri...

result:

ok Queries used; 4802.

Test #26:

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

input:

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

output:

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

result:

ok Queries used; 5242.

Test #27:

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

input:

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

output:

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

result:

ok Queries used; 5276.

Test #28:

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

input:

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

output:

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

result:

ok Queries used; 4342.

Test #29:

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

input:

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

output:

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

result:

ok Queries used; 353.

Test #30:

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

input:

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

output:

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

result:

ok Queries used; 359.

Test #31:

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

input:

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

output:

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

result:

ok Queries used; 355.

Test #32:

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

input:

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

output:

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

result:

ok Queries used; 367.

Test #33:

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

input:

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

output:

? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? 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
? r...

result:

ok Queries used; 369.

Test #34:

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

input:

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

output:

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

result:

ok Queries used; 369.

Test #35:

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

input:

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

output:

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

result:

ok Queries used; 373.

Test #36:

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

input:

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

output:

? right
? 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
? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? ...

result:

ok Queries used; 367.

Test #37:

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

input:

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

output:

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

result:

ok Queries used; 499.

Test #38:

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

input:

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

output:

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

result:

ok Queries used; 1117.

Test #39:

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

input:

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

output:

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

result:

ok Queries used; 2322.

Test #40:

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

input:

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

output:

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

result:

ok Queries used; 4051.

Test #41:

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

input:

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

output:

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

result:

ok Queries used; 4440.

Test #42:

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

input:

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

output:

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

result:

ok Queries used; 5353.

Test #43:

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

input:

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

output:

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

result:

ok Queries used; 5359.

Test #44:

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

input:

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

output:

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

result:

ok Queries used; 360.

Test #45:

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

input:

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

output:

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

result:

ok Queries used; 355.

Test #46:

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

input:

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

output:

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

result:

ok Queries used; 352.

Test #47:

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

input:

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

output:

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

result:

ok Queries used; 361.

Test #48:

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

input:

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

output:

? 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
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? right
? right
? right
? right
? flip
?...

result:

ok Queries used; 360.

Test #49:

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

input:

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

output:

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

result:

ok Queries used; 367.

Test #50:

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

input:

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

output:

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

result:

ok Queries used; 370.

Test #51:

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

input:

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

output:

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

result:

ok Queries used; 365.

Test #52:

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

input:

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
0
0
0
0
0
1
0
0
0
1
0
1
0
0
1
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
1
0
1
0
1
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
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
0
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
0
0
0
0
1
0
1
0
1
1
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
? right
? right
? flip
? right
? right
? right
? flip
? right
? flip
? right
? right
...

result:

ok Queries used; 492.

Test #53:

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

input:

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

output:

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

result:

ok Queries used; 696.

Test #54:

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

input:

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

output:

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

result:

ok Queries used; 1249.

Test #55:

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

input:

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

output:

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

result:

ok Queries used; 2908.

Test #56:

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

input:

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

output:

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

result:

ok Queries used; 4449.

Test #57:

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

input:

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

output:

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

result:

ok Queries used; 5349.

Test #58:

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

input:

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

output:

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

result:

ok Queries used; 5347.

Test #59:

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

input:

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

output:

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

result:

ok Queries used; 351.

Test #60:

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

input:

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

output:

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

result:

ok Queries used; 358.

Test #61:

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

input:

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

output:

? 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
? right
? right
? flip
? right
? flip
? right
? flip
? right
? ...

result:

ok Queries used; 365.

Test #62:

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

input:

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

output:

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

result:

ok Queries used; 369.

Test #63:

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

input:

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

output:

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

result:

ok Queries used; 355.

Test #64:

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

input:

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

output:

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

result:

ok Queries used; 357.

Test #65:

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

input:

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

output:

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

result:

ok Queries used; 366.

Test #66:

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

input:

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

output:

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

result:

ok Queries used; 477.

Test #67:

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

input:

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

output:

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

result:

ok Queries used; 733.

Test #68:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? flip
? right
? 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
? right
? right
? flip
? right
? right
? ...

result:

ok Queries used; 900.

Test #69:

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

input:

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

output:

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

result:

ok Queries used; 1074.

Test #70:

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

input:

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

output:

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

result:

ok Queries used; 1393.

Test #71:

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

input:

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

output:

? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? 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
? right
? right
? right
? ...

result:

ok Queries used; 1687.

Test #72:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? flip
? 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
? right
? flip
? right
? flip
? right
? flip
? right
...

result:

ok Queries used; 1997.

Test #73:

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

input:

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

output:

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

result:

ok Queries used; 2308.

Test #74:

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

input:

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

output:

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

result:

ok Queries used; 2592.

Test #75:

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

input:

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

output:

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

result:

ok Queries used; 2838.

Test #76:

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

input:

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

output:

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

result:

ok Queries used; 3068.

Test #77:

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

input:

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

output:

? right
? right
? flip
? right
? flip
? right
? flip
? 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
? right
? flip
? right
? flip
? right
? right
? right
?...

result:

ok Queries used; 3432.

Test #78:

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

input:

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

output:

? 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
? flip
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? f...

result:

ok Queries used; 3569.

Test #79:

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

input:

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

output:

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

result:

ok Queries used; 3829.

Test #80:

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

input:

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

output:

? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? right
? flip
? right
? right
? 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
? right
?...

result:

ok Queries used; 4092.

Test #81:

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

input:

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

output:

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

result:

ok Queries used; 4314.

Test #82:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? flip
? 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
? ...

result:

ok Queries used; 4537.

Test #83:

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

input:

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

output:

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

result:

ok Queries used; 4821.

Test #84:

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

input:

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

output:

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

result:

ok Queries used; 5027.

Test #85:

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

input:

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

output:

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

result:

ok Queries used; 5179.

Test #86:

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

input:

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

output:

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

result:

ok Queries used; 5345.

Test #87:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? 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
? right
? flip
? right
? right
?...

result:

ok Queries used; 5356.

Test #88:

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

input:

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

output:

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

result:

ok Queries used; 352.

Test #89:

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

input:

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

output:

? right
? right
? right
? flip
? right
? right
? flip
? right
? flip
? 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
? flip
? right
? flip
? right
...

result:

ok Queries used; 352.

Test #90:

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

input:

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

output:

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

result:

ok Queries used; 357.

Test #91:

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

input:

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

output:

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

result:

ok Queries used; 355.

Test #92:

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

input:

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

output:

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

result:

ok Queries used; 366.

Test #93:

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

input:

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

output:

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

result:

ok Queries used; 362.

Test #94:

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

input:

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

output:

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

result:

ok Queries used; 397.

Test #95:

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

input:

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

output:

? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? 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
? right
? flip
? right
? f...

result:

ok Queries used; 464.

Test #96:

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

input:

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

output:

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

result:

ok Queries used; 589.

Test #97:

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

input:

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

output:

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

result:

ok Queries used; 730.

Test #98:

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

input:

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

output:

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

result:

ok Queries used; 812.

Test #99:

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

input:

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

output:

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

result:

ok Queries used; 860.

Test #100:

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

input:

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

output:

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

result:

ok Queries used; 918.

Test #101:

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

input:

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

output:

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

result:

ok Queries used; 1136.

Test #102:

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

input:

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

output:

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

result:

ok Queries used; 1170.

Test #103:

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

input:

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

output:

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

result:

ok Queries used; 1282.

Test #104:

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

input:

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

output:

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

result:

ok Queries used; 1437.

Test #105:

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

input:

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

output:

? right
? flip
? right
? flip
? right
? flip
? right
? 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
? right
? flip
? right
? flip
? right
? flip
? right
? ri...

result:

ok Queries used; 1495.

Test #106:

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

input:

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

output:

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

result:

ok Queries used; 1611.

Test #107:

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

input:

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

output:

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

result:

ok Queries used; 1650.

Test #108:

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

input:

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

output:

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

result:

ok Queries used; 1793.

Test #109:

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

input:

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

output:

? 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
? right
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
?...

result:

ok Queries used; 1846.

Test #110:

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

input:

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

output:

? right
? right
? right
? right
? right
? flip
? 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
? right
? flip
? right
? flip...

result:

ok Queries used; 1987.

Test #111:

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

input:

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

output:

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

result:

ok Queries used; 2078.

Test #112:

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

input:

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

output:

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

result:

ok Queries used; 2200.

Test #113:

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

input:

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

output:

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

result:

ok Queries used; 2326.

Test #114:

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

input:

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

output:

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

result:

ok Queries used; 2462.

Test #115:

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

input:

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

output:

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

result:

ok Queries used; 2472.

Test #116:

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

input:

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

output:

? right
? 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
? right
? flip
? right
? right
? flip
? right
? right
? flip
? right
? flip
? right
? right
...

result:

ok Queries used; 2542.

Test #117:

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

input:

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

output:

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

result:

ok Queries used; 2701.

Test #118:

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

input:

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

output:

? right
? right
? right
? right
? flip
? right
? flip
? right
? right
? flip
? 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
? right
? r...

result:

ok Queries used; 2851.

Test #119:

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

input:

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

output:

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

result:

ok Queries used; 2947.

Test #120:

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

input:

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

output:

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

result:

ok Queries used; 3016.

Test #121:

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

input:

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

output:

? right
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? flip
? 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
? right
? flip
? ...

result:

ok Queries used; 3177.

Test #122:

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

input:

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

output:

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

result:

ok Queries used; 3237.

Test #123:

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

input:

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

output:

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

result:

ok Queries used; 3229.

Test #124:

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

input:

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

output:

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

result:

ok Queries used; 3386.

Test #125:

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

input:

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

output:

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

result:

ok Queries used; 3495.

Test #126:

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

input:

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

output:

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

result:

ok Queries used; 3641.

Test #127:

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

input:

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

output:

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

result:

ok Queries used; 3738.

Test #128:

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

input:

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

output:

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

result:

ok Queries used; 3847.

Test #129:

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

input:

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

output:

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

result:

ok Queries used; 3957.

Test #130:

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

input:

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

output:

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

result:

ok Queries used; 3961.

Test #131:

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

input:

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

output:

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

result:

ok Queries used; 4118.

Test #132:

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

input:

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

output:

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

result:

ok Queries used; 4160.

Test #133:

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

input:

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

output:

? right
? flip
? right
? flip
? 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
? flip
? right
? right
? right
? right
? flip
? right
? right
? ...

result:

ok Queries used; 4345.

Test #134:

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

input:

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

output:

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

result:

ok Queries used; 4386.

Test #135:

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

input:

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

output:

? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? 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
? flip
? ...

result:

ok Queries used; 4493.

Test #136:

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

input:

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

output:

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

result:

ok Queries used; 4656.

Test #137:

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

input:

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

output:

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

result:

ok Queries used; 4690.

Test #138:

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

input:

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

output:

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

result:

ok Queries used; 4795.

Test #139:

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

input:

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

output:

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

result:

ok Queries used; 4940.

Test #140:

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

input:

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

output:

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

result:

ok Queries used; 4954.

Test #141:

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

input:

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

output:

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

result:

ok Queries used; 5126.

Test #142:

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

input:

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

output:

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

result:

ok Queries used; 5206.

Test #143:

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

input:

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

output:

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

result:

ok Queries used; 5325.

Test #144:

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

input:

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

output:

? right
? flip
? right
? flip
? right
? 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
? flip
? right
? flip
? right
? right
? flip
? right
? fli...

result:

ok Queries used; 5349.

Test #145:

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

input:

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

output:

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

result:

ok Queries used; 5340.

Test #146:

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

input:

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

output:

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

result:

ok Queries used; 358.

Test #147:

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

input:

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

output:

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

result:

ok Queries used; 367.

Test #148:

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

input:

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

output:

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

result:

ok Queries used; 349.

Test #149:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? flip
? 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
? right
? right
? flip
? right
? flip
? right
? right
?...

result:

ok Queries used; 356.

Test #150:

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

input:

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

output:

? right
? flip
? right
? right
? 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
? right
? flip
? right
? right
? flip
? right
? right
? right
? ...

result:

ok Queries used; 361.

Test #151:

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

input:

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

output:

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

result:

ok Queries used; 362.

Test #152:

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

input:

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

output:

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

result:

ok Queries used; 366.

Test #153:

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

input:

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

output:

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

result:

ok Queries used; 367.

Test #154:

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

input:

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

output:

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

result:

ok Queries used; 457.

Test #155:

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

input:

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

output:

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

result:

ok Queries used; 522.

Test #156:

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

input:

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

output:

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

result:

ok Queries used; 667.

Test #157:

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

input:

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

output:

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

result:

ok Queries used; 660.

Test #158:

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

input:

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

output:

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

result:

ok Queries used; 794.

Test #159:

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

input:

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

output:

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

result:

ok Queries used; 939.

Test #160:

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

input:

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

output:

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

result:

ok Queries used; 941.

Test #161:

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

input:

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

output:

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

result:

ok Queries used; 1128.

Test #162:

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

input:

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

output:

? right
? flip
? 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
? flip
? right
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? right
? ...

result:

ok Queries used; 1227.

Test #163:

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

input:

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

output:

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

result:

ok Queries used; 1331.

Test #164:

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

input:

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

output:

? right
? right
? flip
? 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
? flip
? right
? right
? right
? flip
? right
? flip
? right
? right
? flip
? right
? ...

result:

ok Queries used; 1409.

Test #165:

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

input:

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

output:

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

result:

ok Queries used; 1464.

Test #166:

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

input:

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

output:

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

result:

ok Queries used; 1595.

Test #167:

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

input:

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

output:

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

result:

ok Queries used; 1720.

Test #168:

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

input:

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

output:

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

result:

ok Queries used; 1768.

Test #169:

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

input:

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

output:

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

result:

ok Queries used; 1862.

Test #170:

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

input:

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

output:

? right
? flip
? 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
? flip
? right
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
?...

result:

ok Queries used; 2004.

Test #171:

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

input:

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

output:

? right
? right
? right
? 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
? right
? flip
? right
? right
? flip
? right
?...

result:

ok Queries used; 2114.

Test #172:

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

input:

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

output:

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

result:

ok Queries used; 2141.

Test #173:

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

input:

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

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
? right
? flip
? right
? flip
? right
? right
? right
? flip
? right
? right
? flip
? right
? right
? ...

result:

ok Queries used; 2299.

Test #174:

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

input:

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

output:

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

result:

ok Queries used; 2411.

Test #175:

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

input:

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

output:

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

result:

ok Queries used; 2504.

Test #176:

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

input:

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

output:

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

result:

ok Queries used; 2570.

Test #177:

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

input:

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

output:

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

result:

ok Queries used; 2693.

Test #178:

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

input:

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

output:

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

result:

ok Queries used; 2866.

Test #179:

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

input:

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

output:

? right
? 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
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? right
? flip
? right
? flip
? right
? r...

result:

ok Queries used; 2881.

Test #180:

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

input:

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

output:

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

result:

ok Queries used; 2976.

Test #181:

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

input:

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

output:

? right
? right
? right
? flip
? right
? flip
? right
? right
? right
? right
? right
? flip
? 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
?...

result:

ok Queries used; 3070.

Test #182:

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

input:

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

output:

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

result:

ok Queries used; 3230.

Test #183:

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

input:

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

output:

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

result:

ok Queries used; 3286.

Test #184:

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

input:

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

output:

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

result:

ok Queries used; 3373.

Test #185:

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

input:

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

output:

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

result:

ok Queries used; 3557.

Test #186:

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

input:

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

output:

? right
? right
? 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
? flip
? right
? flip
? right
? right
? flip
? right
? right
? flip
? r...

result:

ok Queries used; 3608.

Test #187:

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

input:

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

output:

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

result:

ok Queries used; 3750.

Test #188:

score: 0
Accepted
time: 17ms
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
0
1
0
0
0
1
0
0
1
0
1
1
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
0
1
0
0
0
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
0
1
0
0
1
0
0
1
0
0
0
0
1
0
1
0
0
0
1
0
0
1
0
1
0
0
0
0
1
0
0
0
0
1
...

output:

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

result:

ok Queries used; 3860.

Test #189:

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

input:

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

output:

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

result:

ok Queries used; 3897.

Test #190:

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

input:

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

output:

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

result:

ok Queries used; 3981.

Test #191:

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

input:

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

output:

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

result:

ok Queries used; 4062.

Test #192:

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

input:

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

output:

? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? right
? right
? right
? flip
? right
? flip
? 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; 4197.

Test #193:

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

input:

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

output:

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

result:

ok Queries used; 4247.

Test #194:

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

input:

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

output:

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

result:

ok Queries used; 4437.

Test #195:

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

input:

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

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
? right
? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? right
...

result:

ok Queries used; 4473.

Test #196:

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

input:

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

output:

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

result:

ok Queries used; 4632.

Test #197:

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

input:

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

output:

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

result:

ok Queries used; 4707.

Test #198:

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

input:

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

output:

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

result:

ok Queries used; 4843.

Test #199:

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

input:

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

output:

? 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
? right
? flip
? right
? right
? right
? right
? right
? flip
? right
? flip
? ri...

result:

ok Queries used; 4948.

Test #200:

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

input:

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

output:

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

result:

ok Queries used; 5006.

Test #201:

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

input:

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

output:

? right
? 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
? right
? flip
? right
? flip
? right
? flip
? right
? flip
? right
? right
? r...

result:

ok Queries used; 5099.

Test #202:

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

input:

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

output:

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

result:

ok Queries used; 5193.

Test #203:

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

input:

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

output:

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

result:

ok Queries used; 5278.

Test #204:

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

input:

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

output:

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

result:

ok Queries used; 5346.

Test #205:

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

input:

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

output:

? right
? flip
? right
? right
? flip
? right
? right
? right
? flip
? right
? flip
? 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
? flip
? right
? ...

result:

ok Queries used; 5353.