QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#116772#5156. Going in Circlesbatrr#AC ✓44ms3772kbC++231.9kb2023-06-30 03:16:592023-06-30 03:17:02

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-30 03:17:02]
  • 评测
  • 测评结果:AC
  • 用时:44ms
  • 内存:3772kb
  • [2023-06-30 03:16:59]
  • 提交

answer

#include <bits/stdc++.h>

#define f first
#define s second
#define pb push_back
#define mp make_pair

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<long long, long long> pll;

const int N = 300500, inf = 1e9, mod = 998244353;
const ll INF = 1e18;

int sum(int a, int b) {
    a += b;
    if (a >= mod)
        a -= mod;
    return a;
}

int sub(int a, int b) {
    a -= b;
    if (a < 0)
        a += mod;
    return a;
}

int mult(int a, int b) {
    return 1ll * a * b % mod;
}

int bp(int a, int b) {
    int res = 1;
    while (b) {
        if (b & 1)
            res = mult(res, a);
        a = mult(a, a);
        b >>= 1;
    }
    return res;
}

int inv(int x) {
    return bp(x, mod - 2);
}


void gogo(int dir)
{
    if (dir==1) cout << "? " << "left" << endl;
    else cout << "? " << "right" << endl;
}

void flip()
{
    cout << "? flip" << endl;
}

void fin(int n)
{
    cout << "! " << n << endl;
    exit(0);
}

void solve() {
    vector<int> a;
    vector<int> F;
    mt19937 gen(time(0));
    uniform_int_distribution<ll> uid(0,mod);
    for (int i=0;;i++)
    {
        int x;
        cin >> x;
        a.push_back(x);
        F.push_back(x);
        if (uid(gen)%2==1)
        {
            flip();
            int x;
            cin >> x;
            F.back() ^= 1;
        }
        if (i>=30)
        {
            int P = (i-24)/2;
            int ok = 1;
            for (int j=0;j+P<a.size();j++)
            {
                if (F[j]!=a[j+P]) ok = 0;
            }
            if (ok==1) fin(P);
        }
        gogo(1);
    }

}

