QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#196925#5156. Going in CirclesRobeZH#AC ✓25ms3804kbC++141.6kb2023-10-02 04:36:292023-10-02 04:36:30

Judging History

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

  • [2023-10-02 04:36:30]
  • 评测
  • 测评结果:AC
  • 用时:25ms
  • 内存:3804kb
  • [2023-10-02 04:36:29]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define subnb true
#define Lnb true
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;

const int N = 300;


int k = 150;

mt19937 rng(2333);
int bit[N];
vi x;

//int n;
//int lt[N];


bool check() {
    if(sz(x) < k) return false;
    rep(j, sz(x) - k, sz(x)) {
        if(x[j] != bit[j - (sz(x) - k)]) return false;
    }
    return true;
}


int main() {
//    cin >> n;
//    rep(i, 0, n) lt[i] = rng() % 2;
    int pos = 0;

    rep(i, 0, k) bit[i] = rng() % 2;
    int pt = 0;
//    cout << "str: ";
//    rep(i, 0, k) cout << bit[i];
//    cout << endl;

    while(true) {
//    rep(it, 0, 30) {
        int c;
        cin >> c;
//        c = lt[pos];

        x.push_back(c);
        if(pt < k) {
            if(c != bit[pt]) {
//                cout << "fping " << pt << endl;
                cout << "? flip" << endl;
//                lt[pos] ^= 1;
                fflush(stdout);
                cin >> c;
                assert(c == bit[pt]);
            }
            pt++;
        }
        if(check()) {
            cout << "! " << sz(x) - k << endl;
            fflush(stdout);
            break;
        }
        cout << "? right" << endl;
        fflush(stdout);
//        (pos += 1) %= n;
//        rep(i, 0, n) cout << lt[i];
//        cout << endl;
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 5ms
memory: 3664kb

input:

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

output:

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

result:

ok Queries used; 5218.

Test #2:

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

input:

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

output:

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

result:

ok Queries used; 5071.

Test #3:

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

input:

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

output:

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

result:

ok Queries used; 5226.

Test #4:

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

input:

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

output:

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

result:

ok Queries used; 4323.

Test #5:

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

input:

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

output:

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

result:

ok Queries used; 4324.

Test #6:

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

input:

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

output:

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

result:

ok Queries used; 4325.

Test #7:

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

input:

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

output:

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

result:

ok Queries used; 5217.

Test #8:

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

input:

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

output:

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

result:

ok Queries used; 5070.

Test #9:

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

input:

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

output:

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

result:

ok Queries used; 5219.

Test #10:

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

input:

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

output:

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

result:

ok Queries used; 4314.

Test #11:

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

input:

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

output:

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

result:

ok Queries used; 4315.

Test #12:

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

input:

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

output:

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

result:

ok Queries used; 4316.

Test #13:

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

input:

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

output:

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

result:

ok Queries used; 267.

Test #14:

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

input:

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

output:

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

result:

ok Queries used; 1917.

Test #15:

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

input:

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

output:

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

result:

ok Queries used; 3433.

Test #16:

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

input:

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

output:

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

result:

ok Queries used; 5129.

Test #17:

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

input:

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

output:

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

result:

ok Queries used; 5047.

Test #18:

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

input:

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

output:

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

result:

ok Queries used; 5033.

Test #19:

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

input:

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

output:

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

result:

ok Queries used; 5049.

Test #20:

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

input:

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

output:

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

result:

ok Queries used; 5141.

Test #21:

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

input:

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

output:

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

result:

ok Queries used; 5222.

Test #22:

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

input:

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

output:

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

result:

ok Queries used; 4744.

Test #23:

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

input:

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

output:

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

result:

ok Queries used; 4938.

Test #24:

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

input:

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

output:

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

result:

ok Queries used; 5099.

Test #25:

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

input:

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

output:

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

result:

ok Queries used; 4660.

Test #26:

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

input:

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

output:

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

result:

ok Queries used; 5119.

Test #27:

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

input:

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

output:

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

result:

ok Queries used; 5135.

Test #28:

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

input:

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

output:

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

result:

ok Queries used; 4211.

Test #29:

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

input:

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

output:

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

result:

ok Queries used; 222.

Test #30:

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

input:

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

output:

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

result:

ok Queries used; 234.

Test #31:

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

input:

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

output:

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

result:

ok Queries used; 229.

Test #32:

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

input:

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

output:

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

result:

ok Queries used; 235.

Test #33:

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

input:

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

output:

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

result:

ok Queries used; 221.

Test #34:

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

input:

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

output:

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

result:

ok Queries used; 245.

Test #35:

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

input:

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

output:

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

result:

ok Queries used; 241.

Test #36:

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

input:

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

output:

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

result:

ok Queries used; 233.

Test #37:

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

input:

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

output:

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

result:

ok Queries used; 321.

Test #38:

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

input:

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

output:

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

result:

ok Queries used; 989.

Test #39:

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

input:

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

output:

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

result:

ok Queries used; 2194.

Test #40:

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

input:

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

output:

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

result:

ok Queries used; 3934.

Test #41:

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

input:

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

output:

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

result:

ok Queries used; 4325.

Test #42:

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

input:

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

output:

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

result:

ok Queries used; 5227.

Test #43:

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

input:

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

output:

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

result:

ok Queries used; 5228.

Test #44:

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

input:

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

output:

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

result:

ok Queries used; 221.

Test #45:

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

input:

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

output:

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

result:

ok Queries used; 234.

Test #46:

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

input:

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

output:

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

result:

ok Queries used; 230.

Test #47:

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

input:

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

output:

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

result:

ok Queries used; 237.

Test #48:

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

input:

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

output:

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

result:

ok Queries used; 224.

Test #49:

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

input:

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

output:

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

result:

ok Queries used; 247.

Test #50:

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

input:

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

output:

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

result:

ok Queries used; 242.

Test #51:

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

input:

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

output:

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

result:

ok Queries used; 235.

Test #52:

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

input:

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

output:

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

result:

ok Queries used; 314.

Test #53:

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

input:

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

output:

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

result:

ok Queries used; 565.

Test #54:

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

input:

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

output:

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

result:

ok Queries used; 1112.

Test #55:

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

input:

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

output:

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

result:

ok Queries used; 2781.

Test #56:

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

input:

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

output:

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

result:

ok Queries used; 4316.

Test #57:

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

input:

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

output:

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

result:

ok Queries used; 5219.

Test #58:

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

input:

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

output:

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

result:

ok Queries used; 5220.

Test #59:

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

input:

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

output:

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

result:

ok Queries used; 222.

Test #60:

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

input:

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

output:

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

result:

ok Queries used; 235.

Test #61:

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

input:

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

output:

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

result:

ok Queries used; 229.

Test #62:

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

input:

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

output:

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

result:

ok Queries used; 237.

Test #63:

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

input:

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

output:

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

result:

ok Queries used; 225.

Test #64:

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

input:

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

output:

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

result:

ok Queries used; 245.

Test #65:

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

input:

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

output:

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

result:

ok Queries used; 244.

Test #66:

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

input:

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

output:

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

result:

ok Queries used; 346.

Test #67:

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

input:

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

output:

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

result:

ok Queries used; 607.

Test #68:

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

input:

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

output:

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

result:

ok Queries used; 766.

Test #69:

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

input:

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

output:

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

result:

ok Queries used; 954.

Test #70:

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

input:

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

output:

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

result:

ok Queries used; 1272.

Test #71:

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

input:

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

output:

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

result:

ok Queries used; 1552.

Test #72:

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

input:

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

output:

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

result:

ok Queries used; 1879.

Test #73:

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

input:

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

output:

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

result:

ok Queries used; 2191.

Test #74:

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

input:

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

output:

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

result:

ok Queries used; 2484.

Test #75:

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

input:

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

output:

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

result:

ok Queries used; 2715.

Test #76:

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

input:

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

output:

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

result:

ok Queries used; 2962.

Test #77:

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

input:

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

output:

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

result:

ok Queries used; 3313.

Test #78:

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

input:

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

output:

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

result:

ok Queries used; 3434.

Test #79:

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

input:

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

output:

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

result:

ok Queries used; 3708.

Test #80:

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

input:

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

output:

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

result:

ok Queries used; 3964.

Test #81:

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

input:

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

output:

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

result:

ok Queries used; 4175.

Test #82:

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

input:

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

output:

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

result:

ok Queries used; 4404.

Test #83:

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

input:

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

output:

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

result:

ok Queries used; 4691.

Test #84:

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

input:

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

output:

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

result:

ok Queries used; 4891.

Test #85:

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

input:

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

output:

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

result:

ok Queries used; 5050.

Test #86:

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

input:

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

output:

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

result:

ok Queries used; 5225.

Test #87:

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

input:

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

output:

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

result:

ok Queries used; 5232.

Test #88:

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

input:

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

output:

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

result:

ok Queries used; 223.

Test #89:

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

input:

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

output:

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

result:

ok Queries used; 235.

Test #90:

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

input:

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

output:

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

result:

ok Queries used; 229.

Test #91:

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

input:

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

output:

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

result:

ok Queries used; 237.

Test #92:

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

input:

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

output:

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

result:

ok Queries used; 222.

Test #93:

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

input:

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

output:

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

result:

ok Queries used; 244.

Test #94:

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

input:

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

output:

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

result:

ok Queries used; 263.

Test #95:

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

input:

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

output:

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

result:

ok Queries used; 339.

Test #96:

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

input:

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

output:

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

result:

ok Queries used; 463.

Test #97:

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

input:

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

output:

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

result:

ok Queries used; 621.

Test #98:

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

input:

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

output:

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

result:

ok Queries used; 688.

Test #99:

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

input:

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

output:

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

result:

ok Queries used; 734.

Test #100:

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

input:

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

output:

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

result:

ok Queries used; 794.

Test #101:

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

input:

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

output:

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

result:

ok Queries used; 1006.

Test #102:

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

input:

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

output:

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

result:

ok Queries used; 1053.

Test #103:

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

input:

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

output:

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

result:

ok Queries used; 1163.

Test #104:

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

input:

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

output:

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

result:

ok Queries used; 1319.

Test #105:

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

input:

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

output:

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

result:

ok Queries used; 1363.

Test #106:

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

input:

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

output:

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

result:

ok Queries used; 1487.

Test #107:

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

input:

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

output:

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

result:

ok Queries used; 1502.

Test #108:

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

input:

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

output:

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

result:

ok Queries used; 1663.

Test #109:

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

input:

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

output:

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

result:

ok Queries used; 1726.

Test #110:

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

input:

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

output:

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

result:

ok Queries used; 1882.

Test #111:

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

input:

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

output:

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

result:

ok Queries used; 1950.

Test #112:

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

input:

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

output:

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

result:

ok Queries used; 2081.

Test #113:

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

input:

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

output:

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

result:

ok Queries used; 2205.

Test #114:

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

input:

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

output:

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

result:

ok Queries used; 2343.

Test #115:

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

input:

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

output:

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

result:

ok Queries used; 2348.

Test #116:

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

input:

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

output:

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

result:

ok Queries used; 2420.

Test #117:

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

input:

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

output:

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

result:

ok Queries used; 2581.

Test #118:

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

input:

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

output:

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

result:

ok Queries used; 2718.

Test #119:

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

input:

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

output:

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

result:

ok Queries used; 2824.

Test #120:

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

input:

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

output:

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

result:

ok Queries used; 2893.

Test #121:

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

input:

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

output:

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

result:

ok Queries used; 3045.

Test #122:

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

input:

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

output:

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

result:

ok Queries used; 3119.

Test #123:

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

input:

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

output:

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

result:

ok Queries used; 3110.

Test #124:

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

input:

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

output:

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

result:

ok Queries used; 3270.

Test #125:

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

input:

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

output:

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

result:

ok Queries used; 3370.

Test #126:

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

input:

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

output:

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

result:

ok Queries used; 3518.

Test #127:

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

input:

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

output:

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

result:

ok Queries used; 3611.

Test #128:

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

input:

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

output:

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

result:

ok Queries used; 3714.

Test #129:

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

input:

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

output:

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

result:

ok Queries used; 3834.

Test #130:

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

input:

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

output:

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

result:

ok Queries used; 3834.

Test #131:

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

input:

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

output:

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

result:

ok Queries used; 3992.

Test #132:

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

input:

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

output:

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

result:

ok Queries used; 4034.

Test #133:

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

input:

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

output:

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

result:

ok Queries used; 4212.

Test #134:

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

input:

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

output:

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

result:

ok Queries used; 4264.

Test #135:

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

input:

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

output:

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

result:

ok Queries used; 4377.

Test #136:

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

input:

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

output:

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

result:

ok Queries used; 4531.

Test #137:

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

input:

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

output:

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

result:

ok Queries used; 4565.

Test #138:

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

input:

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

output:

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

result:

ok Queries used; 4671.

Test #139:

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

input:

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

output:

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

result:

ok Queries used; 4820.

Test #140:

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

input:

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

output:

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

result:

ok Queries used; 4843.

Test #141:

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

input:

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

output:

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

result:

ok Queries used; 5002.

Test #142:

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

input:

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

output:

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

result:

ok Queries used; 5084.

Test #143:

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

input:

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

output:

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

result:

ok Queries used; 5215.

Test #144:

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

input:

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

output:

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

result:

ok Queries used; 5232.

Test #145:

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

input:

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

output:

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

result:

ok Queries used; 5229.

Test #146:

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

input:

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

output:

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

result:

ok Queries used; 221.

Test #147:

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

input:

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

output:

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

result:

ok Queries used; 234.

Test #148:

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

input:

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

output:

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

result:

ok Queries used; 231.

Test #149:

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

input:

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

output:

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

result:

ok Queries used; 238.

Test #150:

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

input:

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

output:

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

result:

ok Queries used; 223.

Test #151:

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

input:

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

output:

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

result:

ok Queries used; 246.

Test #152:

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

input:

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

output:

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

result:

ok Queries used; 242.

Test #153:

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

input:

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

output:

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

result:

ok Queries used; 233.

Test #154:

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

input:

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

output:

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

result:

ok Queries used; 293.

Test #155:

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

input:

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

output:

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

result:

ok Queries used; 391.

Test #156:

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

input:

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

output:

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

result:

ok Queries used; 529.

Test #157:

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

input:

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

output:

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

result:

ok Queries used; 541.

Test #158:

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

input:

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

output:

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

result:

ok Queries used; 663.

Test #159:

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

input:

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

output:

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

result:

ok Queries used; 807.

Test #160:

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

input:

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

output:

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

result:

ok Queries used; 823.

Test #161:

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

input:

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

output:

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

result:

ok Queries used; 1009.

Test #162:

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

input:

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

output:

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

result:

ok Queries used; 1098.

Test #163:

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

input:

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

output:

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

result:

ok Queries used; 1201.

Test #164:

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

input:

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

output:

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

result:

ok Queries used; 1284.

Test #165:

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

input:

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

output:

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

result:

ok Queries used; 1333.

Test #166:

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

input:

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

output:

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

result:

ok Queries used; 1468.

Test #167:

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

input:

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

output:

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

result:

ok Queries used; 1598.

Test #168:

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

input:

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

output:

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

result:

ok Queries used; 1638.

Test #169:

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

input:

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

output:

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

result:

ok Queries used; 1740.

Test #170:

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

input:

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

output:

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

result:

ok Queries used; 1874.

Test #171:

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

input:

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

output:

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

result:

ok Queries used; 1976.

Test #172:

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

input:

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

output:

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

result:

ok Queries used; 2021.

Test #173:

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

input:

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

output:

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

result:

ok Queries used; 2174.

Test #174:

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

input:

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

output:

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

result:

ok Queries used; 2268.

Test #175:

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

input:

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

output:

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

result:

ok Queries used; 2394.

Test #176:

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

input:

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

output:

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

result:

ok Queries used; 2437.

Test #177:

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

input:

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

output:

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

result:

ok Queries used; 2567.

Test #178:

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

input:

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

output:

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

result:

ok Queries used; 2734.

Test #179:

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

input:

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

output:

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

result:

ok Queries used; 2737.

Test #180:

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

input:

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

output:

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

result:

ok Queries used; 2851.

Test #181:

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

input:

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

output:

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

result:

ok Queries used; 2937.

Test #182:

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

input:

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

output:

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

result:

ok Queries used; 3098.

Test #183:

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

input:

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

output:

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

result:

ok Queries used; 3164.

Test #184:

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

input:

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

output:

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

result:

ok Queries used; 3245.

Test #185:

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

input:

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

output:

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

result:

ok Queries used; 3433.

Test #186:

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

input:

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

output:

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

result:

ok Queries used; 3468.

Test #187:

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

input:

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

output:

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

result:

ok Queries used; 3616.

Test #188:

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

input:

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

output:

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

result:

ok Queries used; 3730.

Test #189:

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

input:

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

output:

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

result:

ok Queries used; 3782.

Test #190:

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

input:

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

output:

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

result:

ok Queries used; 3848.

Test #191:

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

input:

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

output:

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

result:

ok Queries used; 3926.

Test #192:

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

input:

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

output:

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

result:

ok Queries used; 4070.

Test #193:

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

input:

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

output:

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

result:

ok Queries used; 4122.

Test #194:

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

input:

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

output:

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

result:

ok Queries used; 4313.

Test #195:

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

input:

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

output:

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

result:

ok Queries used; 4352.

Test #196:

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

input:

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

output:

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

result:

ok Queries used; 4495.

Test #197:

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

input:

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

output:

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

result:

ok Queries used; 4579.

Test #198:

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

input:

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

output:

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

result:

ok Queries used; 4707.

Test #199:

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

input:

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

output:

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

result:

ok Queries used; 4813.

Test #200:

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

input:

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

output:

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

result:

ok Queries used; 4888.

Test #201:

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

input:

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

output:

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

result:

ok Queries used; 4971.

Test #202:

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

input:

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

output:

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

result:

ok Queries used; 5063.

Test #203:

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

input:

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

output:

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

result:

ok Queries used; 5146.

Test #204:

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

input:

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

output:

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

result:

ok Queries used; 5225.

Test #205:

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

input:

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

output:

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

result:

ok Queries used; 5222.