int main() {
//#ifdef DEBUG
//    freopen("input.txt", "r", stdin);
//#endif
    ios_base::sync_with_stdio(false);
    int t = 1;
//    cin >> t;
    for (int i = 1; i <= t; i++) {
//        cout << "Case #" << i << endl;
        solve();
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 43ms
memory: 3768kb

input:

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

output:

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

result:

ok Queries used; 15066.

Test #2:

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

input:

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

output:

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

result:

ok Queries used; 14591.

Test #3:

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

input:

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

output:

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

result:

ok Queries used; 15060.

Test #4:

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

input:

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

output:

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

result:

ok Queries used; 12326.

Test #5:

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

input:

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

output:

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

result:

ok Queries used; 12336.

Test #6:

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

input:

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

output:

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

result:

ok Queries used; 12328.

Test #7:

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

input:

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

output:

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

result:

ok Queries used; 14994.

Test #8:

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

input:

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

output:

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

result:

ok Queries used; 14646.

Test #9:

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

input:

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

output:

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

result:

ok Queries used; 15073.

Test #10:

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

input:

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

output:

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

result:

ok Queries used; 12352.

Test #11:

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

input:

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

output:

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

result:

ok Queries used; 12369.

Test #12:

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

input:

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

output:

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

result:

ok Queries used; 12344.

Test #13:

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

input:

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

output:

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

result:

ok Queries used; 182.

Test #14:

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

input:

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

output:

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

result:

ok Queries used; 5091.

Test #15:

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

input:

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

output:

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

result:

ok Queries used; 9631.

Test #16:

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

input:

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

output:

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

result:

ok Queries used; 14736.

Test #17:

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

input:

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

output:

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

result:

ok Queries used; 14583.

Test #18:

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

input:

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

output:

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

result:

ok Queries used; 14440.

Test #19:

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

input:

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

output:

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

result:

ok Queries used; 14434.

Test #20:

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

input:

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

output:

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

result:

ok Queries used; 14802.

Test #21:

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

input:

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

output:

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

result:

ok Queries used; 15076.

Test #22:

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

input:

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

output:

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

result:

ok Queries used; 13572.

Test #23:

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

input:

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

output:

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

result:

ok Queries used; 14280.

Test #24:

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

input:

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

output:

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

result:

ok Queries used; 14652.

Test #25:

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

input:

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

output:

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

result:

ok Queries used; 13416.

Test #26:

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

input:

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

output:

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

result:

ok Queries used; 14772.

Test #27:

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

input:

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

output:

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

result:

ok Queries used; 14742.

Test #28:

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

input:

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

output:

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

result:

ok Queries used; 11927.

Test #29:

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

input:

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

output:

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

result:

ok Queries used; 44.

Test #30:

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

input:

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

output:

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

result:

ok Queries used; 47.

Test #31:

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

input:

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

output:

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

result:

ok Queries used; 51.

Test #32:

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

input:

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

output:

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

result:

ok Queries used; 53.

Test #33:

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

input:

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

output:

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

result:

ok Queries used; 57.

Test #34:

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

input:

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

output:

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

result:

ok Queries used; 64.

Test #35:

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

input:

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

output:

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

result:

ok Queries used; 67.

Test #36:

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

input:

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

output:

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

result:

ok Queries used; 71.

Test #37:

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

input:

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

output:

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

result:

ok Queries used; 331.

Test #38:

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

input:

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

output:

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

result:

ok Queries used; 2309.

Test #39:

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

input:

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

output:

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

result:

ok Queries used; 5895.

Test #40:

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

input:

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

output:

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

result:

ok Queries used; 11117.

Test #41:

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

input:

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

output:

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

result:

ok Queries used; 12283.

Test #42:

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

input:

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

output:

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

result:

ok Queries used; 14966.

Test #43:

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

input:

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

output:

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

result:

ok Queries used; 15061.

Test #44:

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

input:

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

output:

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

result:

ok Queries used; 44.

Test #45:

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

input:

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

output:

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

result:

ok Queries used; 46.

Test #46:

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

input:

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

output:

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

result:

ok Queries used; 50.

Test #47:

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

input:

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

output:

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

result:

ok Queries used; 53.

Test #48:

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

input:

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

output:

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

result:

ok Queries used; 57.

Test #49:

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

input:

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

output:

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

result:

ok Queries used; 59.

Test #50:

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

input:

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

output:

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

result:

ok Queries used; 62.

Test #51:

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

input:

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

output:

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

result:

ok Queries used; 66.

Test #52:

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

input:

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

output:

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

result:

ok Queries used; 333.

Test #53:

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

input:

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

output:

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

result:

ok Queries used; 1062.

Test #54:

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

input:

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

output:

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

result:

ok Queries used; 2688.

Test #55:

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

input:

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

output:

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

result:

ok Queries used; 7657.

Test #56:

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

input:

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

output:

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

result:

ok Queries used; 12288.

Test #57:

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

input:

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

output:

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

result:

ok Queries used; 15009.

Test #58:

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

input:

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

output:

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

result:

ok Queries used; 15004.

Test #59:

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

input:

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

output:

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

result:

ok Queries used; 44.

Test #60:

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

input:

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

output:

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

result:

ok Queries used; 48.

Test #61:

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

input:

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

output:

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

result:

ok Queries used; 50.

Test #62:

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

input:

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

output:

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

result:

ok Queries used; 54.

Test #63:

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

input:

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

output:

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

result:

ok Queries used; 58.

Test #64:

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

input:

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

output:

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

result:

ok Queries used; 60.

Test #65:

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

input:

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

output:

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

result:

ok Queries used; 63.

Test #66:

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

input:

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

output:

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

result:

ok Queries used; 394.

Test #67:

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

input:

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

output:

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

result:

ok Queries used; 1164.

Test #68:

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

input:

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

output:

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

result:

ok Queries used; 1650.

Test #69:

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

input:

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

output:

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

result:

ok Queries used; 2216.

Test #70:

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

input:

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

output:

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

result:

ok Queries used; 3174.

Test #71:

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

input:

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

output:

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

result:

ok Queries used; 4022.

Test #72:

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

input:

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

output:

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

result:

ok Queries used; 4971.

Test #73:

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

input:

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

output:

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

result:

ok Queries used; 5865.

Test #74:

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

input:

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

output:

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

result:

ok Queries used; 6796.

Test #75:

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

input:

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

output:

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

result:

ok Queries used; 7546.

Test #76:

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

input:

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

output:

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

result:

ok Queries used; 8233.

Test #77:

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

input:

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

output:

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

result:

ok Queries used; 9261.

Test #78:

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

input:

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

output:

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

result:

ok Queries used; 9615.

Test #79:

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

input:

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

output:

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

result:

ok Queries used; 10541.

Test #80:

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

input:

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

output:

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

result:

ok Queries used; 11294.

Test #81:

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

input:

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

output:

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

result:

ok Queries used; 11992.

Test #82:

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

input:

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

output:

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

result:

ok Queries used; 12624.

Test #83:

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

input:

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

output:

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

result:

ok Queries used; 13489.

Test #84:

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

input:

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

output:

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

result:

ok Queries used; 14013.

Test #85:

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

input:

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

output:

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

result:

ok Queries used; 14426.

Test #86:

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

input:

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

output:

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

result:

ok Queries used; 15017.

Test #87:

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

input:

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

output:

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

result:

ok Queries used; 15023.

Test #88:

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

input:

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

output:

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

result:

ok Queries used; 47.

Test #89:

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

input:

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

output:

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

result:

ok Queries used; 51.

Test #90:

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

input:

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

output:

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

result:

ok Queries used; 54.

Test #91:

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

input:

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

output:

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

result:

ok Queries used; 56.

Test #92:

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

input:

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

output:

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

result:

ok Queries used; 59.

Test #93:

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

input:

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

output:

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

result:

ok Queries used; 62.

Test #94:

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

input:

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

output:

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

result:

ok Queries used; 152.

Test #95:

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

input:

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

output:

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

result:

ok Queries used; 384.

Test #96:

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

input:

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

output:

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

result:

ok Queries used; 766.

Test #97:

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

input:

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

output:

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

result:

ok Queries used; 1181.

Test #98:

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

input:

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

output:

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

result:

ok Queries used; 1411.

Test #99:

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

input:

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

output:

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

result:

ok Queries used; 1546.

Test #100:

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

input:

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

output:

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

result:

ok Queries used; 1731.

Test #101:

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

input:

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

output:

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

result:

ok Queries used; 2388.

Test #102:

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

input:

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

output:

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

result:

ok Queries used; 2525.

Test #103:

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

input:

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

output:

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

result:

ok Queries used; 2851.

Test #104:

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

input:

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

output:

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

result:

ok Queries used; 3308.

Test #105:

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

input:

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

output:

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

result:

ok Queries used; 3432.

Test #106:

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

input:

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

output:

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

result:

ok Queries used; 3810.

Test #107:

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

input:

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

output:

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

result:

ok Queries used; 3903.

Test #108:

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

input:

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

output:

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

result:

ok Queries used; 4362.

Test #109:

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

input:

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

output:

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

result:

ok Queries used; 4531.

Test #110:

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

input:

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

output:

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

result:

ok Queries used; 4979.

Test #111:

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

input:

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

output:

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

result:

ok Queries used; 5158.

Test #112:

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

input:

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

output:

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

result:

ok Queries used; 5550.

Test #113:

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

input:

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

output:

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

result:

ok Queries used; 5951.

Test #114:

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

input:

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

output:

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

result:

ok Queries used; 6342.

Test #115:

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

input:

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

output:

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

result:

ok Queries used; 6396.

Test #116:

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

input:

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

output:

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

result:

ok Queries used; 6595.

Test #117:

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

input:

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

output:

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

result:

ok Queries used; 7124.

Test #118:

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

input:

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

output:

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

result:

ok Queries used; 7525.

Test #119:

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

input:

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

output:

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

result:

ok Queries used; 7823.

Test #120:

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

input:

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

output:

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

result:

ok Queries used; 8022.

Test #121:

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

input:

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

output:

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

result:

ok Queries used; 8470.

Test #122:

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

input:

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

output:

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

result:

ok Queries used; 8658.

Test #123:

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

input:

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

output:

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

result:

ok Queries used; 8657.

Test #124:

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

input:

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

output:

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

result:

ok Queries used; 9160.

Test #125:

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

input:

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

output:

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

result:

ok Queries used; 9463.

Test #126:

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

input:

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

output:

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

result:

ok Queries used; 9971.

Test #127:

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

input:

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

output:

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

result:

ok Queries used; 10198.

Test #128:

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

input:

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

output:

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

result:

ok Queries used; 10426.

Test #129:

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

input:

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

output:

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

result:

ok Queries used; 10785.

Test #130:

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

input:

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

output:

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

result:

ok Queries used; 10856.

Test #131:

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

input:

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

output:

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

result:

ok Queries used; 11318.

Test #132:

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

input:

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

output:

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

result:

ok Queries used; 11490.

Test #133:

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

input:

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

output:

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

result:

ok Queries used; 12099.

Test #134:

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

input:

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

output:

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

result:

ok Queries used; 12142.

Test #135:

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

input:

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

output:

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

result:

ok Queries used; 12552.

Test #136:

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

input:

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

output:

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

result:

ok Queries used; 12896.

Test #137:

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

input:

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

output:

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

result:

ok Queries used; 12943.

Test #138:

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

input:

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

output:

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

result:

ok Queries used; 13383.

Test #139:

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

input:

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

output:

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

result:

ok Queries used; 13739.

Test #140:

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

input:

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

output:

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

result:

ok Queries used; 13902.

Test #141:

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

input:

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

output:

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

result:

ok Queries used; 14338.

Test #142:

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

input:

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

output:

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

result:

ok Queries used; 14563.

Test #143:

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

input:

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

output:

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

result:

ok Queries used; 15014.

Test #144:

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

input:

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

output:

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

result:

ok Queries used; 15044.

Test #145:

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

input:

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

output:

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

result:

ok Queries used; 15091.

Test #146:

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

input:

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

output:

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

result:

ok Queries used; 44.

Test #147:

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

input:

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

output:

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

result:

ok Queries used; 47.

Test #148:

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

input:

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

output:

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

result:

ok Queries used; 49.

Test #149:

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

input:

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

output:

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

result:

ok Queries used; 53.

Test #150:

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

input:

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

output:

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

result:

ok Queries used; 55.

Test #151:

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

input:

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

output:

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

result:

ok Queries used; 62.

Test #152:

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

input:

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

output:

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

result:

ok Queries used; 65.

Test #153:

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

input:

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

output:

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

result:

ok Queries used; 67.

Test #154:

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

input:

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

output:

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

result:

ok Queries used; 233.

Test #155:

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

input:

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

output:

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

result:

ok Queries used; 521.

Test #156:

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

input:

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

output:

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

result:

ok Queries used; 940.

Test #157:

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

input:

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

output:

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

result:

ok Queries used; 968.

Test #158:

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

input:

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

output:

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

result:

ok Queries used; 1343.

Test #159:

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

input:

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

output:

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

result:

ok Queries used; 1789.

Test #160:

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

input:

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

output:

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

result:

ok Queries used; 1809.

Test #161:

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

input:

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

output:

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

result:

ok Queries used; 2385.

Test #162:

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

input:

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

output:

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

result:

ok Queries used; 2663.

Test #163:

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

input:

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

output:

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

result:

ok Queries used; 2957.

Test #164:

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

input:

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

output:

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

result:

ok Queries used; 3210.

Test #165:

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

input:

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

output:

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

result:

ok Queries used; 3360.

Test #166:

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

input:

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

output:

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

result:

ok Queries used; 3834.

Test #167:

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

input:

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

output:

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

result:

ok Queries used; 4211.

Test #168:

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

input:

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

output:

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

result:

ok Queries used; 4261.

Test #169:

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

input:

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

output:

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

result:

ok Queries used; 4578.

Test #170:

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

input:

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

output:

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

result:

ok Queries used; 4986.

Test #171:

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

input:

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

output:

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

result:

ok Queries used; 5270.

Test #172:

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

input:

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

output:

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

result:

ok Queries used; 5394.

Test #173:

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

input:

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

output:

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

result:

ok Queries used; 5853.

Test #174:

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

input:

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

output:

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

result:

ok Queries used; 6230.

Test #175:

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

input:

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

output:

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

result:

ok Queries used; 6526.

Test #176:

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

input:

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

output:

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

result:

ok Queries used; 6701.

Test #177:

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

input:

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

output:

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

result:

ok Queries used; 7033.

Test #178:

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

input:

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

output:

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

result:

ok Queries used; 7541.

Test #179:

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

input:

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

output:

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

result:

ok Queries used; 7564.

Test #180:

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

input:

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

output:

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

result:

ok Queries used; 7918.

Test #181:

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

input:

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

output:

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

result:

ok Queries used; 8214.

Test #182:

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

input:

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

output:

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

result:

ok Queries used; 8649.

Test #183:

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

input:

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

output:

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

result:

ok Queries used; 8903.

Test #184:

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

input:

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

output:

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

result:

ok Queries used; 9151.

Test #185:

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

input:

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

output:

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

result:

ok Queries used; 9652.

Test #186:

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

input:

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

output:

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

result:

ok Queries used; 9714.

Test #187:

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

input:

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

output:

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

result:

ok Queries used; 10304.

Test #188:

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

input:

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

output:

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

result:

ok Queries used; 10524.

Test #189:

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

input:

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

output:

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

result:

ok Queries used; 10730.

Test #190:

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

input:

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

output:

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

result:

ok Queries used; 10883.

Test #191:

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

input:

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

output:

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

result:

ok Queries used; 11237.

Test #192:

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

input:

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

output:

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

result:

ok Queries used; 11570.

Test #193:

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

input:

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

output:

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

result:

ok Queries used; 11723.

Test #194:

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

input:

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

output:

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

result:

ok Queries used; 12309.

Test #195:

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

input:

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

output:

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

result:

ok Queries used; 12334.

Test #196:

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

input:

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

output:

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

result:

ok Queries used; 12838.

Test #197:

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

input:

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

output:

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

result:

ok Queries used; 13111.

Test #198:

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

input:

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

output:

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

result:

ok Queries used; 13527.

Test #199:

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

input:

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

output:

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

result:

ok Queries used; 13920.

Test #200:

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

input:

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

output:

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

result:

ok Queries used; 13993.

Test #201:

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

input:

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

output:

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

result:

ok Queries used; 14327.

Test #202:

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

input:

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

output:

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

result:

ok Queries used; 14525.

Test #203:

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

input:

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

output:

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

result:

ok Queries used; 14807.

Test #204:

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

input:

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

output:

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

result:

ok Queries used; 15071.

Test #205:

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

input:

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

output:

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

result:

ok Queries used; 14955.