QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#786866#9783. Duloc Networkucup-team1134AC ✓108ms12776kbC++2313.8kb2024-11-27 00:18:432024-11-27 00:18:44

Judging History

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

  • [2024-11-27 00:18:44]
  • 评测
  • 测评结果:AC
  • 用时:108ms
  • 内存:12776kb
  • [2024-11-27 00:18:43]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return true; } return false; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return true; } return false; }
#define vi vector<int>
#define vl vector<ll>
#define vii vector<pair<int,int>>
#define vll vector<pair<ll,ll>>
#define vvi vector<vector<int>>
#define vvl vector<vector<ll>>
#define vvii vector<vector<pair<int,int>>>
#define vvll vector<vector<pair<ll,ll>>>
#define vst vector<string>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define mkunique(x) sort(all(x));(x).erase(unique(all(x)),(x).end())
#define fi first
#define se second
#define mp make_pair
#define si(x) int(x.size())
const int mod=998244353,MAX=300005,INF=15<<26;

// BIT セグ木 遅延セグ木 のみ

// from: https://gist.github.com/yosupo06/ddd51afb727600fd95d9d8ad6c3c80c9
// (based on AtCoder STL)

#include <algorithm>
#include <array>
#ifdef _MSC_VER
#include <intrin.h>
#endif
namespace atcoder {
namespace internal {
int ceil_pow2(int n) {
    int x = 0;
    while ((1U << x) < (unsigned int)(n)) x++;
    return x;
}
int bsf(unsigned int n) {
#ifdef _MSC_VER
    unsigned long index;
    _BitScanForward(&index, n);
    return index;
#else
    return __builtin_ctz(n);
#endif
}
}  // namespace internal

}  // namespace atcoder

#include <cassert>
#include <numeric>
#include <type_traits>

namespace atcoder {

namespace internal {

#ifndef _MSC_VER
template <class T>
using is_signed_int128 =
typename std::conditional<std::is_same<T, __int128_t>::value ||
std::is_same<T, __int128>::value,
std::true_type,
std::false_type>::type;

template <class T>
using is_unsigned_int128 =
typename std::conditional<std::is_same<T, __uint128_t>::value ||
std::is_same<T, unsigned __int128>::value,
std::true_type,
std::false_type>::type;

template <class T>
using make_unsigned_int128 =
typename std::conditional<std::is_same<T, __int128_t>::value,
__uint128_t,
unsigned __int128>;

template <class T>
using is_integral = typename std::conditional<std::is_integral<T>::value ||
is_signed_int128<T>::value ||
is_unsigned_int128<T>::value,
std::true_type,
std::false_type>::type;

template <class T>
using is_signed_int = typename std::conditional<(is_integral<T>::value &&
                                                 std::is_signed<T>::value) ||
is_signed_int128<T>::value,
std::true_type,
std::false_type>::type;

template <class T>
using is_unsigned_int =
typename std::conditional<(is_integral<T>::value &&
                           std::is_unsigned<T>::value) ||
is_unsigned_int128<T>::value,
std::true_type,
std::false_type>::type;

template <class T>
using to_unsigned = typename std::conditional<
is_signed_int128<T>::value,
make_unsigned_int128<T>,
typename std::conditional<std::is_signed<T>::value,
std::make_unsigned<T>,
std::common_type<T>>::type>::type;

#else

template <class T> using is_integral = typename std::is_integral<T>;

template <class T>
using is_signed_int =
typename std::conditional<is_integral<T>::value && std::is_signed<T>::value,
std::true_type,
std::false_type>::type;

template <class T>
using is_unsigned_int =
typename std::conditional<is_integral<T>::value &&
std::is_unsigned<T>::value,
std::true_type,
std::false_type>::type;

template <class T>
using to_unsigned = typename std::conditional<is_signed_int<T>::value,
std::make_unsigned<T>,
std::common_type<T>>::type;

#endif

template <class T>
using is_signed_int_t = std::enable_if_t<is_signed_int<T>::value>;

template <class T>
using is_unsigned_int_t = std::enable_if_t<is_unsigned_int<T>::value>;

template <class T> using to_unsigned_t = typename to_unsigned<T>::type;

}  // namespace internal

}  // namespace atcoder

#include <cassert>
#include <vector>

namespace atcoder {

template <class T> struct fenwick_tree {
    using U = internal::to_unsigned_t<T>;
    
public:
    fenwick_tree() : _n(0) {}
    fenwick_tree(int n) : _n(n), data(n) {}
    
    void add(int p, T x) {
        assert(0 <= p && p < _n);
        p++;
        while (p <= _n) {
            data[p - 1] += U(x);
            p += p & -p;
        }
    }
    
    T sum(int l, int r) {
        assert(0 <= l && l <= r && r <= _n);
        return sum(r) - sum(l);
    }
    
private:
    int _n;
    std::vector<U> data;
    
    U sum(int r) {
        U s = 0;
        while (r > 0) {
            s += data[r - 1];
            r -= r & -r;
        }
        return s;
    }
};

}  // namespace atcoder


#include <algorithm>
#include <cassert>
#include <iostream>
#include <vector>
namespace atcoder {

template <class S,
S (*op)(S, S),
S (*e)(),
class F,
S (*mapping)(F, S),
F (*composition)(F, F),
F (*id)()>
struct lazy_segtree {
public:
    lazy_segtree() : lazy_segtree(0) {}
    lazy_segtree(int n) : lazy_segtree(std::vector<S>(n, e())) {}
    lazy_segtree(const std::vector<S>& v) : _n(int(v.size())) {
        log = internal::ceil_pow2(_n);
        size = 1 << log;
        d = std::vector<S>(2 * size, e());
        lz = std::vector<F>(size, id());
        for (int i = 0; i < _n; i++) d[size + i] = v[i];
        for (int i = size - 1; i >= 1; i--) {
            update(i);
        }
    }
    
    void set(int p, S x) {
        assert(0 <= p && p < _n);
        p += size;
        for (int i = log; i >= 1; i--) push(p >> i);
        d[p] = x;
        for (int i = 1; i <= log; i++) update(p >> i);
    }
    
    S get(int p) {
        assert(0 <= p && p < _n);
        p += size;
        for (int i = log; i >= 1; i--) push(p >> i);
        return d[p];
    }
    
    S prod(int l, int r) {
        assert(0 <= l && l <= r && r <= _n);
        if (l == r) return e();
        
        l += size;
        r += size;
        
        for (int i = log; i >= 1; i--) {
            if (((l >> i) << i) != l) push(l >> i);
            if (((r >> i) << i) != r) push(r >> i);
        }
        
        S sml = e(), smr = e();
        while (l < r) {
            if (l & 1) sml = op(sml, d[l++]);
            if (r & 1) smr = op(d[--r], smr);
            l >>= 1;
            r >>= 1;
        }
        
        return op(sml, smr);
    }
    
    S all_prod() { return d[1]; }
    
    void apply(int p, F f) {
        assert(0 <= p && p < _n);
        p += size;
        for (int i = log; i >= 1; i--) push(p >> i);
        d[p] = mapping(f, d[p]);
        for (int i = 1; i <= log; i++) update(p >> i);
    }
    void apply(int l, int r, F f) {
        assert(0 <= l && l <= r && r <= _n);
        if (l == r) return;
        
        l += size;
        r += size;
        
        for (int i = log; i >= 1; i--) {
            if (((l >> i) << i) != l) push(l >> i);
            if (((r >> i) << i) != r) push((r - 1) >> i);
        }
        
        {
            int l2 = l, r2 = r;
            while (l < r) {
                if (l & 1) all_apply(l++, f);
                if (r & 1) all_apply(--r, f);
                l >>= 1;
                r >>= 1;
            }
            l = l2;
            r = r2;
        }
        
        for (int i = 1; i <= log; i++) {
            if (((l >> i) << i) != l) update(l >> i);
            if (((r >> i) << i) != r) update((r - 1) >> i);
        }
    }
    
    template <bool (*g)(S)> int max_right(int l) {
        return max_right(l, [](S x) { return g(x); });
    }
    template <class G> int max_right(int l, G g) {
        assert(0 <= l && l <= _n);
        assert(g(e()));
        if (l == _n) return _n;
        l += size;
        for (int i = log; i >= 1; i--) push(l >> i);
        S sm = e();
        do {
            while (l % 2 == 0) l >>= 1;
            if (!g(op(sm, d[l]))) {
                while (l < size) {
                    push(l);
                    l = (2 * l);
                    if (g(op(sm, d[l]))) {
                        sm = op(sm, d[l]);
                        l++;
                    }
                }
                return l - size;
            }
            sm = op(sm, d[l]);
            l++;
        } while ((l & -l) != l);
        return _n;
    }
    
    template <bool (*g)(S)> int min_left(int r) {
        return min_left(r, [](S x) { return g(x); });
    }
    template <class G> int min_left(int r, G g) {
        assert(0 <= r && r <= _n);
        assert(g(e()));
        if (r == 0) return 0;
        r += size;
        for (int i = log; i >= 1; i--) push((r - 1) >> i);
        S sm = e();
        do {
            r--;
            while (r > 1 && (r % 2)) r >>= 1;
            if (!g(op(d[r], sm))) {
                while (r < size) {
                    push(r);
                    r = (2 * r + 1);
                    if (g(op(d[r], sm))) {
                        sm = op(d[r], sm);
                        r--;
                    }
                }
                return r + 1 - size;
            }
            sm = op(d[r], sm);
        } while ((r & -r) != r);
        return 0;
    }
    
private:
    int _n, size, log;
    std::vector<S> d;
    std::vector<F> lz;
    
    void update(int k) { d[k] = op(d[2 * k], d[2 * k + 1]); }
    void all_apply(int k, F f) {
        d[k] = mapping(f, d[k]);
        if (k < size) lz[k] = composition(f, lz[k]);
    }
    void push(int k) {
        all_apply(2 * k, lz[k]);
        all_apply(2 * k + 1, lz[k]);
        lz[k] = id();
    }
};

}  // namespace atcoder

#include <algorithm>
#include <cassert>
#include <vector>

namespace atcoder {

template <class S, S (*op)(S, S), S (*e)()> struct segtree {
public:
    segtree() : segtree(0) {}
    segtree(int n) : segtree(std::vector<S>(n, e())) {}
    segtree(const std::vector<S>& v) : _n(int(v.size())) {
        log = internal::ceil_pow2(_n);
        size = 1 << log;
        d = std::vector<S>(2 * size, e());
        for (int i = 0; i < _n; i++) d[size + i] = v[i];
        for (int i = size - 1; i >= 1; i--) {
            update(i);
        }
    }
    
    void set(int p, S x) {
        assert(0 <= p && p < _n);
        p += size;
        d[p] = x;
        for (int i = 1; i <= log; i++) update(p >> i);
    }
    
    S get(int p) {
        assert(0 <= p && p < _n);
        return d[p + size];
    }
    
    S prod(int l, int r) {
        assert(0 <= l && l <= r && r <= _n);
        S sml = e(), smr = e();
        l += size;
        r += size;
        
        while (l < r) {
            if (l & 1) sml = op(sml, d[l++]);
            if (r & 1) smr = op(d[--r], smr);
            l >>= 1;
            r >>= 1;
        }
        return op(sml, smr);
    }
    
    S all_prod() { return d[1]; }
    
    template <bool (*f)(S)> int max_right(int l) {
        return max_right(l, [](S x) { return f(x); });
    }
    template <class F> int max_right(int l, F f) {
        assert(0 <= l && l <= _n);
        assert(f(e()));
        if (l == _n) return _n;
        l += size;
        S sm = e();
        do {
            while (l % 2 == 0) l >>= 1;
            if (!f(op(sm, d[l]))) {
                while (l < size) {
                    l = (2 * l);
                    if (f(op(sm, d[l]))) {
                        sm = op(sm, d[l]);
                        l++;
                    }
                }
                return l - size;
            }
            sm = op(sm, d[l]);
            l++;
        } while ((l & -l) != l);
        return _n;
    }
    
    template <bool (*f)(S)> int min_left(int r) {
        return min_left(r, [](S x) { return f(x); });
    }
    template <class F> int min_left(int r, F f) {
        assert(0 <= r && r <= _n);
        assert(f(e()));
        if (r == 0) return 0;
        r += size;
        S sm = e();
        do {
            r--;
            while (r > 1 && (r % 2)) r >>= 1;
            if (!f(op(d[r], sm))) {
                while (r < size) {
                    r = (2 * r + 1);
                    if (f(op(d[r], sm))) {
                        sm = op(d[r], sm);
                        r--;
                    }
                }
                return r + 1 - size;
            }
            sm = op(d[r], sm);
        } while ((r & -r) != r);
        return 0;
    }
    
private:
    int _n, size, log;
    std::vector<S> d;
    
    void update(int k) { d[k] = op(d[2 * k], d[2 * k + 1]); }
};

}  // namespace atcoder

using T=set<int>;

T f(T a,T b){
    T res;
    for(int x:a) res.insert(x);
    for(int x:b) res.insert(x);
    return res;
}

T ti(){
    return {};
}

int N;

map<set<int>,int> MA;

int ask(set<int> X){
    if(MA.count(X)) return MA[X];
    else{
        cout<<"? ";
        for(int i=0;i<N;i++){
            if(X.count(i)) cout<<'1';
            else cout<<'0';
        }
        cout<<endl;
        int z;cin>>z;
        return MA[X]=z;
    }
}

int main(){
    
    cin>>N;
    vector<T> def(N);
    for(int i=0;i<N;i++){
        def[i].insert(i);
    }
    
    atcoder::segtree<T,f,ti> seg(def);
    
    for(int s=N-1;s>=1;s--){
        auto check=[&](int a,int b){
            auto A=seg.prod(a,b),B=seg.get(s),C=A;
            for(int x:B) C.insert(x);
            int aa=ask(A),bb=ask(B),cc=ask(C);
            if(aa+bb>cc) return true;
            else return false;
        };
        int l=0,r=s;
        if(!check(l,r)){
            cout<<"! 0"<<endl;
            return 0;
        }
        while(r-l>1){
            int m=(l+r)/2;
            if(check(l,m)){
                r=m;
            }else{
                l=m;
            }
        }
        auto A=seg.get(l),B=seg.get(s);
        for(int x:B) A.insert(x);
        seg.set(l,A);
    }
    
    cout<<"! 1"<<endl;
    
}



Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
2
0
1
2
1
2
1
3

output:

? 1110
? 0001
? 1111
? 1000
? 1001
? 1101
? 0010
? 1011
? 0100
! 1

result:

ok Correct answer with 9 queries.

Test #2:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

4
1
2
0
1
2
1
2
1
3

output:

? 1110
? 0001
? 1111
? 1000
? 1001
? 1101
? 0010
? 1011
? 0100
! 1

result:

ok Correct answer with 9 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

input:

50
1
3
0
15
16
16
17
10
12
5
7
3
5
1
2
15
17
14
5
7
2
3
1
3
16
18
15
17
9
11
6
9
1
4
1
3
1
1
19
19
19
10
11
6
6
2
2
1
2
17
18
18
12
7
6
1
6
17
17
13
12
11
1
3
18
17
18
18
14
15
2
1
3
19
20
16
14
13
1
3
20
19
19
15
13
12
1
1
18
19
15
14
3
4
1
1
18
17
17
18
9
8
3
4
3
2
1
4
16
17
14
15
17
4
1
2
16
15
1...

output:

? 11111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111100000000000000000000000000
? 11111111111111111111111100000000000000000000000001
? 111111111111000000000000000000000...

result:

ok Correct answer with 156 queries.

Test #6:

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

input:

50
1
10
0
26
25
35
35
32
34
21
26
10
17
1
9
24
35
36
31
25
1
10
25
24
35
35
36
36
29
32
28
1
12
23
34
36
34
31
1
11
24
23
33
37
36
34
1
7
22
32
37
37
35
1
10
23
22
33
32
36
38
36
1
11
21
31
35
37
35
1
15
22
21
31
36
38
37
1
9
20
30
35
37
36
1
9
21
20
31
30
35
34
36
36
1
10
19
29
33
35
35
1
11
20
19
...

output:

? 11111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111100000000000000000000000000
? 11111111111111111111111100000000000000000000000001
? 111111111111000000000000000000000...

result:

ok Correct answer with 328 queries.

Test #7:

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

input:

50
1
2
0
17
16
16
15
13
12
5
6
1
3
3
4
1
3
17
16
15
2
5
3
4
1
2
16
17
15
16
11
12
5
7
1
3
4
5
1
4
16
16
12
5
5
1
2
16
16
16
14
3
4
1
3
1
2
1
4
16
17
16
5
5
3
1
3
17
16
16
15
14
7
4
1
1
16
15
14
7
2
1
2
16
15
15
14
9
3
7
1
2
14
15
14
7
1
1
3
14
14
13
13
11
12
8
4
1
1
14
14
8
9
6
7
1
2
1
1
1
1
15
15
1...

output:

? 11111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111100000000000000000000000000
? 11111111111111111111111100000000000000000000000001
? 111111111111000000000000000000000...

result:

ok Correct answer with 244 queries.

Test #8:

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

input:

50
1
9
0
26
25
32
33
30
32
21
25
2
11
14
19
1
5
24
32
32
27
7
21
1
7
25
24
33
33
32
35
22
27
9
1
10
23
32
35
30
11
1
8
24
23
33
36
32
16
1
6
22
32
36
33
19
1
8
23
22
33
32
35
33
21
1
10
21
31
35
33
24
1
7
22
21
31
35
33
27
1
11
20
30
35
34
30
1
9
21
20
31
30
36
35
33
30
1
10
19
29
34
32
29
1
4
20
19...

output:

? 11111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111100000000000000000000000000
? 11111111111111111111111100000000000000000000000001
? 111111111111000000000000000000000...

result:

ok Correct answer with 331 queries.

Test #9:

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

input:

50
1
1
0
14
15
14
15
9
10
6
7
3
2
1
0
1
1
15
14
9
9
4
4
2
2
1
2
15
14
10
10
4
6
3
4
1
3
1
3
1
2
13
11
6
6
1
2
0

output:

? 11111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111100000000000000000000000000
? 11111111111111111111111100000000000000000000000001
? 000000000000000000000000111111111...

result:

ok Correct answer with 48 queries.

Test #10:

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

input:

100
1
1
0
31
31
25
25
15
15
7
8
5
6
3
4
1
2
1
2
30
25
17
11
13
5
6
2
4
1
3
1
3
29
29
27
18
14
8
4
1
1
29
28
19
19
9
10
5
5
1
1
1
2
30
32
23
22
14
14
7
9
6
6
2
4
2
3
1
1
29
28
29
20
21
9
8
3
4
3
4
2
1
1
1
30
31
26
25
17
18
7
8
9
8
3
4
3
4
1
2
32
25
19
7
4
6
1
3
1
1
1
1
30
29
27
28
16
17
11
10
6
5
1
2...

output:

? 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 445 queries.

Test #11:

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

input:

100
1
10
0
50
49
65
64
58
61
43
48
27
35
11
20
1
8
48
64
62
49
37
25
1
10
49
48
63
63
53
41
32
1
8
47
65
65
56
47
39
1
10
48
47
66
66
64
64
54
56
46
51
44
1
8
46
66
66
58
54
48
1
8
47
46
65
66
58
54
48
1
5
45
64
65
60
57
51
1
11
46
45
65
65
68
63
60
54
1
12
44
64
67
63
61
55
1
8
45
45
64
68
64
62
56...

output:

? 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 762 queries.

Test #12:

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

input:

100
1
4
0
37
38
46
48
31
34
18
21
11
15
4
7
1
6
39
50
37
25
16
5
10
1
3
38
37
49
36
25
18
13
3
5
1
3
36
49
39
18
19
7
10
4
5
1
5
37
37
48
49
35
40
18
19
8
12
4
9
2
6
1
2
37
49
37
20
13
6
7
1
5
37
37
50
40
23
16
9
10
1
2
38
51
36
23
24
15
16
11
1
2
39
40
50
51
37
26
12
14
4
5
1
6
39
51
38
28
20
15
1
...

output:

? 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 775 queries.

Test #13:

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

input:

100
1
1
0
33
32
39
38
20
19
8
7
3
4
3
2
1
2
31
37
18
7
5
2
1
1
32
32
37
19
13
13
6
6
4
4
1
1
32
37
18
7
3
1
2
1
1
1
1
33
34
29
28
21
20
13
12
8
9
1
2
2
3
1
3
33
35
36
15
18
15
17
8
11
1
4
2
4
1
1
33
32
35
16
18
6
5
1
0
1
4
31
35
16
6
7
2
3
5
1
5
31
31
34
37
21
13
16
7
10
3
6
1
1
30
36
15
8
5
6
4
5
1...

output:

? 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 457 queries.

Test #14:

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

input:

100
1
1
0
32
31
26
26
15
16
10
10
6
7
1
2
1
2
1
2
31
28
16
18
7
9
7
7
2
4
3
5
1
1
30
31
26
27
17
18
14
13
7
8
2
1
1
2
30
28
18
9
7
4
5
1
1
29
29
26
26
14
14
8
8
2
3
2
3
3
4
1
1
29
26
14
9
6
6
3
4
2
2
1
3
30
30
28
16
11
8
6
4
1
2
32
26
26
14
14
5
5
2
4
1
1
1
1
30
29
27
26
15
7
3
1
1
3
30
29
12
13
6
7...

output:

? 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 458 queries.

Test #15:

score: 0
Accepted
time: 54ms
memory: 7952kb

input:

150
1
2
0
60
60
57
58
42
43
24
26
11
13
10
12
1
3
3
5
1
4
59
59
45
27
11
15
5
8
2
6
1
3
59
58
58
58
45
29
14
10
5
1
6
58
59
49
33
16
6
11
4
10
1
3
56
55
59
49
36
12
7
10
2
3
1
4
54
58
49
34
19
14
7
1
4
55
56
57
58
48
51
33
37
13
16
6
10
4
7
1
3
56
58
53
36
18
9
9
1
2
55
54
58
53
35
20
6
8
6
8
3
1
2
...

output:

? 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1290 queries.

Test #16:

score: 0
Accepted
time: 45ms
memory: 7840kb

input:

150
1
5
0
54
54
52
53
35
38
21
25
9
13
6
10
4
8
1
2
54
54
39
26
15
3
5
1
3
8
9
1
3
55
54
55
55
40
29
7
8
3
4
2
5
1
2
55
56
41
27
15
5
3
10
1
3
55
54
57
42
29
16
6
4
12
1
3
54
58
44
31
15
12
10
1
4
54
54
56
58
43
45
30
34
7
11
5
9
1
5
4
6
1
3
54
58
47
32
18
5
2
5
1
3
54
53
57
46
31
18
8
4
1
1
53
57
4...

output:

? 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1290 queries.

Test #17:

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

input:

150
1
4
0
63
62
57
57
34
37
18
22
9
13
11
15
1
4
1
3
61
56
37
18
9
10
4
7
4
5
1
1
61
60
55
54
36
17
11
6
5
4
3
1
3
59
53
36
17
11
7
6
1
3
59
58
54
39
21
24
11
14
8
11
2
3
1
1
57
53
35
18
8
4
5
1
0
1
2
57
56
53
54
34
35
16
17
13
7
3
4
1
2
55
55
37
21
22
9
10
3
4
1
3
1
3
54
54
57
37
19
13
6
3
6
1
2
54...

output:

? 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1121 queries.

Test #18:

score: 0
Accepted
time: 47ms
memory: 6476kb

input:

150
1
2
0
66
66
65
65
41
41
27
29
11
11
6
6
4
6
1
1
65
65
41
27
17
17
8
9
5
5
1
4
64
64
64
67
44
30
20
12
8
1
2
64
69
36
36
20
22
12
12
5
7
2
4
1
2
64
63
68
45
32
12
7
5
1
3
62
68
45
32
23
4
7
5
7
1
2
63
62
65
64
42
41
31
31
20
10
8
1
4
61
65
44
34
23
12
11
1
3
62
62
65
45
35
24
11
12
1
1
61
64
44
3...

output:

? 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1082 queries.

Test #19:

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

input:

150
1
3
0
50
50
42
45
30
31
16
17
7
10
5
6
2
5
1
1
50
42
22
23
20
20
8
9
3
4
2
3
5
6
1
1
48
47
41
40
23
19
9
4
3
6
1
4
47
41
26
20
12
7
6
9
1
1
48
49
37
36
28
29
17
18
5
6
4
3
2
3
1
1
47
40
22
13
13
7
8
4
5
2
2
1
1
47
47
39
39
20
20
14
14
7
3
4
1
2
1
1
46
40
27
28
21
22
8
7
4
3
2
3
1
3
46
45
39
23
1...

output:

? 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 623 queries.

Test #20:

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

input:

200
1
1
0
64
64
49
49
32
32
17
17
10
11
3
3
1
2
1
1
1
1
64
50
30
31
16
17
11
11
7
8
2
2
1
1
64
63
48
32
17
11
4
1
1
1
2
63
48
34
16
16
9
11
4
6
1
3
1
1
1
1
62
61
49
48
33
15
10
5
2
0
1
1
60
47
31
18
12
11
7
6
3
2
1
3
59
58
47
32
18
11
5
6
1
2
1
1
59
55
54
28
27
14
13
7
6
4
3
2
1
1
1
59
58
48
48
31
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 811 queries.

Test #21:

score: 0
Accepted
time: 76ms
memory: 8380kb

input:

200
1
3
0
65
65
61
62
39
40
20
23
10
13
4
7
3
4
1
3
66
64
43
17
20
15
17
8
11
3
6
2
4
1
4
67
67
64
42
24
12
6
8
2
6
2
6
1
1
67
65
35
35
20
20
8
9
8
8
3
4
2
3
1
1
68
67
64
63
41
21
13
5
3
1
2
66
63
43
19
17
10
5
4
1
1
67
66
64
36
35
21
22
8
7
3
4
1
2
2
3
1
3
65
63
41
23
12
9
5
3
1
1
66
65
62
63
31
30...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1828 queries.

Test #22:

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

input:

200
1
3
0
72
71
64
64
37
37
18
19
9
10
4
7
1
4
1
4
1
1
72
60
59
45
45
23
24
12
13
7
8
4
5
3
3
1
1
70
69
65
39
38
29
29
16
17
7
8
3
3
1
4
69
65
39
23
12
16
6
9
3
7
1
4
1
1
70
70
64
64
40
24
25
14
14
8
8
3
4
3
3
1
1
71
59
60
37
38
20
21
8
9
5
4
1
2
1
0
1
2
71
70
66
37
37
28
28
12
14
9
11
3
5
5
1
3
69
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 175 queries.

Test #23:

score: 0
Accepted
time: 81ms
memory: 9668kb

input:

200
1
3
0
69
69
62
65
36
39
22
22
12
14
4
7
3
6
2
4
1
1
68
61
34
34
19
20
11
12
5
6
2
3
3
3
1
2
67
68
62
36
28
30
11
13
5
6
2
4
1
2
1
1
67
62
34
19
7
8
6
7
1
2
4
4
1
3
67
66
61
61
35
20
10
7
3
4
1
1
66
62
34
34
18
18
11
12
6
6
2
3
2
2
1
5
66
67
65
40
32
16
21
10
14
2
6
1
1
67
66
35
21
21
9
10
8
8
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2094 queries.

Test #24:

score: 0
Accepted
time: 87ms
memory: 11156kb

input:

200
1
3
0
75
74
76
76
52
54
26
29
16
18
6
9
4
7
3
5
1
2
75
78
52
54
19
21
17
18
9
11
4
5
1
3
76
75
76
55
29
21
10
12
4
6
1
3
74
76
55
29
20
9
6
1
1
75
76
82
83
47
46
30
31
18
17
9
10
2
1
1
4
74
77
76
55
28
14
18
6
8
2
6
2
6
1
4
75
74
75
55
32
21
10
7
1
4
74
75
58
31
17
6
9
1
5
3
6
1
3
75
76
75
76
53...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1851 queries.

Test #25:

score: 0
Accepted
time: 95ms
memory: 11964kb

input:

200
1
5
0
82
83
99
100
79
82
42
45
26
29
16
19
6
10
1
5
82
100
83
49
34
6
11
4
9
6
10
1
6
83
84
101
85
51
33
23
14
1
2
83
100
84
53
27
27
13
13
5
7
5
7
1
5
84
83
99
100
85
53
36
27
18
1
6
83
100
86
58
42
12
10
15
1
2
84
83
100
86
60
28
14
7
7
1
2
84
101
87
59
37
28
20
6
7
1
5
85
84
102
102
87
89
57
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1765 queries.

Test #26:

score: 0
Accepted
time: 92ms
memory: 11912kb

input:

200
1
5
0
90
90
98
100
71
74
42
47
27
30
18
22
5
10
7
11
1
3
90
100
76
44
25
27
13
15
2
5
9
11
1
4
90
89
100
78
47
30
18
6
15
1
4
88
101
79
49
32
21
6
14
1
5
89
88
99
100
81
52
35
24
7
18
1
9
87
101
82
53
40
29
11
23
1
6
87
86
101
84
57
45
34
8
28
1
7
86
104
88
63
52
9
16
5
12
5
11
1
4
87
86
103
103...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1747 queries.

Test #27:

score: 0
Accepted
time: 81ms
memory: 9632kb

input:

200
1
6
0
90
89
93
93
63
65
33
37
19
23
8
14
1
7
5
9
1
2
88
93
66
39
17
19
12
14
7
9
2
4
1
6
89
88
95
70
42
28
13
4
10
3
8
1
3
88
97
73
38
40
24
27
8
10
3
6
4
7
1
1
88
87
95
94
71
41
19
20
12
11
5
6
5
6
1
4
87
96
73
45
31
17
5
12
1
1
87
86
95
72
46
16
5
6
5
6
3
4
1
2
85
95
72
45
32
14
6
9
1
3
86
86
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1531 queries.

Test #28:

score: 0
Accepted
time: 101ms
memory: 12236kb

input:

200
1
8
0
90
89
109
109
80
83
51
54
30
33
15
21
6
14
1
9
1
5
88
111
86
57
36
24
9
1
5
89
89
113
90
62
28
32
19
24
7
11
1
6
88
114
91
61
40
29
14
1
6
89
88
113
112
92
64
44
33
20
7
1
7
87
111
93
65
45
37
21
8
1
5
87
86
112
95
68
49
42
4
9
8
12
1
2
86
112
95
69
50
38
15
1
5
87
86
110
109
95
97
67
71
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1748 queries.

Test #29:

score: 0
Accepted
time: 95ms
memory: 12136kb

input:

200
1
5
0
94
93
89
90
74
77
47
51
23
28
7
12
9
14
4
8
1
4
92
89
80
55
24
27
13
16
2
6
4
8
1
5
92
91
90
81
53
28
12
14
10
1
5
90
90
83
56
28
12
12
1
4
91
90
91
91
83
58
25
17
19
7
11
4
8
1
3
89
91
85
61
29
18
5
6
1
5
88
87
91
86
59
28
22
10
1
5
87
92
89
63
33
12
16
1
2
86
85
91
90
86
86
57
57
26
26
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1752 queries.

Test #30:

score: 0
Accepted
time: 65ms
memory: 8608kb

input:

200
1
1
0
69
70
57
58
40
41
20
20
11
12
5
5
2
2
1
3
69
59
59
32
33
18
20
10
13
4
6
1
4
1
3
1
1
69
69
59
33
21
10
11
5
6
2
2
1
3
72
57
60
39
42
21
20
13
16
7
8
3
5
1
1
70
71
58
58
35
36
17
18
13
13
5
6
2
2
1
2
71
58
59
35
25
27
10
12
7
9
1
3
2
4
1
3
72
73
61
36
28
13
10
4
5
1
3
73
62
36
28
13
10
4
3
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1869 queries.

Test #31:

score: 0
Accepted
time: 84ms
memory: 9724kb

input:

200
1
3
0
75
74
54
55
36
39
24
25
13
14
4
7
4
7
3
6
1
3
73
55
37
19
21
9
12
6
8
1
4
3
6
1
3
74
73
55
37
24
13
13
6
7
1
2
1
2
72
57
39
41
25
27
11
11
6
6
2
2
1
3
71
71
54
56
39
23
11
4
7
3
6
1
3
1
2
70
55
40
25
14
8
4
2
4
1
2
70
69
54
41
25
16
4
6
2
3
1
2
68
54
43
27
10
12
5
7
1
3
1
1
1
1
69
68
52
51...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2068 queries.

Test #32:

score: 0
Accepted
time: 89ms
memory: 9756kb

input:

200
1
1
0
63
64
63
63
41
42
19
19
11
11
3
4
4
4
1
4
63
55
58
39
43
20
23
11
14
5
8
1
5
2
5
1
1
63
63
58
40
23
14
9
2
3
1
2
1
1
62
58
39
24
25
13
14
5
5
1
1
1
2
63
63
58
60
39
41
19
21
11
13
6
6
2
4
2
4
1
2
63
60
40
20
22
10
11
5
6
2
4
1
2
1
3
63
63
60
41
26
13
16
5
8
4
7
2
5
1
1
62
59
40
27
12
7
6
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2073 queries.

Test #33:

score: 0
Accepted
time: 91ms
memory: 9784kb

input:

200
1
1
0
72
72
60
61
36
36
21
21
11
11
2
2
1
2
2
2
1
4
74
64
38
24
14
6
2
6
3
6
1
2
75
75
60
43
43
26
28
10
10
7
7
3
5
3
3
1
2
75
61
44
27
12
14
8
9
3
4
1
1
75
75
58
59
39
39
27
27
14
15
8
8
4
5
2
2
1
2
76
59
45
28
13
5
7
3
4
1
2
77
77
59
47
17
17
8
10
5
5
1
3
2
3
1
1
78
63
62
42
41
25
24
15
14
6
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2087 queries.

Test #34:

score: 0
Accepted
time: 66ms
memory: 8984kb

input:

200
1
2
0
67
67
68
68
39
39
24
24
12
14
7
7
3
5
3
3
1
3
66
68
41
26
15
10
1
4
1
4
1
2
67
66
68
41
26
12
5
7
2
4
2
4
1
1
66
69
36
37
22
23
12
12
6
7
1
2
2
3
1
1
67
67
67
68
34
34
15
15
9
9
3
4
2
3
3
3
1
1
68
66
66
40
40
26
27
13
13
5
6
2
3
2
2
1
1
67
67
67
42
26
26
14
14
7
8
3
4
3
3
1
3
66
67
41
26
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1928 queries.

Test #35:

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

input:

200
1
2
0
7
9
13
15
13
15
10
12
9
11
4
3
3
3
1
2
9
14
16
15
17
11
13
6
8
4
3
2
4
3
1
1
7
8
13
14
15
16
12
13
6
7
6
5
2
3
1
1
1
8
14
16
17
12
13
7
8
5
6
2
2
3
1
3
6
9
13
16
16
19
14
17
8
11
4
7
3
2
2
1
2
8
14
16
18
20
13
15
7
9
5
7
4
6
2
1
2
4
6
12
14
18
20
13
15
7
9
6
8
4
6
2
2
6
14
20
15
9
8
2
4
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 127 queries.

Test #36:

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

input:

200
1
1
0
1
2
2
3
10
11
8
9
5
6
4
5
2
3
2
2
1
2
3
2
4
11
13
7
9
5
7
4
6
3
5
2
3
2
1
3
2
4
11
13
6
8
6
8
3
5
4
6
2
3
2
4
5
10
13
7
10
5
8
4
7
3
6
3
5
3
1
4
2
5
10
12
4
7
6
8
4
7
3
5
3
6
2
7
12
9
4
9
7
5
4
9
2
6
1
3
1
4
2
5
11
11
4
7
6
7
4
7
3
6
7
1
2
3
4
11
6
7
6
5
7
1
3
1
4
3
6
11
12
5
8
10
11
3
6
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 710 queries.

Test #37:

score: 0
Accepted
time: 89ms
memory: 9308kb

input:

200
1
2
0
71
71
60
60
42
43
23
24
12
13
6
8
2
3
1
2
71
60
43
24
13
8
5
2
4
1
2
70
71
61
44
26
12
13
6
7
2
3
1
2
70
60
46
20
19
10
11
6
7
2
4
2
3
1
2
71
70
58
60
39
38
22
22
12
14
6
6
2
4
2
2
1
2
70
58
44
24
13
6
2
4
2
2
1
2
71
71
58
44
24
13
8
5
4
1
2
71
58
46
19
11
9
2
2
1
2
72
73
57
59
38
39
24
25...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #38:

score: 0
Accepted
time: 88ms
memory: 9284kb

input:

200
1
2
0
71
71
60
60
42
43
23
24
12
13
6
8
2
3
1
2
71
60
43
24
13
8
5
2
4
1
2
70
71
61
44
26
12
13
6
7
2
3
1
2
70
60
46
20
19
10
11
6
7
2
4
2
3
1
2
71
70
58
60
39
38
22
22
12
14
6
6
2
4
2
2
1
2
70
58
44
24
13
6
2
4
2
2
1
2
71
71
58
44
24
13
8
5
4
1
2
71
58
46
19
11
9
2
2
1
2
72
73
57
59
38
39
24
25...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2168 queries.

Test #39:

score: 0
Accepted
time: 67ms
memory: 9052kb

input:

200
1
2
0
72
72
54
55
35
36
17
19
10
11
8
9
2
4
3
4
1
1
71
56
42
42
20
20
7
7
4
5
1
1
1
2
71
71
57
40
41
21
8
5
2
3
1
2
71
57
43
19
21
11
11
5
7
2
2
1
1
71
70
55
54
35
16
10
9
6
5
3
2
1
2
69
54
35
16
9
7
1
3
1
3
1
1
69
69
54
36
19
20
6
7
6
6
2
3
2
3
1
2
69
56
40
41
21
23
11
13
4
5
1
3
1
3
1
3
70
70
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1948 queries.

Test #40:

score: 0
Accepted
time: 82ms
memory: 9776kb

input:

200
1
4
0
63
63
62
64
39
41
21
25
9
11
6
10
1
5
1
3
1
2
62
63
42
22
13
14
5
6
2
3
1
4
62
62
63
43
25
17
9
7
1
4
1
2
64
65
64
38
40
22
24
9
11
4
4
2
2
1
2
61
61
62
62
43
27
11
6
1
1
1
2
60
62
44
26
18
10
4
1
1
61
61
62
45
26
27
13
13
6
7
3
3
1
2
60
64
37
38
18
19
12
13
7
8
1
2
1
1
61
60
63
62
42
41
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2054 queries.

Test #41:

score: 0
Accepted
time: 69ms
memory: 9812kb

input:

200
1
3
0
77
77
73
74
44
45
22
23
15
18
4
7
2
3
1
1
76
73
44
22
16
5
4
2
1
1
2
77
77
75
38
38
27
29
8
8
4
4
1
1
1
1
77
73
44
23
13
14
6
6
1
2
2
2
1
4
76
76
73
74
45
24
19
6
2
6
1
5
1
2
77
75
46
25
17
8
4
1
1
77
76
75
47
23
23
10
10
5
6
1
2
3
4
1
2
75
76
47
27
15
7
3
4
1
2
74
74
75
75
47
47
24
24
12
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2109 queries.

Test #42:

score: 0
Accepted
time: 94ms
memory: 9876kb

input:

200
1
2
0
62
61
54
56
33
32
14
16
7
8
4
5
1
3
1
3
1
1
60
53
40
40
25
25
14
14
9
10
1
1
1
3
60
60
55
42
28
13
16
4
7
5
7
1
3
62
58
31
34
21
23
10
12
4
6
2
5
1
4
1
1
63
63
55
55
42
26
14
4
2
2
1
3
65
58
31
34
24
27
8
11
6
9
8
10
4
7
1
1
64
63
56
32
24
13
13
5
6
3
4
3
4
1
2
62
55
44
20
22
8
8
3
3
1
1
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2038 queries.

Test #43:

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

input:

200
1
2
0
77
77
67
69
40
40
22
22
14
14
5
5
2
4
2
4
1
2
76
67
40
41
22
24
10
11
8
10
2
3
1
1
77
76
68
38
39
16
15
10
10
5
5
2
2
1
2
77
68
42
23
10
12
6
7
2
4
3
4
1
2
78
77
68
68
42
23
10
3
5
3
5
2
2
1
3
79
70
44
26
14
8
10
3
5
1
2
80
79
71
46
21
22
8
10
10
11
3
4
1
1
78
70
43
22
11
8
2
3
3
2
1
2
79
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1527 queries.

Test #44:

score: 0
Accepted
time: 101ms
memory: 12584kb

input:

200
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
199
1
98
1
147
171
183
189
192
194
1
1
97
146
170
182
188
191
193
1
1
98
97
145
169
181
187
190
192
1
1
96
144
168
180
186
189
191
1
1
97
96
145
144
169
168
181
180
187
186
190
189
190
1
1
95
143
167
179
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1732 queries.

Test #45:

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

input:

200
1
1
0
100
99
1
1
1
1
1
1
1
1
1
1
1
1
1
1
98
1
1
1
1
1
1
1
1
99
98
1
1
1
1
1
1
1
1
97
1
1
1
1
1
1
1
1
98
97
1
1
1
1
1
1
1
1
1
96
1
1
1
1
1
1
1
1
97
96
1
1
1
1
1
1
1
1
95
1
1
1
1
1
1
1
1
96
95
1
1
1
1
1
1
1
1
1
1
1
1
1
94
1
1
1
1
1
1
1
1
95
94
1
1
1
1
1
1
1
1
93
1
1
1
1
1
1
0
0

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 129 queries.

Test #46:

score: 0
Accepted
time: 91ms
memory: 10288kb

input:

200
1
1
0
101
100
151
150
176
175
161
160
79
78
44
43
16
15
1
1
99
149
174
159
77
43
16
14
15
1
1
100
99
148
173
158
78
47
48
12
13
15
15
1
1
98
147
172
157
76
42
14
1
1
99
98
148
147
171
157
77
48
13
16
1
1
97
146
170
156
77
46
14
15
26
26
1
1
98
97
145
169
155
77
47
12
1
1
96
144
168
154
77
47
12
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1874 queries.

Test #47:

score: 0
Accepted
time: 82ms
memory: 10488kb

input:

200
1
1
0
101
100
151
150
176
175
157
156
88
87
42
43
19
19
1
1
99
149
174
155
86
43
20
17
17
1
1
100
99
148
173
154
87
31
32
17
17
1
1
98
147
172
153
87
32
17
1
1
99
98
148
147
171
152
87
32
17
1
1
97
146
170
153
33
32
32
31
13
13
1
1
98
97
145
169
151
85
41
15
15
1
1
96
144
168
150
84
40
14
1
1
97...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1902 queries.

Test #48:

score: 0
Accepted
time: 98ms
memory: 9452kb

input:

200
1
2
0
79
79
71
72
35
37
24
25
12
14
6
7
2
3
1
2
78
73
37
26
13
6
8
2
4
2
4
1
2
79
79
75
44
44
22
22
12
14
6
8
2
4
2
2
1
2
80
74
37
27
15
9
2
4
2
4
1
2
81
81
73
73
35
20
22
12
14
6
7
2
4
2
3
1
2
80
75
44
43
22
24
12
13
6
7
2
4
2
3
1
2
81
82
75
44
24
15
6
8
2
4
2
3
1
2
81
72
37
26
14
7
2
3
1
2
80
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2160 queries.

Test #49:

score: 0
Accepted
time: 85ms
memory: 9488kb

input:

200
1
2
0
79
79
72
73
42
43
23
25
10
12
6
8
2
4
2
4
1
2
79
73
43
23
12
14
5
5
2
2
1
2
79
79
75
40
41
23
24
12
14
6
7
2
3
1
2
78
72
45
24
24
12
12
6
8
2
2
1
2
78
78
72
73
45
26
10
12
6
8
2
3
1
2
78
73
45
26
10
4
6
2
2
1
2
79
79
75
41
41
24
24
12
14
7
9
2
4
2
2
1
2
78
74
45
26
11
6
4
2
4
1
2
78
78
74
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2141 queries.

Test #50:

score: 0
Accepted
time: 90ms
memory: 9284kb

input:

200
1
2
0
79
81
64
65
42
44
14
16
12
14
6
7
2
4
2
3
1
2
78
70
72
43
45
24
24
12
14
6
6
2
4
2
2
1
2
77
76
70
39
41
22
22
12
14
4
6
2
4
2
2
1
2
78
64
63
42
43
22
24
12
14
6
7
2
4
2
3
1
2
75
75
70
72
39
39
22
22
12
12
6
8
2
4
2
4
1
2
74
70
39
23
23
12
12
6
8
2
2
1
2
75
76
71
40
25
12
13
6
8
2
4
2
4
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2141 queries.

Test #51:

score: 0
Accepted
time: 83ms
memory: 9396kb

input:

200
1
2
0
76
76
64
65
42
44
21
23
12
14
6
8
4
5
2
4
1
2
77
67
43
44
23
24
12
14
6
7
2
4
2
3
1
2
78
77
65
44
23
14
6
2
4
2
2
1
2
77
65
43
22
23
12
13
6
7
2
3
1
2
78
80
68
67
40
39
23
25
12
12
6
6
2
4
2
4
1
2
77
63
65
41
40
22
22
12
14
7
7
2
4
4
1
2
77
76
63
45
21
12
12
6
6
2
4
2
4
1
2
76
65
42
23
25
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2122 queries.

Test #52:

score: 0
Accepted
time: 88ms
memory: 9096kb

input:

200
1
2
0
75
74
70
70
39
39
24
26
12
14
6
8
2
4
2
4
1
2
73
69
39
24
12
12
6
8
2
4
2
4
1
2
74
75
71
44
45
24
25
12
13
6
8
2
4
2
4
1
2
74
71
47
24
25
12
14
6
8
2
3
1
2
75
75
67
67
41
20
22
12
14
6
6
2
4
2
4
1
2
76
68
41
21
10
11
6
7
2
3
1
2
76
75
70
44
43
24
26
12
12
6
6
2
2
1
2
75
70
45
25
27
12
12
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2162 queries.

Test #53:

score: 0
Accepted
time: 71ms
memory: 9356kb

input:

200
1
2
0
64
64
66
66
41
41
21
21
12
12
6
8
2
4
2
4
1
2
64
66
41
21
14
4
6
2
4
2
2
1
2
65
65
68
40
42
23
25
12
14
6
6
2
4
2
4
1
2
66
68
41
20
22
12
13
6
8
2
4
2
4
1
2
67
67
66
67
43
23
25
12
14
6
7
2
3
1
2
67
69
42
43
19
20
10
12
4
5
2
4
2
4
1
2
68
68
69
43
22
12
14
7
9
2
2
1
1
69
68
69
42
41
23
24
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2126 queries.

Test #54:

score: 0
Accepted
time: 98ms
memory: 9204kb

input:

200
1
2
0
67
66
69
69
40
42
22
22
11
13
6
8
2
4
2
4
1
2
66
69
40
21
23
11
11
6
6
2
2
1
2
66
65
71
35
35
20
20
11
13
6
8
2
4
2
2
1
2
64
68
42
24
12
12
6
6
2
4
2
4
1
2
64
63
68
67
42
21
10
6
6
2
2
1
2
62
69
34
36
24
23
12
13
6
8
2
4
2
3
1
2
62
62
69
36
25
12
12
6
6
2
2
1
2
61
66
40
22
12
13
6
8
2
3
1
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #55:

score: 0
Accepted
time: 77ms
memory: 9504kb

input:

200
1
2
0
69
71
64
66
42
41
24
24
12
12
6
8
2
4
2
4
1
2
70
65
66
36
37
22
24
12
14
6
7
2
4
2
3
1
2
71
70
66
38
24
13
6
8
2
3
1
2
70
66
40
20
22
12
14
6
6
2
2
1
2
71
70
65
65
40
22
12
6
6
2
2
1
2
69
64
37
23
10
12
6
8
2
4
2
3
1
2
67
67
64
39
20
10
10
6
6
2
4
2
4
1
2
67
64
37
25
15
9
2
4
2
2
1
2
68
67...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2160 queries.

Test #56:

score: 0
Accepted
time: 82ms
memory: 9296kb

input:

200
1
2
0
82
84
73
74
45
47
22
24
12
14
6
7
2
4
2
4
1
2
82
69
69
40
41
18
20
10
12
6
7
2
3
1
2
83
82
69
43
20
22
10
12
6
8
4
4
2
4
1
2
81
71
42
44
21
21
12
12
6
8
2
4
2
2
1
2
82
81
68
68
43
20
12
12
6
8
2
4
2
2
1
2
81
70
42
42
21
21
11
13
6
8
2
4
2
2
1
2
82
81
70
42
23
12
14
6
6
2
4
2
4
1
2
80
68
42...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #57:

score: 0
Accepted
time: 84ms
memory: 9192kb

input:

200
1
2
0
70
70
63
65
45
45
21
23
12
14
6
8
4
6
2
2
1
2
72
66
65
37
36
24
25
12
13
6
8
2
4
2
4
1
2
70
70
63
41
42
22
23
12
14
5
7
2
4
2
3
1
2
71
65
43
45
24
25
12
14
6
8
2
3
1
2
72
71
63
63
44
23
25
12
12
6
8
2
4
2
2
1
2
72
64
43
25
12
14
6
7
2
4
2
4
1
2
73
73
64
44
24
13
6
8
2
4
2
4
1
2
72
63
43
23...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2166 queries.

Test #58:

score: 0
Accepted
time: 73ms
memory: 9260kb

input:

200
1
2
0
74
73
62
64
42
44
23
24
12
14
6
7
2
3
1
2
73
62
44
46
23
25
10
12
6
6
2
2
1
2
74
74
62
44
23
23
10
12
7
7
3
3
1
2
75
64
40
41
22
23
11
13
6
7
2
4
2
4
1
2
76
76
62
64
42
44
25
25
12
14
7
7
2
4
2
4
1
2
77
63
46
25
12
8
2
4
2
3
1
2
78
77
62
44
23
10
6
6
2
4
2
2
1
2
77
64
44
26
14
8
4
4
1
2
78...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2152 queries.

Test #59:

score: 0
Accepted
time: 80ms
memory: 9320kb

input:

200
1
2
0
78
78
66
68
40
42
19
21
12
14
6
8
4
6
2
2
1
2
77
65
45
45
23
25
12
14
6
8
2
2
1
2
77
76
65
47
23
23
12
14
6
8
2
4
2
4
1
2
75
64
45
25
14
8
4
2
2
1
2
73
72
62
62
45
23
12
12
6
6
2
4
2
2
1
2
72
64
39
41
19
19
10
10
6
6
2
2
1
2
73
72
62
45
25
14
8
4
2
1
2
73
63
46
24
14
6
8
2
3
1
2
72
71
64
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2162 queries.

Test #60:

score: 0
Accepted
time: 78ms
memory: 9144kb

input:

200
1
2
0
74
76
67
68
38
39
22
23
12
14
6
7
2
4
2
4
1
2
76
66
65
39
39
23
13
6
8
2
4
2
3
1
2
75
75
66
68
43
43
21
23
12
12
6
8
2
4
2
2
1
2
75
68
45
24
26
12
14
6
8
4
4
2
4
1
2
75
74
64
63
38
37
20
19
12
11
6
5
2
2
1
2
75
65
43
44
21
22
12
13
6
8
2
3
1
2
76
75
63
38
21
10
12
6
7
2
4
2
4
1
2
74
62
40
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #61:

score: 0
Accepted
time: 79ms
memory: 9276kb

input:

200
1
2
0
76
75
63
65
41
41
20
22
11
13
6
8
4
6
2
4
1
2
75
64
35
36
20
21
10
11
6
7
2
3
1
2
75
74
66
39
41
20
19
10
12
6
6
2
4
2
2
1
2
73
65
37
22
13
6
7
2
4
2
4
1
2
73
72
66
65
37
24
10
12
6
6
2
2
1
2
71
65
37
22
13
9
2
2
1
2
71
71
67
39
41
21
23
12
12
6
6
2
4
2
4
1
2
71
67
41
21
10
12
6
8
2
4
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2181 queries.

Test #62:

score: 0
Accepted
time: 86ms
memory: 9160kb

input:

200
1
2
0
68
67
62
63
37
39
22
24
11
13
6
8
4
5
2
4
1
2
66
63
37
24
25
12
14
6
8
2
3
1
2
67
66
64
39
23
12
13
6
7
2
4
2
4
1
2
65
65
38
27
12
13
6
7
2
4
2
3
1
2
66
68
53
54
33
35
23
24
12
13
6
8
2
4
2
3
1
2
65
63
62
37
25
14
6
2
4
2
2
1
2
65
65
62
38
27
14
9
2
4
2
3
1
2
64
61
38
27
16
6
6
2
2
1
2
65
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2181 queries.

Test #63:

score: 0
Accepted
time: 89ms
memory: 9236kb

input:

200
1
2
0
73
73
65
66
39
40
24
25
12
13
6
7
2
3
1
2
72
66
42
21
21
12
12
6
6
2
2
1
2
73
72
65
40
25
13
7
3
1
2
71
65
40
27
12
14
6
6
2
2
1
2
72
71
63
63
42
21
13
7
3
1
2
70
65
36
38
20
22
12
12
6
8
2
2
1
2
71
71
63
40
25
13
7
5
2
2
1
2
72
64
42
22
15
6
7
2
4
2
4
1
2
73
72
62
64
36
36
19
21
12
12
6
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2161 queries.

Test #64:

score: 0
Accepted
time: 89ms
memory: 9376kb

input:

200
1
2
0
80
79
66
65
41
41
19
21
12
12
6
8
2
4
2
2
1
2
80
67
39
40
19
21
10
11
6
8
2
3
1
2
81
80
66
42
21
14
6
7
2
4
2
4
1
2
79
66
44
23
23
12
12
6
8
2
2
1
2
80
80
67
69
38
38
20
20
10
10
6
7
2
4
2
4
1
2
80
67
44
24
13
7
2
4
2
4
1
2
80
79
67
44
24
13
9
4
2
4
1
2
78
66
41
21
14
6
4
4
1
2
79
80
64
66...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2168 queries.

Test #65:

score: 0
Accepted
time: 90ms
memory: 9360kb

input:

200
1
2
0
72
71
62
61
39
39
18
20
12
12
6
8
2
4
2
4
1
2
71
63
44
45
21
23
13
14
6
7
2
4
2
3
1
2
72
71
62
40
20
13
8
4
3
1
2
70
63
42
23
25
12
14
6
8
4
5
2
4
1
2
70
69
62
61
40
20
15
6
6
2
4
2
4
1
2
69
62
41
20
14
7
2
4
2
4
1
2
70
69
62
42
20
16
8
2
4
2
3
1
2
71
61
61
43
43
23
25
12
14
6
6
2
4
2
2
1
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #66:

score: 0
Accepted
time: 67ms
memory: 9504kb

input:

200
1
2
0
76
75
68
67
40
42
24
25
12
13
6
8
2
3
1
2
74
67
42
25
13
8
3
1
2
74
74
67
41
21
22
12
13
6
7
2
4
2
4
1
2
73
66
40
22
13
7
2
1
2
73
74
67
68
41
24
12
14
6
8
2
4
2
3
1
2
74
70
37
39
22
22
12
13
6
7
2
4
2
4
1
2
75
76
69
42
23
14
9
2
4
2
3
1
2
75
71
36
20
20
12
13
6
7
2
4
2
4
1
2
75
74
68
68
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2154 queries.

Test #67:

score: 0
Accepted
time: 83ms
memory: 9344kb

input:

200
1
2
0
76
75
64
65
42
43
23
24
12
13
6
7
2
4
2
3
1
2
74
65
45
24
25
12
14
6
7
2
3
1
2
75
74
65
44
26
12
13
6
7
2
4
2
3
1
2
73
67
39
40
20
22
12
14
6
8
2
3
1
2
74
73
65
66
45
26
15
5
7
2
4
2
4
1
2
73
66
45
24
13
9
2
4
2
4
1
2
74
73
68
40
41
20
22
12
14
6
8
2
4
4
1
2
72
68
41
22
12
6
6
2
4
2
2
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2156 queries.

Test #68:

score: 0
Accepted
time: 91ms
memory: 9404kb

input:

200
1
2
0
71
72
66
68
43
45
22
24
12
14
6
7
2
3
1
2
72
68
43
20
20
10
10
4
4
2
2
1
2
73
75
66
68
42
41
23
22
11
12
6
8
2
4
2
4
1
2
72
66
40
40
21
23
8
10
7
9
2
2
1
2
71
71
66
67
41
22
10
12
6
7
2
4
2
4
1
3
70
67
42
25
11
8
2
5
2
5
1
2
70
71
68
43
24
9
4
6
2
3
1
2
71
70
41
43
22
24
10
12
7
7
2
4
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2188 queries.

Test #69:

score: 0
Accepted
time: 83ms
memory: 9232kb

input:

200
1
2
0
79
78
63
65
39
38
21
21
12
14
6
6
2
4
2
2
1
2
77
62
38
38
22
22
12
12
6
6
2
2
1
2
78
77
64
39
41
24
26
11
13
6
7
2
3
1
2
77
62
38
22
14
6
8
2
2
1
2
78
77
61
60
38
22
14
6
2
4
2
4
1
2
76
60
38
24
12
12
6
8
2
2
1
2
74
74
62
39
40
19
21
12
13
6
8
2
4
2
4
1
2
73
62
39
20
10
12
6
7
2
3
1
2
73
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #70:

score: 0
Accepted
time: 87ms
memory: 9412kb

input:

200
1
2
0
72
72
71
71
44
46
21
23
12
14
6
6
2
2
1
2
72
71
46
21
12
14
6
6
2
4
2
2
1
2
73
73
71
44
23
23
12
14
6
6
2
2
1
2
72
72
45
24
14
8
2
3
1
2
73
72
72
72
47
21
12
6
8
2
4
2
2
1
2
71
74
43
42
22
21
11
12
5
7
2
4
2
3
1
2
71
70
71
46
26
12
14
4
5
2
4
2
4
1
2
70
72
48
22
14
7
3
1
2
68
67
73
75
42
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2109 queries.

Test #71:

score: 0
Accepted
time: 83ms
memory: 9428kb

input:

200
1
2
0
71
71
66
67
42
44
23
25
12
13
6
7
2
3
1
2
70
68
43
24
25
12
13
6
7
2
4
2
4
1
2
71
73
67
69
43
44
23
24
12
14
6
7
2
4
2
3
1
2
70
68
44
27
12
14
6
7
2
4
2
4
1
2
71
73
66
65
44
46
20
19
11
10
6
7
2
3
1
2
70
66
65
46
25
15
6
6
2
2
1
2
71
70
65
44
26
15
6
7
2
3
1
2
69
64
46
23
12
14
6
8
2
4
2
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2151 queries.

Test #72:

score: 0
Accepted
time: 92ms
memory: 9268kb

input:

200
1
2
0
75
74
64
63
38
40
22
23
12
14
6
8
2
4
2
4
1
2
74
64
40
24
13
6
8
2
4
2
3
1
2
75
74
64
38
22
22
11
13
6
6
2
2
1
2
73
66
44
45
22
24
11
12
5
6
2
4
2
3
1
2
72
73
64
65
39
24
12
14
6
7
2
4
2
3
1
2
73
66
41
25
14
7
2
4
2
4
1
2
71
70
68
45
44
23
25
12
11
7
6
2
4
4
1
2
69
66
39
22
13
8
2
4
2
4
1
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2137 queries.

Test #73:

score: 0
Accepted
time: 72ms
memory: 9088kb

input:

200
1
2
0
73
72
61
60
36
38
20
21
8
10
6
8
2
3
1
2
71
61
38
22
10
7
2
4
2
3
1
2
70
69
62
38
23
9
6
7
2
4
2
4
1
2
70
64
39
40
24
26
11
12
6
7
2
3
1
2
71
73
68
67
40
39
24
25
12
13
6
8
2
4
2
3
1
2
70
60
59
37
20
22
12
14
6
8
2
4
2
4
1
2
69
70
60
39
24
11
9
5
2
4
1
2
69
59
37
20
10
11
4
6
2
4
2
4
1
2
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2187 queries.

Test #74:

score: 0
Accepted
time: 81ms
memory: 9552kb

input:

200
1
2
0
74
73
61
62
40
42
22
24
12
14
6
7
2
4
2
4
1
2
72
64
39
38
22
21
12
12
6
8
2
4
2
2
1
2
73
74
64
36
38
24
26
11
12
6
7
2
3
1
2
74
62
40
21
23
12
14
6
6
2
4
2
2
1
2
75
74
60
59
42
24
11
6
8
2
4
2
3
1
2
73
58
39
22
12
14
6
7
2
3
1
2
74
76
61
60
39
40
21
23
10
12
4
5
2
3
1
2
75
60
36
38
24
25
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2122 queries.

Test #75:

score: 0
Accepted
time: 67ms
memory: 9476kb

input:

200
1
2
0
74
75
70
71
43
45
23
24
11
13
6
7
2
3
1
2
75
71
45
26
12
14
6
6
2
4
2
2
1
2
76
76
73
37
37
20
20
10
12
6
6
2
2
1
2
78
68
70
38
39
21
23
10
12
6
7
2
3
1
2
77
78
71
73
37
38
20
22
12
13
6
7
2
4
2
4
1
2
77
71
43
21
23
12
14
4
6
2
4
2
2
1
2
77
76
73
38
21
12
14
6
8
2
4
2
4
1
2
77
72
44
22
12
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2160 queries.

Test #76:

score: 0
Accepted
time: 78ms
memory: 9480kb

input:

200
1
2
0
78
77
68
67
41
40
21
22
12
13
6
8
2
4
2
3
1
2
76
67
40
23
15
6
7
2
4
2
3
1
2
76
75
66
42
24
26
11
10
6
8
2
2
1
2
75
67
42
26
12
5
6
1
3
2
4
1
2
74
75
68
69
41
25
13
15
6
7
2
4
2
3
1
2
74
70
43
26
12
7
3
4
1
1
75
74
69
42
23
12
13
6
5
2
3
2
3
1
2
73
70
42
25
14
6
7
2
3
1
2
73
72
69
71
44
44...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2193 queries.

Test #77:

score: 0
Accepted
time: 81ms
memory: 9456kb

input:

200
1
2
0
63
64
66
67
42
43
23
25
12
13
6
7
2
3
1
2
64
69
44
44
24
25
12
14
6
8
2
4
2
4
1
2
63
64
69
44
46
20
22
12
14
6
7
2
4
2
4
1
2
65
69
46
21
12
14
6
7
2
4
2
4
1
2
65
64
65
65
43
23
12
14
6
8
2
2
1
2
64
65
44
24
14
8
4
2
3
1
2
65
67
61
62
41
42
22
23
12
13
6
8
2
3
1
2
66
67
44
46
22
24
12
14
6
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #78:

score: 0
Accepted
time: 75ms
memory: 9308kb

input:

200
1
2
0
66
65
72
72
44
44
24
24
12
14
6
6
2
2
1
2
67
62
62
37
39
19
19
10
10
6
6
2
4
2
2
1
2
63
62
72
46
22
24
12
14
6
8
4
4
2
4
1
2
62
72
44
24
13
6
7
2
4
2
4
1
2
62
61
72
71
43
26
12
12
6
8
2
2
1
2
63
58
58
35
35
21
21
12
12
6
6
2
4
2
2
1
2
62
64
60
60
35
37
20
20
12
12
6
8
4
2
1
1
61
70
44
21
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #79:

score: 0
Accepted
time: 76ms
memory: 9396kb

input:

200
1
2
0
82
81
67
66
37
38
20
22
12
13
6
7
2
3
1
2
80
66
40
24
24
12
12
6
6
2
4
2
4
1
2
81
82
67
39
21
12
13
6
7
2
3
1
2
82
69
41
43
24
24
12
12
6
8
2
4
2
2
1
2
81
80
67
66
38
22
14
9
2
4
2
4
1
2
79
65
40
25
14
6
8
2
4
2
3
1
2
80
79
64
37
21
14
9
4
2
1
2
79
65
38
22
15
9
4
4
1
2
79
78
63
62
36
35
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2137 queries.

Test #80:

score: 0
Accepted
time: 91ms
memory: 9524kb

input:

200
1
2
0
77
76
65
66
39
40
23
25
10
12
5
7
2
3
1
2
76
66
42
22
24
12
12
6
8
2
4
2
4
1
2
74
73
66
41
25
12
6
2
4
2
3
1
2
72
66
41
25
10
6
6
2
2
1
2
70
69
64
65
43
24
14
6
8
2
3
1
2
68
66
43
23
11
13
6
8
2
4
2
3
1
2
69
68
66
43
23
13
8
4
5
1
2
67
67
42
24
12
13
6
8
2
3
1
2
68
68
68
69
40
41
22
23
11
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2129 queries.

Test #81:

score: 0
Accepted
time: 76ms
memory: 9156kb

input:

200
1
2
0
71
72
62
63
43
44
23
25
10
12
6
7
2
4
2
3
1
2
71
62
43
23
12
14
6
8
2
2
1
2
71
72
64
37
39
22
23
12
14
6
8
2
3
1
2
71
61
42
25
12
6
4
2
1
2
72
71
59
61
37
37
20
20
11
12
5
6
2
4
2
3
1
2
70
60
44
20
21
10
12
6
8
2
3
1
2
68
68
62
39
22
22
11
13
6
6
2
4
2
4
1
2
67
59
43
25
12
8
2
4
2
4
1
2
67...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2180 queries.

Test #82:

score: 0
Accepted
time: 77ms
memory: 9236kb

input:

200
1
2
0
74
74
57
59
41
41
24
24
12
12
6
8
2
4
2
4
1
2
73
57
41
41
23
25
12
14
6
8
2
4
2
4
1
2
73
72
57
41
25
14
8
4
2
1
2
72
57
43
23
25
12
12
6
6
2
2
1
2
72
72
55
57
41
42
23
24
12
14
6
7
2
4
2
4
1
2
71
55
41
25
14
8
4
4
1
2
71
73
56
55
34
34
19
19
8
9
6
7
2
4
2
4
1
2
72
56
42
25
14
7
2
4
2
4
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #83:

score: 0
Accepted
time: 63ms
memory: 9368kb

input:

200
1
2
0
83
82
66
67
42
43
24
25
12
14
6
8
2
4
2
4
1
2
81
67
45
22
24
8
10
6
8
4
6
2
4
1
2
82
82
69
35
37
20
20
10
10
4
4
2
4
2
2
1
2
81
67
45
24
10
6
2
2
1
2
82
81
65
65
43
25
14
8
4
2
1
2
82
66
45
23
12
13
6
8
2
4
2
4
1
2
83
82
68
34
36
20
22
10
12
6
6
2
4
2
2
1
2
81
67
45
24
15
6
7
2
4
2
4
1
2
8...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #84:

score: 0
Accepted
time: 78ms
memory: 9620kb

input:

200
1
2
0
72
72
75
75
39
41
22
24
12
14
6
8
4
6
2
4
1
2
73
76
40
21
22
11
13
6
7
2
4
2
3
1
2
72
72
76
40
24
10
10
4
4
2
3
1
2
71
76
40
23
13
9
2
4
2
3
1
2
72
72
74
75
42
23
12
14
6
8
2
4
2
4
1
2
72
76
41
25
12
6
8
2
4
2
4
1
2
73
72
77
42
25
11
6
2
4
2
4
1
2
71
76
43
24
12
5
6
1
3
2
3
1
2
72
71
76
76...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2118 queries.

Test #85:

score: 0
Accepted
time: 80ms
memory: 9156kb

input:

200
1
2
0
74
73
62
62
38
39
21
23
12
13
6
8
2
3
1
2
73
64
44
44
24
26
12
12
6
8
2
2
1
2
74
74
62
41
22
24
10
10
4
4
2
4
2
3
1
2
73
62
39
21
12
14
6
8
2
4
2
2
1
2
71
72
63
65
45
46
24
25
12
14
6
7
2
3
1
2
72
64
41
23
12
13
6
7
2
3
1
2
71
72
66
48
21
22
11
13
6
8
2
4
2
3
1
2
71
66
48
21
12
5
7
2
3
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2184 queries.

Test #86:

score: 0
Accepted
time: 71ms
memory: 9132kb

input:

200
1
2
0
73
72
66
68
42
43
20
21
12
13
6
8
2
4
2
4
1
2
73
67
38
40
22
23
12
14
5
6
1
3
2
3
1
2
73
72
66
37
20
22
12
12
6
8
2
4
2
4
1
2
72
68
43
43
21
14
8
3
1
2
72
72
65
66
39
25
12
14
6
8
2
3
1
2
72
66
39
23
12
6
8
2
4
2
2
1
2
73
72
66
38
21
12
13
6
8
2
4
2
3
1
2
74
72
73
41
43
21
22
12
13
6
8
2
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2155 queries.

Test #87:

score: 0
Accepted
time: 66ms
memory: 9364kb

input:

200
1
2
0
77
78
59
61
40
41
20
21
12
14
6
7
2
4
2
4
1
2
78
59
39
40
23
24
12
13
6
8
2
4
2
4
1
2
76
77
60
42
20
22
10
11
5
6
2
4
2
4
1
2
76
60
41
25
14
7
2
3
1
2
76
75
59
59
43
22
13
5
7
2
4
2
4
1
2
75
59
43
22
11
6
4
4
1
2
74
74
59
41
27
10
12
6
8
2
4
2
2
1
2
73
61
40
39
21
21
12
12
6
6
2
4
2
4
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2128 queries.

Test #88:

score: 0
Accepted
time: 85ms
memory: 9284kb

input:

200
1
2
0
83
83
69
69
39
41
24
26
11
11
6
8
2
4
2
2
1
2
82
69
41
26
13
5
7
4
6
2
2
1
2
80
79
69
39
19
19
8
10
6
8
2
4
2
4
1
2
78
69
40
20
9
5
7
2
4
2
3
1
2
76
76
69
69
40
22
12
14
6
6
2
2
1
2
75
68
39
21
10
6
2
4
2
4
1
2
76
76
68
41
24
12
12
6
8
2
2
1
2
75
67
41
23
11
8
2
1
2
74
73
65
65
37
37
19
21...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2138 queries.

Test #89:

score: 0
Accepted
time: 88ms
memory: 9292kb

input:

200
1
2
0
66
65
54
56
39
41
22
21
10
9
6
5
2
3
1
2
65
54
39
39
23
25
10
12
6
8
2
2
1
2
66
65
54
39
25
12
8
2
1
2
66
55
41
19
20
12
13
6
7
2
3
1
2
66
65
54
53
41
20
15
4
4
2
4
2
3
1
2
65
53
39
25
10
6
8
2
2
1
2
65
66
55
38
39
24
26
12
14
6
7
2
3
1
2
66
55
39
26
14
9
2
4
1
1
1
2
64
66
67
66
39
41
24
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2133 queries.

Test #90:

score: 0
Accepted
time: 81ms
memory: 9364kb

input:

200
1
2
0
71
71
67
67
44
46
23
25
9
11
6
6
2
2
1
2
71
69
45
45
24
26
12
12
6
6
2
2
1
2
72
72
67
44
24
26
10
10
4
4
2
2
1
2
71
68
46
25
11
8
4
5
2
4
1
2
71
72
66
68
41
42
22
24
12
14
6
7
2
3
1
2
71
68
42
22
12
14
6
8
2
4
2
4
1
2
72
71
65
46
22
12
13
6
8
2
3
1
2
71
67
44
23
23
12
14
6
6
2
4
2
2
1
2
72...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2112 queries.

Test #91:

score: 0
Accepted
time: 87ms
memory: 9396kb

input:

200
1
2
0
83
82
69
69
38
38
23
25
12
14
4
6
2
4
2
2
1
2
81
69
38
23
12
12
6
6
2
4
2
2
1
2
80
79
70
40
23
24
12
13
6
8
2
4
2
4
1
2
80
71
39
24
13
7
4
4
1
2
81
80
69
69
39
26
14
6
4
4
1
2
79
68
39
24
13
7
2
1
2
79
79
69
40
25
14
8
4
4
1
2
78
69
41
27
14
6
3
1
2
79
78
70
70
39
41
24
26
11
13
6
8
2
4
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2128 queries.

Test #92:

score: 0
Accepted
time: 80ms
memory: 9316kb

input:

200
1
2
0
78
78
70
71
40
42
22
24
12
14
6
8
4
5
2
3
1
2
80
74
75
42
44
20
21
12
13
6
7
2
3
1
2
79
79
72
42
24
13
6
7
2
4
2
4
1
2
78
72
42
24
15
8
7
2
2
1
2
76
75
70
70
42
22
12
14
6
8
2
2
1
2
74
70
42
22
14
6
2
4
2
2
1
2
74
74
70
40
21
21
12
14
6
6
2
4
2
4
1
2
75
72
40
41
23
24
12
13
6
8
2
4
2
3
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2141 queries.

Test #93:

score: 0
Accepted
time: 87ms
memory: 9328kb

input:

200
1
2
0
73
72
64
64
39
39
20
22
11
13
6
8
2
4
2
4
1
2
72
64
39
20
12
14
6
6
2
4
2
4
1
2
73
72
65
40
22
13
7
2
3
1
2
71
65
40
20
12
6
6
2
2
1
2
71
70
66
67
41
21
13
8
2
4
2
3
1
2
71
69
36
37
20
22
10
11
6
8
2
3
1
2
72
71
66
41
23
13
8
4
1
2
70
66
42
23
12
6
7
2
4
2
3
1
2
71
70
66
68
38
40
21
23
11
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2136 queries.

Test #94:

score: 0
Accepted
time: 75ms
memory: 9068kb

input:

200
1
2
0
78
78
66
66
34
36
24
26
11
11
6
6
2
2
1
2
78
66
36
24
12
12
6
8
2
4
2
4
1
2
79
79
68
41
41
23
25
12
12
6
8
2
2
1
2
80
68
42
24
11
13
6
8
2
3
1
2
81
80
64
66
44
46
23
24
12
13
6
8
2
4
2
4
1
2
80
66
44
24
24
11
11
6
6
2
2
1
2
79
78
63
34
21
23
12
12
6
8
2
4
2
4
1
2
77
63
36
26
13
6
8
2
4
2
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2219 queries.

Test #95:

score: 0
Accepted
time: 81ms
memory: 9252kb

input:

200
1
2
0
85
85
63
64
42
44
19
21
12
14
6
7
2
4
2
4
1
2
84
64
42
22
24
10
10
6
8
2
2
1
2
83
82
64
44
21
14
7
2
1
2
81
64
42
24
10
6
2
4
2
2
1
2
81
80
64
63
43
23
11
12
5
7
2
4
2
3
1
2
79
63
45
19
11
11
6
8
2
2
1
2
78
78
63
43
25
12
6
8
2
4
2
2
1
2
78
65
37
37
23
23
12
14
6
6
2
4
2
4
1
2
78
78
63
63
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2137 queries.

Test #96:

score: 0
Accepted
time: 77ms
memory: 9504kb

input:

200
1
2
0
75
74
66
65
35
37
24
23
12
12
6
8
2
2
1
2
73
64
34
20
20
12
14
6
8
2
4
2
2
1
2
71
71
65
36
24
13
7
2
3
1
2
73
58
59
34
35
23
24
12
13
6
7
2
3
1
2
72
72
66
66
36
26
12
12
6
8
2
2
1
2
74
61
60
35
34
25
25
13
15
6
6
2
4
2
2
1
2
72
72
66
36
24
15
6
6
2
4
2
4
1
2
71
65
35
21
13
6
8
2
4
2
4
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #97:

score: 0
Accepted
time: 66ms
memory: 9272kb

input:

200
1
2
0
76
75
57
59
44
45
24
25
12
14
6
7
2
4
2
4
1
2
77
65
64
38
37
21
22
9
11
6
8
2
4
2
3
1
2
76
75
57
37
37
22
22
10
12
6
6
2
2
1
2
75
57
39
23
25
10
12
6
6
2
4
2
4
1
2
76
75
55
56
38
23
11
6
7
2
4
2
4
1
2
74
55
37
23
13
6
4
2
2
1
2
73
72
56
38
24
13
8
2
4
2
3
1
2
73
58
44
45
25
26
12
14
6
8
3
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #98:

score: 0
Accepted
time: 90ms
memory: 12576kb

input:

200
1
21
0
101
100
151
150
169
171
140
144
82
95
45
62
14
35
17
37
1
27
99
149
171
151
109
79
38
1
32
100
99
148
170
156
120
93
60
1
16
98
147
169
156
126
100
70
1
22
99
98
148
147
168
162
134
110
84
1
23
97
146
167
163
141
118
94
1
21
98
97
145
166
164
144
123
99
1
19
96
144
165
164
148
128
104
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1733 queries.

Test #99:

score: 0
Accepted
time: 103ms
memory: 12776kb

input:

200
1
78
0
101
100
151
150
176
175
188
187
188
189
166
180
96
143
1
97
99
149
174
186
189
186
168
1
94
100
99
148
173
185
189
189
181
1
85
98
147
172
184
188
189
187
1
88
99
98
148
147
171
183
188
190
190
1
86
97
146
170
182
187
189
189
1
97
98
97
145
169
181
187
190
191
1
100
96
144
168
180
186
189...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1732 queries.

Test #100:

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

input:

200
1
99
0
1
100
150
149
175
174
188
187
194
193
197
196
99
198
99
98
1
99
100
150
149
175
174
186
192
195
198
97
1
99
2
101
149
148
174
173
186
185
192
191
195
194
99
198
198
1
99
101
147
172
184
190
193
198
198
1
99
3
102
147
146
172
171
184
183
190
189
97
196
95
94
1
99
102
147
146
170
182
188
19...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1302 queries.

Test #101:

score: 0
Accepted
time: 48ms
memory: 7040kb

input:

200
1
99
0
1
100
150
149
175
174
188
187
194
193
197
196
99
198
99
98
1
99
100
150
149
175
174
186
192
195
198
97
1
99
2
101
149
148
174
173
186
185
192
191
195
194
99
198
198
1
99
101
147
172
184
190
193
198
198
1
99
3
102
147
146
172
171
184
183
190
189
97
196
95
94
1
99
102
147
146
170
182
188
19...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1302 queries.

Test #102:

score: 0
Accepted
time: 108ms
memory: 12584kb

input:

200
1
100
0
2
100
52
150
77
175
89
187
95
193
98
196
100
198
1
99
99
149
174
186
192
195
197
1
99
100
99
148
173
185
191
194
196
1
99
98
147
172
184
190
193
195
1
99
99
98
148
147
171
183
189
192
194
1
99
97
146
170
182
188
191
193
1
99
98
97
145
169
181
187
190
192
1
99
96
144
168
180
186
189
191
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1732 queries.

Test #103:

score: 0
Accepted
time: 67ms
memory: 9188kb

input:

200
1
2
0
66
65
68
67
43
42
23
24
12
14
6
8
2
4
2
3
1
2
65
68
43
26
12
13
6
8
2
4
2
3
1
2
66
66
70
39
39
22
24
11
13
6
8
2
2
1
2
65
67
42
23
14
8
4
2
1
2
66
65
65
64
41
25
12
8
4
2
1
2
65
66
39
39
22
24
8
10
6
8
2
4
4
1
2
65
64
66
40
23
12
13
6
8
2
4
2
3
1
2
64
64
41
24
13
6
7
2
4
2
4
1
2
64
65
65
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2169 queries.

Test #104:

score: 0
Accepted
time: 88ms
memory: 9200kb

input:

200
1
2
0
83
83
56
58
39
39
22
22
10
10
6
8
2
4
2
2
1
1
84
69
68
38
39
20
21
12
11
6
7
2
1
1
2
84
85
58
37
39
24
26
12
14
6
8
4
5
2
3
1
2
86
58
39
25
12
14
6
8
2
3
1
2
84
83
56
56
37
39
21
23
12
12
6
8
2
4
2
2
1
2
82
56
39
22
11
13
6
8
2
3
1
2
82
82
56
39
24
12
8
4
4
1
2
83
58
37
39
25
26
12
13
6
8
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #105:

score: 0
Accepted
time: 101ms
memory: 9268kb

input:

200
1
2
0
69
71
67
66
39
39
18
19
10
12
6
7
2
4
2
3
1
2
68
68
67
37
37
24
26
9
9
5
5
2
4
2
4
1
2
68
69
68
38
25
12
14
6
8
2
4
2
3
1
2
70
70
40
42
22
23
12
13
6
8
2
4
2
3
1
2
70
71
66
68
42
44
23
25
10
11
6
8
2
4
2
4
1
2
73
68
69
41
42
22
24
12
13
6
7
2
4
2
4
1
2
72
72
68
42
22
24
11
13
6
6
2
4
2
4
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2134 queries.

Test #106:

score: 0
Accepted
time: 80ms
memory: 9208kb

input:

200
1
2
0
73
74
57
58
31
32
19
20
12
13
6
8
2
4
2
3
1
2
75
59
33
22
12
13
6
7
2
3
1
2
76
77
61
38
40
18
19
10
11
4
5
2
3
1
2
77
59
35
21
23
12
14
6
8
4
4
2
2
1
2
77
76
60
61
35
22
11
12
6
8
1
2
1
2
75
62
35
23
13
7
2
3
1
2
75
74
62
35
23
15
6
8
2
4
2
2
1
2
73
62
35
23
15
8
2
1
2
74
73
63
65
40
40
23...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #107:

score: 0
Accepted
time: 82ms
memory: 9256kb

input:

200
1
2
0
70
71
68
70
44
45
23
25
11
12
6
7
2
4
2
4
1
2
70
69
41
42
24
25
12
13
6
8
2
4
2
4
1
2
71
70
71
43
43
23
11
11
5
5
2
4
2
2
1
2
70
71
43
25
12
7
4
4
1
2
70
70
69
69
44
24
24
12
14
6
6
2
2
1
2
69
71
43
42
23
25
12
11
6
8
3
2
1
2
70
69
69
44
26
13
13
6
8
2
2
1
2
69
71
44
23
23
12
14
6
6
2
4
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #108:

score: 0
Accepted
time: 86ms
memory: 9160kb

input:

200
1
2
0
67
69
64
65
41
42
21
23
10
11
6
8
2
4
2
4
1
2
66
69
70
41
42
21
22
11
12
6
7
2
4
2
4
1
2
66
68
65
65
42
42
22
22
12
12
6
8
2
4
2
2
1
2
66
70
42
24
12
12
6
8
2
4
2
4
1
2
65
65
68
68
44
23
25
12
14
5
5
2
2
1
2
66
69
44
25
14
7
2
3
1
2
67
67
71
42
42
22
24
12
12
6
6
2
2
1
2
69
64
64
41
43
22
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2182 queries.

Test #109:

score: 0
Accepted
time: 62ms
memory: 9208kb

input:

200
1
2
0
73
74
63
65
38
40
22
24
12
13
6
7
2
3
1
2
73
62
41
43
20
22
12
14
6
8
4
5
2
4
1
2
74
76
60
60
42
44
24
26
13
14
6
7
2
4
2
4
1
2
73
62
41
22
24
12
14
7
7
2
4
3
5
1
2
74
74
63
65
38
38
24
24
12
14
6
6
2
4
2
4
1
2
73
62
41
22
10
12
6
6
2
4
2
4
1
2
74
73
61
42
23
11
4
6
2
4
2
4
1
2
72
61
42
25...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2193 queries.

Test #110:

score: 0
Accepted
time: 66ms
memory: 9476kb

input:

200
1
2
0
84
83
67
69
45
47
21
22
10
12
6
8
2
4
2
4
1
2
82
66
40
40
20
20
11
13
6
6
2
4
2
2
1
2
83
82
66
42
21
23
10
12
5
7
4
6
2
2
1
2
81
66
40
20
11
5
7
2
4
2
4
1
2
81
80
66
65
39
22
12
12
6
6
2
2
1
2
81
67
41
43
22
23
13
14
7
9
2
4
2
4
1
2
79
79
65
40
21
12
6
2
3
1
2
78
65
42
21
13
15
6
6
2
4
2
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2084 queries.

Test #111:

score: 0
Accepted
time: 79ms
memory: 9284kb

input:

200
1
2
0
79
79
63
63
38
38
23
25
12
14
6
6
2
4
2
4
1
2
80
65
41
43
20
21
12
13
6
7
2
3
1
2
78
77
62
38
25
14
8
2
2
1
2
76
64
40
42
21
23
12
12
6
8
2
4
2
4
1
2
74
73
61
60
37
24
11
12
5
6
1
2
1
2
72
61
39
21
22
12
13
6
8
2
3
1
2
73
72
60
36
24
12
8
2
4
2
4
1
2
71
60
38
24
12
14
6
8
2
4
2
4
1
2
71
70...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2192 queries.

Test #112:

score: 0
Accepted
time: 80ms
memory: 9316kb

input:

200
1
2
0
78
77
69
71
46
47
23
24
12
14
6
8
2
3
1
2
76
68
40
42
24
24
12
12
6
8
2
2
1
3
76
75
71
45
46
25
14
6
8
2
5
2
5
1
1
75
68
41
25
12
13
6
6
2
2
1
2
75
74
68
68
42
26
12
6
8
2
4
2
4
1
2
73
68
40
23
23
11
11
6
8
2
4
2
4
1
2
74
75
69
41
25
12
14
6
7
2
4
2
3
1
2
77
60
61
37
39
24
26
12
13
6
8
2
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2152 queries.

Test #113:

score: 0
Accepted
time: 77ms
memory: 9556kb

input:

200
1
2
0
67
68
69
70
42
43
22
24
12
13
6
8
2
4
2
4
1
2
68
70
45
24
26
12
14
6
6
2
4
2
4
1
2
69
68
70
45
26
12
6
6
2
2
1
2
67
70
43
22
12
14
6
6
2
2
1
2
68
68
70
70
45
24
12
14
6
6
2
2
1
2
68
70
44
24
14
7
2
3
1
2
68
68
70
44
24
14
9
4
2
1
2
68
71
45
24
15
8
5
2
3
1
2
69
69
69
70
45
47
24
25
12
14
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2141 queries.

Test #114:

score: 0
Accepted
time: 62ms
memory: 9212kb

input:

200
1
2
0
66
65
68
69
39
41
21
23
12
13
6
8
2
4
2
3
1
2
64
68
41
23
13
6
2
2
1
2
65
65
69
41
22
12
13
6
7
2
4
2
3
1
2
65
70
40
22
24
12
14
6
8
2
3
1
2
65
65
70
70
40
22
12
13
6
7
2
3
1
2
64
71
41
23
15
6
7
2
4
2
4
1
2
65
65
71
41
23
13
7
5
2
2
1
1
65
72
43
43
23
23
11
11
5
6
2
3
2
2
1
2
65
65
71
71
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #115:

score: 0
Accepted
time: 75ms
memory: 9008kb

input:

200
1
2
0
75
74
63
62
36
38
24
25
12
14
6
7
2
4
2
4
1
2
73
62
38
27
12
13
6
7
2
4
2
4
1
2
72
72
62
38
25
12
6
6
2
4
2
2
1
2
71
64
37
36
21
23
11
11
5
5
2
4
2
2
1
2
72
72
62
62
38
25
14
9
2
4
2
2
1
2
73
63
37
21
23
12
14
6
7
2
3
1
2
73
72
62
39
25
12
6
4
2
1
2
72
62
37
21
11
13
5
7
2
2
1
2
71
71
61
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2199 queries.

Test #116:

score: 0
Accepted
time: 81ms
memory: 9148kb

input:

200
1
2
0
61
60
59
58
36
38
24
25
12
13
6
7
2
4
2
3
1
2
61
60
43
44
22
23
10
12
6
7
2
4
2
3
1
2
62
64
62
61
37
36
22
22
12
14
6
8
2
4
2
4
1
2
61
60
45
44
24
12
9
2
4
2
3
1
2
62
62
58
60
44
44
24
24
10
10
6
7
2
4
2
4
1
2
61
57
37
21
22
11
13
6
7
2
4
2
4
1
2
61
62
58
38
24
12
14
6
7
2
4
2
3
1
2
63
60
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2212 queries.

Test #117:

score: 0
Accepted
time: 93ms
memory: 9380kb

input:

200
1
2
0
79
78
66
68
38
38
20
22
10
10
5
5
2
2
1
2
79
67
43
45
22
24
12
14
6
8
4
6
2
3
1
2
79
78
67
45
24
12
6
6
2
2
1
2
79
69
37
39
22
23
12
14
6
7
2
4
2
3
1
2
80
81
66
68
37
39
23
25
12
14
6
8
4
5
2
3
1
2
82
67
45
23
12
14
6
7
2
4
2
4
1
3
83
82
67
44
22
25
12
15
6
7
2
3
1
2
82
67
45
24
14
9
2
3
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2122 queries.

Test #118:

score: 0
Accepted
time: 90ms
memory: 9392kb

input:

200
1
2
0
80
79
69
68
38
39
22
23
12
13
6
7
2
3
1
2
79
70
45
45
23
25
12
12
6
8
2
4
2
2
1
2
80
79
67
39
25
10
10
4
4
2
2
1
2
78
67
41
23
25
10
12
6
8
4
6
2
4
1
2
79
80
65
66
41
25
11
6
8
2
4
2
4
1
2
79
66
39
25
10
6
2
4
2
4
1
2
79
79
68
43
44
24
25
12
13
6
7
2
3
1
2
78
65
38
24
14
8
4
1
2
77
77
63
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #119:

score: 0
Accepted
time: 78ms
memory: 9204kb

input:

200
1
2
0
78
79
65
67
41
42
23
24
12
13
6
8
2
3
1
2
78
67
42
25
14
8
5
2
4
1
2
79
79
66
44
45
24
26
12
13
6
8
2
4
2
3
1
1
80
67
66
42
41
23
24
11
12
6
5
2
3
2
1
1
2
80
79
64
63
44
24
12
12
6
8
2
4
2
4
1
2
81
65
64
39
39
21
23
9
11
5
5
2
4
4
1
2
79
78
64
46
24
26
12
13
6
7
2
4
2
4
1
2
78
66
44
44
25
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #120:

score: 0
Accepted
time: 78ms
memory: 9340kb

input:

200
1
2
0
74
75
72
74
40
41
24
25
12
13
6
8
2
4
2
3
1
2
75
74
42
26
15
6
7
2
3
1
2
76
75
71
44
46
22
21
12
12
6
6
2
4
2
2
1
2
75
73
40
40
26
13
8
4
3
1
2
75
75
70
71
46
23
12
13
6
8
2
4
2
3
1
2
75
73
42
42
26
26
13
13
6
8
2
4
4
1
2
76
75
73
41
27
15
7
9
2
4
2
4
1
2
74
71
46
21
12
8
2
4
2
2
1
2
75
74...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2091 queries.

Test #121:

score: 0
Accepted
time: 72ms
memory: 9352kb

input:

200
1
2
0
73
72
56
55
38
38
22
24
11
13
6
8
2
4
2
4
1
2
71
54
37
21
12
12
6
8
2
2
1
2
72
73
55
39
23
25
12
14
6
7
2
4
2
3
1
2
73
55
37
23
11
5
5
1
1
1
2
74
73
56
58
42
42
22
22
12
12
6
6
2
4
2
2
1
2
73
57
39
24
11
13
6
7
2
4
2
4
1
2
73
73
59
42
24
12
14
6
6
2
2
1
2
73
57
38
23
13
7
2
4
2
4
1
2
72
72...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2197 queries.

Test #122:

score: 0
Accepted
time: 83ms
memory: 9252kb

input:

200
1
2
0
73
72
64
66
34
35
21
22
12
14
6
7
2
4
2
3
1
2
71
63
41
40
23
25
11
11
5
7
2
2
1
2
71
70
64
42
20
22
12
13
6
7
2
4
2
3
1
2
70
64
42
21
12
14
6
7
2
4
2
3
1
2
69
71
62
63
41
42
22
23
12
13
6
7
2
3
1
2
70
62
63
42
23
15
6
8
2
3
1
2
70
72
62
61
40
39
23
22
13
12
7
6
2
4
2
1
2
69
64
42
22
14
8
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2126 queries.

Test #123:

score: 0
Accepted
time: 72ms
memory: 9040kb

input:

200
1
2
0
70
70
63
63
39
41
22
24
12
14
6
8
4
4
2
4
1
2
69
64
41
23
12
14
6
7
2
4
2
4
1
2
70
70
66
40
42
22
22
12
14
6
6
2
4
2
2
1
2
69
63
41
22
11
6
6
2
2
1
2
69
68
63
63
39
24
24
12
12
6
6
2
4
2
2
1
2
70
65
65
43
43
22
22
11
11
6
6
2
4
2
4
1
2
69
69
65
40
40
20
22
12
12
5
5
2
4
2
4
1
2
69
63
39
24...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #124:

score: 0
Accepted
time: 74ms
memory: 9528kb

input:

200
1
2
0
76
76
65
65
37
39
20
22
12
12
6
8
2
4
2
2
1
2
75
66
38
23
24
13
14
6
7
2
4
2
3
1
2
76
75
65
40
22
11
5
2
2
1
2
76
66
40
21
12
13
6
7
2
4
2
4
1
2
76
75
67
66
38
24
14
9
3
3
1
2
74
66
40
21
15
6
6
2
2
1
2
73
73
66
38
24
16
6
8
2
2
1
2
72
68
38
39
23
25
12
13
6
8
2
3
1
2
70
70
65
66
36
38
23
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2091 queries.

Test #125:

score: 0
Accepted
time: 90ms
memory: 9384kb

input:

200
1
2
0
71
73
66
66
44
46
23
23
11
11
6
6
2
2
1
2
70
67
67
42
42
23
23
10
12
7
9
2
2
1
2
68
68
68
44
22
23
12
13
6
8
2
4
2
4
1
2
69
69
44
24
14
7
2
3
1
2
70
71
67
68
44
26
11
13
6
7
2
3
1
2
70
68
44
26
13
9
2
4
2
2
1
2
71
72
70
43
44
23
25
12
13
6
8
2
4
2
3
1
2
74
67
66
42
42
23
25
10
12
6
6
2
4
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2154 queries.

Test #126:

score: 0
Accepted
time: 78ms
memory: 9128kb

input:

200
1
1
0
74
73
65
66
43
44
19
18
12
11
6
5
2
3
2
1
1
2
73
65
38
40
23
24
12
14
6
7
2
4
2
3
1
2
74
73
64
38
22
22
10
10
6
8
2
2
1
2
74
66
41
42
22
24
12
13
6
7
2
4
2
3
1
2
75
75
64
66
42
42
22
23
11
13
6
7
2
4
2
4
1
2
74
65
40
26
12
13
6
7
2
3
1
2
73
72
64
39
23
12
6
8
2
3
1
2
71
66
42
23
13
9
2
4
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #127:

score: 0
Accepted
time: 83ms
memory: 9252kb

input:

200
1
2
0
80
80
63
63
39
39
20
22
12
12
6
8
2
4
2
4
1
2
79
62
39
22
14
6
6
2
4
2
2
1
2
80
79
61
41
20
20
9
11
6
8
2
4
2
4
1
2
79
61
41
20
11
6
2
2
1
2
78
78
60
60
41
20
11
6
4
2
2
1
2
77
59
41
20
11
8
4
2
1
2
77
76
60
40
21
12
13
6
8
2
4
2
4
1
2
75
62
40
41
21
23
12
14
6
8
2
3
1
2
75
75
60
62
40
40
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2118 queries.

Test #128:

score: 0
Accepted
time: 93ms
memory: 9064kb

input:

200
1
2
0
75
77
70
69
41
42
20
21
8
10
6
8
2
3
1
2
74
66
65
37
37
23
23
11
13
6
6
2
4
2
4
1
2
75
77
68
67
41
40
21
20
8
10
6
8
2
4
2
1
2
77
66
40
22
12
12
6
6
2
4
2
2
1
2
76
76
65
65
39
21
23
11
13
6
8
2
4
2
4
1
2
75
65
39
21
10
10
6
6
2
2
1
1
76
77
63
62
38
37
19
18
11
10
6
7
2
3
2
1
1
2
75
65
37
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2201 queries.

Test #129:

score: 0
Accepted
time: 71ms
memory: 9636kb

input:

200
1
2
0
78
77
69
69
41
41
23
24
12
14
6
8
2
4
3
4
1
2
76
70
43
21
23
10
12
6
7
2
4
2
3
1
2
77
76
70
43
21
12
12
6
6
2
4
2
4
1
2
75
69
40
23
12
6
6
2
4
2
4
1
2
76
75
68
68
42
21
13
8
2
4
2
3
1
2
74
68
40
25
12
14
5
5
2
2
1
2
74
73
69
41
24
14
8
4
5
1
2
74
71
42
44
22
24
12
14
6
8
2
3
1
2
73
72
69
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #130:

score: 0
Accepted
time: 84ms
memory: 9020kb

input:

200
1
2
0
73
72
54
54
37
38
24
25
12
13
6
7
2
4
2
4
1
2
74
71
70
44
44
23
25
12
12
6
8
2
4
2
4
1
2
73
74
55
39
26
15
6
8
2
4
2
4
1
2
73
55
40
28
12
14
6
7
2
3
1
2
74
73
54
54
40
26
14
9
2
4
2
3
1
2
72
54
42
21
22
10
11
6
7
2
4
2
4
1
2
73
73
55
41
27
15
9
4
5
1
2
73
55
41
27
17
8
4
2
1
1
74
73
55
54
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2187 queries.

Test #131:

score: 0
Accepted
time: 66ms
memory: 9368kb

input:

200
1
2
0
73
73
60
62
43
43
21
21
12
13
6
7
2
3
1
2
74
61
39
41
23
24
12
13
6
8
2
3
1
2
73
73
61
41
26
13
13
6
6
2
4
2
2
1
2
74
63
42
43
22
14
9
2
4
2
3
1
2
75
74
61
60
41
23
13
6
2
4
2
2
1
2
74
61
41
24
14
8
5
2
3
1
2
75
74
61
41
24
14
8
5
3
1
2
74
61
39
22
24
12
14
6
6
2
2
1
2
74
73
61
62
39
41
24...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #132:

score: 0
Accepted
time: 65ms
memory: 9292kb

input:

200
1
2
0
74
76
58
57
45
44
22
24
11
10
6
6
2
4
2
4
1
2
76
57
56
42
41
24
9
6
2
1
2
72
72
57
58
41
43
22
24
12
14
6
7
2
4
2
4
1
2
73
59
43
24
14
9
4
5
2
3
1
2
74
76
57
56
38
38
21
21
12
12
6
8
2
2
1
2
73
59
58
40
22
23
10
12
6
8
2
4
2
3
1
2
73
73
60
38
38
20
22
10
12
6
6
2
4
2
2
1
2
72
59
41
25
12
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #133:

score: 0
Accepted
time: 68ms
memory: 9108kb

input:

200
1
2
0
73
75
62
61
36
36
19
21
12
13
6
8
2
3
1
2
73
63
65
40
42
22
24
12
14
6
8
5
7
2
2
1
2
73
72
62
40
40
21
21
12
12
6
8
2
2
1
2
72
64
38
40
21
21
11
13
5
5
2
4
1
1
1
2
71
71
63
65
39
39
19
19
11
11
6
8
2
4
2
4
1
2
70
63
40
21
14
5
5
2
4
2
2
1
2
70
70
65
40
21
11
12
6
8
2
4
2
4
1
2
69
64
42
20
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2188 queries.

Test #134:

score: 0
Accepted
time: 72ms
memory: 9236kb

input:

200
1
2
0
80
79
65
64
42
42
23
25
12
12
6
8
2
2
1
2
81
67
66
40
39
20
20
12
14
6
8
2
2
1
2
80
79
63
41
23
12
14
5
7
2
4
2
4
1
2
78
63
43
23
25
11
11
6
8
2
4
2
4
1
2
79
79
61
63
39
39
23
25
12
14
6
6
2
2
1
2
80
62
43
24
11
12
6
7
2
4
2
3
1
2
79
78
63
43
26
12
7
2
4
2
4
1
2
78
63
43
24
14
6
6
2
2
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #135:

score: 0
Accepted
time: 94ms
memory: 9360kb

input:

200
1
2
0
77
77
63
64
39
40
23
24
12
13
6
7
2
4
2
3
1
2
76
63
42
20
19
10
10
4
6
2
4
2
4
1
2
77
77
65
44
46
23
23
12
14
5
7
2
2
1
2
76
63
40
24
15
6
8
2
2
1
2
76
75
62
64
45
45
24
26
10
12
6
6
2
2
1
2
75
64
47
23
23
12
14
6
8
1
3
2
1
2
76
76
63
41
25
14
8
4
4
1
2
75
62
41
27
9
11
6
6
2
4
2
2
1
2
76
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2161 queries.

Test #136:

score: 0
Accepted
time: 79ms
memory: 9476kb

input:

200
1
2
0
78
79
68
70
42
43
23
24
12
14
6
7
2
4
2
4
1
2
79
69
36
37
22
23
10
11
4
5
2
3
1
2
80
80
70
39
21
23
12
14
6
7
2
4
2
3
1
2
79
70
39
21
12
14
6
6
2
2
1
2
78
77
68
67
36
23
11
7
2
4
2
2
1
2
77
69
39
41
19
21
12
14
5
7
4
6
2
4
1
2
75
76
69
41
21
13
6
7
2
4
2
3
1
2
76
68
38
22
14
7
3
1
2
74
73
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2136 queries.

Test #137:

score: 0
Accepted
time: 88ms
memory: 9244kb

input:

200
1
2
0
75
76
67
69
40
41
20
22
12
14
6
8
4
5
2
4
1
2
75
66
46
47
24
25
12
14
6
8
2
4
2
4
1
2
74
76
62
61
33
32
22
22
11
11
5
5
2
4
2
2
1
2
76
60
31
21
10
4
4
2
1
2
72
71
65
65
47
27
12
14
6
6
2
2
1
2
71
67
41
43
24
24
12
12
6
6
2
2
1
2
70
71
66
48
27
14
7
4
2
3
1
2
71
68
43
24
12
6
2
1
2
72
72
66...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #138:

score: 0
Accepted
time: 78ms
memory: 9220kb

input:

200
1
2
0
64
64
51
53
40
42
24
24
12
14
6
6
2
3
1
2
65
52
41
42
24
26
12
13
6
7
2
3
1
2
66
65
52
42
24
12
14
6
8
2
2
1
2
64
53
43
26
15
6
8
2
3
1
2
65
64
51
51
44
25
13
6
8
2
3
1
2
64
51
44
25
15
8
2
1
2
65
66
53
36
38
25
27
12
13
6
7
2
4
2
3
1
2
65
53
38
25
13
15
7
7
2
2
1
3
66
66
49
49
44
46
23
26...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2178 queries.

Test #139:

score: 0
Accepted
time: 81ms
memory: 9256kb

input:

200
1
2
0
84
85
65
67
43
45
24
26
12
13
6
7
2
4
2
4
1
2
84
66
39
40
23
24
13
15
6
8
2
3
1
2
82
81
67
41
26
11
13
6
8
2
4
2
4
1
2
80
66
40
25
15
8
4
1
2
81
81
64
66
42
44
23
23
11
11
5
7
2
4
2
2
1
2
80
65
41
26
15
7
2
4
2
4
1
2
80
79
65
41
28
13
8
2
1
2
81
64
63
39
39
21
23
12
12
6
6
2
4
2
4
1
2
80
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #140:

score: 0
Accepted
time: 94ms
memory: 9236kb

input:

200
1
2
0
70
70
68
70
42
42
25
27
11
13
6
8
3
3
2
4
1
2
69
69
41
42
25
27
12
14
6
7
2
4
2
4
1
2
70
69
71
40
40
25
12
14
6
6
2
2
1
2
68
71
39
25
12
6
8
2
4
2
4
1
2
68
68
68
68
43
26
12
13
6
7
2
4
2
3
1
2
67
67
44
27
14
8
4
5
1
2
68
70
66
65
39
38
24
24
12
12
6
8
2
4
2
2
1
2
67
66
46
21
20
13
13
8
8
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2134 queries.

Test #141:

score: 0
Accepted
time: 69ms
memory: 9196kb

input:

200
1
2
0
77
77
65
66
39
41
24
25
12
14
6
7
2
4
2
3
1
2
76
68
44
44
25
27
11
11
6
8
2
4
2
2
1
2
76
75
66
39
22
24
12
14
6
7
2
4
2
3
1
2
75
66
39
22
12
14
6
8
2
4
2
4
1
3
75
74
64
67
45
47
25
28
12
15
6
8
2
4
1
2
75
66
48
26
12
13
6
7
2
3
1
1
73
73
64
39
23
13
7
3
3
1
2
74
65
41
27
13
14
7
8
2
3
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2133 queries.

Test #142:

score: 0
Accepted
time: 83ms
memory: 9316kb

input:

200
1
2
0
76
75
67
67
41
43
23
23
11
13
6
8
2
4
2
2
1
2
74
66
40
23
24
12
13
6
8
2
4
2
4
1
2
75
74
66
40
25
14
8
4
4
1
2
73
66
41
27
12
14
6
7
2
3
1
2
74
73
65
64
43
22
10
6
6
2
2
1
2
74
66
36
38
24
26
12
13
6
7
2
4
2
3
1
2
74
75
66
37
21
23
11
12
6
8
2
4
2
4
1
2
75
64
41
25
14
8
4
2
1
2
74
73
62
62...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #143:

score: 0
Accepted
time: 82ms
memory: 9028kb

input:

200
1
2
0
74
74
60
60
39
41
20
20
11
13
6
8
2
4
2
2
1
2
74
62
50
52
24
24
12
14
6
6
2
4
2
2
1
2
75
74
61
41
22
12
13
6
7
2
4
2
3
1
2
73
61
41
20
13
8
4
2
1
2
72
72
59
61
47
49
24
26
13
15
6
6
2
4
2
4
1
2
72
60
40
20
21
10
12
6
8
2
4
2
4
1
2
72
72
62
47
22
22
10
12
6
6
2
2
1
2
74
66
65
44
44
23
25
12...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2211 queries.

Test #144:

score: 0
Accepted
time: 62ms
memory: 9196kb

input:

200
1
2
0
74
74
61
61
39
39
19
21
12
14
6
8
2
2
1
2
74
61
41
20
22
10
12
6
7
2
4
2
4
1
2
75
74
62
41
21
12
13
6
7
2
4
2
3
1
2
74
64
42
42
22
22
12
12
6
8
2
2
1
2
74
74
63
65
42
42
22
24
12
12
6
6
2
4
2
4
1
2
74
63
41
21
13
7
4
5
1
2
74
73
63
40
21
14
7
2
4
2
3
1
2
72
64
41
20
11
12
5
6
2
4
3
5
1
2
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2185 queries.

Test #145:

score: 0
Accepted
time: 84ms
memory: 9288kb

input:

200
1
2
0
66
68
59
58
43
45
20
20
10
11
4
6
2
4
2
3
1
2
67
64
66
43
45
21
22
10
12
6
7
2
4
2
3
1
2
67
68
66
41
43
22
23
11
12
5
6
2
3
1
2
67
64
44
45
22
24
12
14
7
8
2
3
1
1
68
68
65
65
45
23
13
8
4
3
3
1
2
67
67
39
38
22
24
11
10
5
7
2
2
1
2
68
68
65
46
24
13
6
8
2
4
2
4
1
2
68
65
46
24
13
8
2
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2138 queries.

Test #146:

score: 0
Accepted
time: 74ms
memory: 9268kb

input:

200
1
2
0
72
71
65
67
37
37
21
23
10
12
5
7
4
6
2
4
1
2
73
74
73
43
42
23
22
12
12
6
6
2
2
1
2
72
71
65
41
41
23
25
12
14
6
8
2
4
2
2
1
2
70
67
35
35
22
11
12
6
7
2
4
2
3
1
2
71
71
66
66
43
22
22
12
12
6
8
2
4
2
4
1
2
70
68
35
37
20
20
12
14
6
6
2
4
2
4
1
2
71
71
66
43
22
14
6
8
2
4
2
2
1
2
70
67
42...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #147:

score: 0
Accepted
time: 87ms
memory: 9364kb

input:

200
1
3
0
81
81
65
66
43
46
21
24
12
13
6
7
2
5
2
5
1
2
80
67
45
22
12
13
6
8
2
4
2
4
1
2
81
80
67
44
24
26
12
13
6
7
2
4
2
3
1
2
79
68
45
25
12
14
6
8
2
3
1
2
80
79
69
69
45
25
12
6
8
2
2
1
2
79
69
45
27
15
7
7
2
2
1
2
80
79
69
45
25
14
8
3
1
2
78
68
47
24
12
6
3
1
2
79
78
68
67
43
43
23
25
12
12
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2121 queries.

Test #148:

score: 0
Accepted
time: 88ms
memory: 9148kb

input:

200
1
2
0
72
71
62
64
40
39
22
21
10
9
6
6
2
2
1
2
70
61
38
39
22
24
12
13
6
8
2
3
1
2
70
70
61
39
22
11
13
6
6
2
4
2
4
1
2
70
63
39
39
21
9
7
3
1
2
70
69
60
60
39
22
13
8
2
4
1
3
1
2
70
61
40
24
14
8
5
2
4
1
2
69
68
62
41
24
16
6
7
2
4
2
4
1
2
70
65
66
41
42
23
24
12
14
7
8
3
4
1
2
69
68
62
61
39
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2144 queries.

Test #149:

score: 0
Accepted
time: 81ms
memory: 9528kb

input:

200
1
2
0
77
78
71
73
40
41
22
24
12
13
6
8
2
4
2
3
1
2
77
72
42
44
24
25
12
13
6
7
2
3
1
2
77
78
73
43
22
24
12
13
6
8
2
4
2
4
1
2
78
73
45
26
14
8
5
2
3
1
2
78
77
71
70
44
24
14
7
2
4
2
3
1
2
77
72
41
41
21
23
13
13
6
8
2
4
4
1
2
78
77
70
46
26
16
6
6
2
2
1
2
76
69
44
22
12
12
6
8
2
4
2
4
1
2
75
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2144 queries.

Test #150:

score: 0
Accepted
time: 83ms
memory: 9328kb

input:

200
1
2
0
80
79
70
71
41
42
23
25
12
13
6
8
2
3
1
2
78
70
42
25
15
6
8
2
4
2
2
1
2
79
79
72
35
35
18
20
12
14
5
7
2
2
1
1
79
70
42
24
14
6
2
3
2
2
1
2
78
78
70
72
36
36
20
22
12
14
6
8
2
4
2
1
2
77
70
44
22
24
12
12
6
8
2
4
2
2
1
2
78
77
70
42
23
13
13
7
9
2
2
1
2
76
69
42
23
15
6
8
2
4
2
4
1
2
75
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2150 queries.

Test #151:

score: 0
Accepted
time: 79ms
memory: 9088kb

input:

200
1
2
0
72
71
61
63
35
35
23
23
12
14
7
7
2
2
1
2
72
63
36
25
11
13
6
8
4
5
2
4
1
2
70
70
61
39
39
21
23
12
12
6
6
2
2
1
2
69
63
35
35
25
13
6
2
4
2
2
1
3
70
71
59
61
41
24
14
8
5
2
5
1
2
70
61
43
21
21
12
12
6
6
2
4
2
4
1
2
71
71
63
34
36
24
24
12
14
6
6
2
2
1
2
70
61
41
23
16
5
7
2
4
2
4
1
2
70
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #152:

score: 0
Accepted
time: 89ms
memory: 9084kb

input:

200
1
2
0
75
76
69
70
39
40
19
21
12
13
6
8
2
4
2
4
1
2
75
69
42
22
21
11
12
5
7
2
4
2
4
1
2
74
73
69
42
23
10
12
6
8
4
4
2
4
1
2
74
70
42
22
14
6
8
2
3
1
2
74
74
69
70
42
24
12
7
2
4
2
3
1
2
75
72
38
39
20
22
12
14
6
7
2
4
2
4
1
2
76
75
69
39
19
9
9
6
8
2
4
2
2
1
2
76
70
41
23
13
6
2
4
2
3
1
2
76
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2171 queries.

Test #153:

score: 0
Accepted
time: 76ms
memory: 9452kb

input:

200
1
2
0
75
74
61
62
40
42
20
21
10
11
6
7
2
3
1
2
74
62
42
22
12
9
2
4
2
4
1
2
75
75
64
43
45
21
21
12
12
6
8
2
4
2
2
1
2
77
62
62
38
38
20
20
12
14
6
6
2
4
2
2
1
2
75
75
62
64
42
43
23
25
12
14
6
8
2
4
2
4
1
2
75
63
41
24
25
12
13
5
7
2
4
2
4
1
2
75
74
62
40
24
12
7
4
4
1
2
74
62
42
22
14
5
7
2
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2142 queries.

Test #154:

score: 0
Accepted
time: 67ms
memory: 9264kb

input:

200
1
2
0
74
74
70
71
40
42
23
24
12
14
6
8
2
3
1
1
73
71
41
24
13
7
4
2
2
1
2
73
74
72
41
22
23
11
13
6
8
2
4
2
4
1
2
73
71
41
23
13
8
4
4
1
2
73
72
72
72
41
25
12
14
6
6
2
4
2
4
1
2
71
72
43
24
12
6
6
2
4
2
4
1
2
71
71
73
42
24
12
6
8
2
4
2
4
1
2
70
72
42
24
14
6
2
4
2
2
1
2
71
70
71
70
42
44
24
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2123 queries.

Test #155:

score: 0
Accepted
time: 80ms
memory: 9108kb

input:

200
1
2
0
73
72
65
67
39
40
22
23
12
14
6
7
2
3
1
2
72
65
40
42
20
20
12
14
6
8
2
4
2
4
1
2
73
72
67
39
41
22
22
12
14
6
8
2
4
2
2
1
2
72
67
40
25
12
14
6
7
2
4
2
4
1
2
73
72
65
66
42
22
12
14
6
8
2
3
1
2
72
66
40
22
24
12
14
6
6
2
2
1
2
71
71
68
40
42
22
24
12
12
6
8
2
2
1
2
71
66
41
23
12
13
6
8
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #156:

score: 0
Accepted
time: 88ms
memory: 9684kb

input:

200
1
2
0
74
73
70
69
41
40
24
26
11
10
5
4
2
4
2
2
1
3
72
71
42
27
12
7
2
4
1
2
73
73
72
44
22
23
12
13
6
7
2
4
2
4
1
2
75
64
66
42
41
22
22
12
12
6
6
2
4
2
4
1
2
74
74
70
70
44
25
10
12
6
8
2
2
1
2
73
70
42
24
12
12
6
8
2
2
1
2
73
73
70
42
24
12
6
2
2
1
2
72
69
43
25
13
7
4
2
3
1
2
72
72
68
70
43
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2123 queries.

Test #157:

score: 0
Accepted
time: 78ms
memory: 9316kb

input:

200
1
2
0
68
68
68
70
41
41
21
21
12
12
6
6
2
2
1
2
69
69
41
42
22
24
12
13
6
7
2
4
2
3
1
2
70
70
69
42
24
13
9
2
2
1
2
69
69
42
24
15
6
8
2
4
2
4
1
2
69
69
70
71
44
23
24
12
13
6
8
2
4
2
4
1
2
71
66
65
40
39
20
21
11
12
5
7
2
3
1
2
69
69
71
42
24
15
8
4
2
1
2
69
71
42
22
10
10
5
5
2
2
1
2
70
70
69
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2113 queries.

Test #158:

score: 0
Accepted
time: 70ms
memory: 9364kb

input:

200
1
2
0
75
74
63
63
43
43
22
24
12
12
6
6
2
2
1
2
73
62
43
24
12
6
4
2
2
1
2
71
71
62
45
21
21
12
12
6
6
2
2
1
2
71
62
43
22
11
11
6
6
2
2
1
2
71
70
62
62
45
21
12
8
2
2
1
2
69
61
44
24
14
6
8
2
4
2
4
1
3
69
68
61
44
23
14
6
9
2
5
2
3
1
2
70
67
69
38
39
24
25
12
14
6
7
2
4
2
4
1
2
68
69
60
62
40
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2172 queries.

Test #159:

score: 0
Accepted
time: 81ms
memory: 9192kb

input:

200
1
2
0
82
83
64
66
35
37
24
26
12
13
6
7
2
4
2
4
1
2
83
65
41
43
21
23
12
13
6
8
2
3
1
2
83
82
64
41
20
20
12
14
6
6
2
2
1
2
82
66
33
33
23
23
11
11
5
7
2
4
2
4
1
2
81
80
65
64
43
22
10
11
4
5
2
4
2
3
1
2
79
63
40
20
14
8
2
4
2
4
1
2
80
79
65
33
33
23
25
12
14
6
6
2
4
2
4
1
2
79
65
35
22
24
13
14...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2171 queries.

Test #160:

score: 0
Accepted
time: 78ms
memory: 9204kb

input:

200
1
2
0
78
77
59
59
37
38
21
22
9
11
6
7
2
4
2
3
1
2
78
61
45
46
22
23
12
13
6
8
2
3
1
2
78
77
60
39
23
11
9
2
3
1
2
77
60
41
22
22
12
14
6
7
2
3
1
2
78
77
61
62
40
24
11
9
5
2
4
1
2
77
64
46
46
23
25
12
14
5
7
2
4
2
4
1
2
77
76
63
42
24
12
13
6
7
2
4
2
3
1
2
75
64
41
26
12
14
6
8
2
4
2
4
1
2
76
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2162 queries.

Test #161:

score: 0
Accepted
time: 75ms
memory: 9324kb

input:

200
1
2
0
85
85
64
64
41
41
21
21
13
14
7
8
3
5
2
3
1
2
85
64
42
22
15
10
2
4
2
4
1
2
84
83
64
42
24
12
12
6
8
2
4
2
2
1
2
82
64
43
24
14
6
7
2
4
2
3
1
2
83
82
65
66
45
24
25
12
14
6
8
2
4
2
4
1
2
82
67
44
24
13
7
2
3
1
2
83
82
67
44
23
17
5
7
2
4
2
3
1
2
81
66
43
23
15
8
3
1
2
81
80
65
64
43
43
21
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #162:

score: 0
Accepted
time: 75ms
memory: 9392kb

input:

200
1
2
0
71
72
58
60
41
43
22
24
10
12
6
7
2
4
2
3
1
2
71
58
42
42
22
24
12
12
6
6
2
4
2
2
1
2
70
71
59
44
22
24
11
13
4
6
4
6
2
4
1
2
71
61
39
41
20
21
13
15
6
8
1
3
2
4
1
2
72
72
56
58
39
39
21
23
11
13
6
8
2
2
1
2
71
55
41
24
11
5
3
1
3
72
71
56
42
23
10
13
6
7
2
5
2
5
1
2
70
55
41
22
11
6
7
2
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2134 queries.

Test #163:

score: 0
Accepted
time: 88ms
memory: 9284kb

input:

200
1
2
0
78
78
61
61
39
40
21
22
12
13
6
7
2
3
1
2
77
62
41
24
12
14
6
7
2
4
2
4
1
2
77
77
62
41
24
14
7
4
2
1
2
76
61
43
21
21
12
14
5
5
1
3
2
4
1
1
77
76
62
61
42
20
13
6
2
3
2
3
1
2
77
62
42
24
14
8
4
4
1
2
77
76
63
43
24
14
10
2
3
1
2
75
62
43
24
14
10
5
2
4
1
2
76
77
62
64
42
43
23
24
12
13
6
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2139 queries.

Test #164:

score: 0
Accepted
time: 69ms
memory: 9240kb

input:

200
1
2
0
78
79
64
66
42
43
22
24
12
14
4
6
4
5
2
3
1
2
80
65
41
43
21
23
12
14
6
7
2
4
2
3
1
2
79
78
67
41
41
22
12
12
6
6
2
4
2
2
1
2
77
65
41
20
20
12
14
6
6
2
4
2
4
1
2
77
76
66
66
43
23
14
7
4
3
1
2
77
68
41
42
23
24
12
13
6
8
2
4
2
3
1
2
78
77
66
42
21
13
6
8
2
4
2
3
1
2
77
68
42
24
15
6
8
2
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2161 queries.

Test #165:

score: 0
Accepted
time: 82ms
memory: 9356kb

input:

200
1
2
0
77
76
68
69
43
45
21
23
12
14
6
8
4
5
2
3
1
2
76
70
45
22
12
13
6
8
2
4
2
3
1
2
77
76
70
45
23
14
8
3
1
2
75
69
45
23
14
8
3
1
2
74
73
69
71
39
39
22
22
12
14
6
8
2
4
2
2
1
2
72
69
45
25
14
6
2
4
2
2
1
2
73
74
70
44
24
25
12
13
6
8
2
4
2
3
1
2
73
69
43
26
15
6
7
2
4
2
4
1
2
73
73
68
68
43
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2097 queries.

Test #166:

score: 0
Accepted
time: 73ms
memory: 9124kb

input:

200
1
2
0
73
73
60
61
33
35
23
25
9
10
6
7
2
4
2
3
1
2
74
63
41
43
22
24
12
13
6
7
2
4
2
3
1
3
75
76
63
36
25
12
14
6
9
2
5
2
5
1
2
75
65
39
38
25
25
12
12
6
8
2
4
2
4
1
2
76
77
62
64
36
37
23
24
12
13
6
7
2
3
1
2
76
62
33
21
23
12
13
6
8
2
4
2
4
1
2
77
76
62
35
26
16
6
8
2
3
1
2
75
64
37
26
10
10
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #167:

score: 0
Accepted
time: 78ms
memory: 9188kb

input:

200
1
2
0
81
80
64
65
38
40
21
22
12
14
6
8
2
4
2
3
1
3
80
66
39
23
24
13
14
7
10
3
4
1
2
81
81
66
39
26
11
13
6
6
2
2
1
2
80
66
40
26
12
5
6
2
4
2
3
1
2
79
78
66
66
42
24
12
14
6
6
2
4
2
4
1
2
77
65
42
24
13
6
7
2
3
1
2
77
76
66
42
23
13
6
8
2
4
2
4
1
2
76
68
42
43
22
23
11
12
6
8
2
3
1
2
77
76
66
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2130 queries.

Test #168:

score: 0
Accepted
time: 97ms
memory: 9348kb

input:

200
1
2
0
76
75
66
66
42
42
23
25
10
10
6
6
2
4
2
2
1
2
74
65
44
20
22
12
14
4
3
2
2
1
2
73
72
65
43
24
11
13
6
7
2
4
2
3
1
2
71
64
43
24
11
6
6
2
4
2
4
1
2
71
73
63
63
43
45
18
20
11
13
7
9
4
6
2
2
1
2
70
63
63
45
22
12
6
6
2
2
1
2
69
68
65
38
40
24
23
12
11
6
6
2
2
1
2
70
60
59
43
43
23
25
12
12
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2105 queries.

Test #169:

score: 0
Accepted
time: 77ms
memory: 9152kb

input:

200
1
2
0
81
80
66
65
42
41
23
22
12
14
6
7
2
4
2
4
1
2
81
67
42
44
22
23
12
14
6
8
2
4
2
3
1
2
81
81
65
41
24
11
13
6
6
2
4
2
4
1
2
80
67
40
42
23
24
12
13
6
7
2
3
1
2
80
79
64
63
40
24
13
5
3
1
2
79
64
42
20
22
12
14
6
8
2
4
2
3
1
2
80
79
65
41
24
13
6
4
1
2
79
65
42
24
13
8
2
3
1
1
79
80
73
74
44...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2156 queries.

Test #170:

score: 0
Accepted
time: 89ms
memory: 9128kb

input:

200
1
2
0
77
76
69
68
39
38
20
19
12
14
5
7
2
2
1
2
76
69
39
21
12
13
6
7
2
3
1
2
75
75
70
40
21
15
6
7
2
3
1
2
75
70
42
24
26
12
12
6
6
2
4
2
2
1
2
76
76
70
70
42
24
12
14
6
8
2
2
1
2
75
70
41
21
15
9
2
4
2
4
1
2
75
74
70
41
19
12
6
6
2
4
2
2
1
2
73
69
40
19
12
8
2
2
1
2
73
72
67
69
43
44
24
25
12
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2155 queries.

Test #171:

score: 0
Accepted
time: 77ms
memory: 9476kb

input:

200
1
2
0
77
76
66
65
36
36
22
22
10
12
6
6
2
2
1
2
75
65
38
23
23
12
14
6
6
2
4
2
2
1
2
74
75
66
37
24
12
14
6
7
2
4
2
4
1
2
75
68
40
42
18
20
13
13
7
7
2
4
3
3
1
2
76
75
67
69
42
43
24
25
12
14
6
8
2
4
2
3
1
2
74
69
45
18
20
13
13
7
9
2
3
1
2
75
75
67
39
23
12
6
6
2
4
2
4
1
2
74
67
37
22
12
8
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2182 queries.

Test #172:

score: 0
Accepted
time: 76ms
memory: 9312kb

input:

200
1
2
0
81
81
58
59
33
34
19
20
10
12
6
8
2
4
2
4
1
2
81
59
35
21
12
8
4
3
1
2
82
82
61
40
42
25
25
13
15
6
6
2
4
2
4
1
2
82
60
37
22
23
10
11
6
8
2
4
2
4
1
2
81
82
58
60
40
41
22
24
12
14
8
9
3
5
2
3
1
1
81
57
36
24
12
11
6
5
2
3
2
3
1
2
81
80
56
37
23
11
6
2
4
2
2
1
2
79
57
37
25
13
6
7
2
4
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #173:

score: 0
Accepted
time: 88ms
memory: 9184kb

input:

200
1
2
0
73
72
75
74
39
41
21
21
11
13
6
6
2
2
1
2
72
76
48
49
23
24
12
14
6
8
2
3
1
2
72
71
75
40
21
22
10
11
5
6
2
3
1
2
73
63
62
36
38
21
20
10
12
5
5
1
3
2
2
1
2
71
70
73
75
46
48
21
21
11
11
6
8
2
4
2
2
1
2
70
73
42
21
13
8
2
2
1
2
71
70
74
42
22
13
8
4
2
3
1
2
69
73
41
24
11
13
6
7
2
3
1
2
69...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2201 queries.

Test #174:

score: 0
Accepted
time: 62ms
memory: 9288kb

input:

200
1
2
0
67
67
57
58
39
40
24
25
11
12
6
8
2
3
1
2
66
57
39
24
11
6
2
4
2
2
1
2
65
65
57
40
26
10
11
6
7
2
3
1
2
64
57
42
24
26
12
12
6
6
2
4
2
4
1
2
64
66
66
65
40
40
24
24
12
14
5
5
2
4
2
4
1
2
64
55
55
41
25
13
7
9
2
4
2
3
1
2
65
64
55
41
27
13
6
8
2
4
2
4
1
2
64
57
43
45
23
23
11
11
5
7
2
4
2
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #175:

score: 0
Accepted
time: 79ms
memory: 9672kb

input:

200
1
1
0
81
80
70
69
40
41
22
21
10
11
6
5
2
1
1
2
80
71
44
46
24
26
13
15
6
8
4
4
2
2
1
2
81
80
71
43
43
24
24
12
14
6
6
2
4
2
4
1
2
79
69
42
21
12
7
2
2
1
2
77
76
67
66
41
22
23
12
14
6
7
2
4
2
4
1
2
75
65
40
23
12
6
8
2
4
2
2
1
2
76
75
67
43
42
25
27
12
11
6
8
2
3
1
2
75
65
42
23
12
12
6
8
2
4
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2120 queries.

Test #176:

score: 0
Accepted
time: 78ms
memory: 9324kb

input:

200
1
2
0
79
78
66
66
41
41
23
25
12
14
6
6
2
2
1
2
80
61
60
42
41
23
22
11
11
6
6
2
2
1
2
79
79
68
42
43
24
25
12
13
6
8
2
3
1
2
78
65
41
23
12
14
7
7
2
4
2
4
1
2
78
80
62
61
43
44
22
24
13
14
6
7
2
4
2
3
1
2
77
65
64
43
19
18
12
12
6
8
2
4
2
2
1
2
78
78
64
43
18
12
8
4
2
1
2
77
66
44
44
26
26
14
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #177:

score: 0
Accepted
time: 67ms
memory: 9364kb

input:

200
1
2
0
72
71
63
62
42
44
21
21
10
10
5
7
2
2
1
2
70
61
44
21
12
6
6
2
4
2
4
1
2
70
69
60
41
22
22
10
12
6
8
2
2
1
2
71
68
68
43
43
22
24
12
14
6
8
2
4
2
2
1
2
70
70
60
60
43
21
12
6
4
4
1
2
70
62
42
42
24
24
12
14
6
6
2
4
2
2
1
2
71
71
62
42
24
14
6
4
2
1
2
71
62
44
17
19
11
13
6
8
2
2
1
2
70
70
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #178:

score: 0
Accepted
time: 87ms
memory: 9320kb

input:

200
1
2
0
77
76
67
66
41
41
23
23
12
12
6
8
2
4
2
4
1
2
76
68
39
39
23
23
12
12
6
8
2
4
2
4
1
2
75
76
67
43
22
24
11
13
6
8
4
5
2
3
1
2
77
68
43
23
13
14
7
8
3
4
1
2
77
76
68
69
43
25
13
8
4
1
2
75
68
41
23
12
8
4
2
1
2
76
75
68
41
23
12
6
2
4
2
2
1
2
77
66
65
37
37
22
24
10
10
4
4
2
4
2
3
1
2
74
73...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #179:

score: 0
Accepted
time: 85ms
memory: 9168kb

input:

200
1
2
0
72
72
57
57
33
35
20
20
12
14
4
6
2
2
1
2
71
57
35
20
12
6
8
2
4
2
4
1
2
69
69
57
33
21
21
12
12
6
8
2
2
1
2
71
57
56
36
38
23
25
12
12
6
6
2
2
1
2
69
71
55
55
37
38
21
22
11
12
6
7
2
4
2
3
1
2
69
56
58
39
39
21
22
12
14
6
7
2
3
1
2
70
69
55
32
21
12
6
2
4
2
4
1
2
68
55
32
23
11
13
5
5
1
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2211 queries.

Test #180:

score: 0
Accepted
time: 82ms
memory: 9284kb

input:

200
1
2
0
81
81
62
62
43
43
25
27
12
14
6
8
2
4
2
4
1
2
82
64
48
50
19
20
11
13
6
7
2
4
2
4
1
3
81
81
63
44
26
12
15
6
9
3
4
1
2
82
65
46
48
22
23
11
12
5
6
2
3
1
2
82
81
64
65
46
20
21
10
11
6
8
2
3
1
2
81
66
46
23
12
13
6
8
2
4
2
3
1
3
81
81
66
45
27
15
9
7
2
5
1
2
80
68
46
47
22
24
12
14
6
8
2
3
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2139 queries.

Test #181:

score: 0
Accepted
time: 87ms
memory: 9136kb

input:

200
1
2
0
78
79
67
68
40
42
23
25
12
13
6
7
2
4
2
4
1
2
80
69
41
20
21
12
13
6
7
2
3
1
2
81
82
71
42
43
22
24
12
14
6
7
2
4
2
4
1
2
82
71
43
24
12
6
8
2
4
2
4
1
2
82
81
69
69
42
22
15
4
5
2
4
2
4
1
2
81
69
42
24
10
12
6
8
2
4
2
4
1
2
82
81
69
42
24
12
6
2
2
1
2
80
69
43
23
14
8
4
1
2
81
81
70
72
43
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #182:

score: 0
Accepted
time: 83ms
memory: 9388kb

input:

200
1
2
0
71
70
68
67
39
38
23
24
12
14
6
8
2
4
2
3
1
2
69
66
40
21
21
10
11
6
7
2
4
2
4
1
2
69
70
68
39
41
18
19
10
12
6
8
2
4
2
3
1
2
71
67
40
22
13
6
7
2
4
2
4
1
2
72
72
65
65
38
26
11
11
6
8
2
4
2
2
1
2
72
66
40
23
12
8
4
4
1
2
73
73
66
38
26
11
6
2
4
2
2
1
2
73
66
38
24
12
6
8
2
4
2
4
1
2
74
74...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2182 queries.

Test #183:

score: 0
Accepted
time: 80ms
memory: 9216kb

input:

200
1
2
0
71
70
70
72
39
41
20
21
12
14
6
8
2
3
1
2
70
72
39
19
21
9
11
6
8
3
3
1
1
1
2
70
70
70
45
46
22
23
12
13
6
8
2
4
2
3
1
2
71
72
37
39
23
24
12
13
6
7
2
4
2
4
1
2
70
69
68
67
45
25
12
14
6
7
2
4
2
4
1
2
69
67
47
21
23
12
14
6
6
2
2
1
2
70
69
68
47
23
14
8
2
4
2
4
1
2
68
67
45
23
13
8
4
3
1
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2176 queries.

Test #184:

score: 0
Accepted
time: 90ms
memory: 9564kb

input:

200
1
2
0
72
71
67
66
43
44
23
24
12
14
6
8
2
3
1
2
70
66
46
22
24
12
14
6
8
4
6
2
4
1
2
71
73
63
62
40
40
22
24
12
12
6
6
2
2
1
2
70
67
46
24
14
7
2
3
1
2
70
69
66
66
46
24
14
7
5
2
2
1
2
71
60
61
42
44
21
22
12
13
6
8
2
4
2
4
1
2
70
70
68
37
39
21
21
12
12
6
8
2
4
2
2
1
2
69
66
44
24
14
6
2
4
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #185:

score: 0
Accepted
time: 90ms
memory: 9480kb

input:

200
1
2
0
80
79
61
63
43
44
21
23
11
12
5
6
2
4
1
3
1
2
78
63
44
21
10
12
6
8
2
4
2
4
1
2
79
78
61
42
42
23
23
12
12
6
6
2
4
2
2
1
2
78
63
44
46
22
24
12
12
6
8
2
2
1
2
78
77
60
59
42
23
14
6
6
2
4
2
4
1
2
76
59
42
23
12
8
2
4
2
4
1
2
77
78
61
42
43
21
22
10
11
6
8
2
4
2
4
1
2
77
59
44
20
20
11
11
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2166 queries.

Test #186:

score: 0
Accepted
time: 86ms
memory: 9364kb

input:

200
1
2
0
78
77
68
69
41
42
20
21
10
11
6
8
2
4
2
4
1
2
76
70
44
23
25
11
12
6
8
2
4
2
3
1
2
76
75
70
44
25
14
6
8
4
4
2
2
1
2
74
70
44
23
12
14
6
8
2
4
2
4
1
2
75
74
68
69
43
22
12
8
4
4
1
2
73
68
45
25
11
8
4
2
1
3
73
73
70
46
25
14
6
9
2
5
2
5
1
2
72
69
44
23
14
6
7
2
4
2
3
1
2
73
72
69
71
43
43
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2118 queries.

Test #187:

score: 0
Accepted
time: 83ms
memory: 9176kb

input:

200
1
2
0
82
81
66
66
43
45
23
25
12
12
6
8
2
4
2
2
1
2
81
67
44
24
25
13
14
7
9
2
4
2
4
1
2
81
80
69
45
46
24
26
12
13
6
7
2
4
2
4
1
2
81
69
48
25
27
11
13
6
8
4
5
2
3
1
2
80
79
67
68
46
25
13
8
4
4
1
2
78
67
46
25
12
6
2
4
2
2
1
2
79
78
66
44
27
12
14
6
6
2
4
2
2
1
2
79
67
46
25
13
7
3
1
2
79
79
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2125 queries.

Test #188:

score: 0
Accepted
time: 85ms
memory: 9348kb

input:

200
1
2
0
75
77
73
73
45
45
24
26
12
14
6
6
2
4
2
4
1
2
76
72
74
44
46
24
26
12
14
6
7
2
4
2
4
1
2
77
78
74
44
46
24
26
12
14
6
8
5
6
3
4
1
2
78
72
42
43
23
24
12
14
6
7
2
4
2
3
1
2
78
78
72
74
42
44
24
24
12
12
6
8
2
2
1
2
77
72
43
26
12
13
6
7
2
4
2
4
1
2
78
80
78
78
47
47
24
26
12
14
6
8
4
4
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #189:

score: 0
Accepted
time: 83ms
memory: 9204kb

input:

200
1
2
0
77
77
58
58
34
36
21
23
13
15
6
8
4
6
2
2
1
2
76
57
33
23
23
12
12
6
6
2
2
1
2
76
76
57
35
21
10
12
6
6
2
2
1
2
75
57
34
25
11
13
6
7
2
4
2
4
1
2
75
74
56
56
35
25
13
9
2
3
1
2
73
55
36
25
13
8
4
3
1
2
74
74
55
36
23
14
6
8
2
4
2
2
1
2
73
55
36
25
11
6
6
2
4
2
2
1
2
74
74
55
55
34
34
21
23...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2192 queries.

Test #190:

score: 0
Accepted
time: 89ms
memory: 9336kb

input:

200
1
2
0
70
72
58
57
42
41
24
23
12
12
6
6
2
4
2
2
1
2
69
65
67
41
41
24
26
10
12
4
6
4
6
2
4
1
2
70
69
65
42
44
23
25
12
14
6
6
2
4
2
4
1
2
69
65
43
22
23
11
12
6
8
2
4
2
4
1
2
69
69
65
65
43
23
12
8
4
2
1
2
71
60
61
44
46
23
24
11
13
6
8
2
4
2
4
1
2
70
70
67
39
39
23
25
8
10
6
6
2
4
2
2
1
2
70
65...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #191:

score: 0
Accepted
time: 78ms
memory: 9204kb

input:

200
1
2
0
79
78
65
66
41
43
22
23
12
13
6
8
2
3
1
2
78
68
42
43
21
22
11
12
7
8
3
4
1
2
79
78
65
43
23
13
6
2
4
2
4
1
2
77
65
41
23
25
11
11
6
8
2
4
1
3
1
2
78
77
63
62
41
23
12
12
6
6
2
4
2
2
1
2
77
64
41
41
22
24
10
12
6
6
2
4
2
4
1
2
77
77
64
41
22
14
16
6
8
2
2
1
2
76
64
43
23
23
12
12
6
6
2
4
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #192:

score: 0
Accepted
time: 91ms
memory: 9308kb

input:

200
1
2
0
83
82
67
67
37
37
23
23
12
12
6
8
2
4
2
2
1
1
82
67
37
23
12
6
2
3
2
2
1
2
82
82
67
39
21
23
12
12
6
8
2
4
2
4
1
2
81
68
39
23
14
6
8
4
6
2
4
1
2
81
81
65
67
41
43
22
24
12
14
6
8
4
6
2
2
1
2
82
67
43
23
12
13
6
8
2
4
2
3
1
2
83
82
65
37
23
14
6
8
2
4
2
4
1
2
81
66
38
24
14
7
2
3
1
2
80
79...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2144 queries.

Test #193:

score: 0
Accepted
time: 71ms
memory: 9480kb

input:

200
1
2
0
78
78
68
69
42
43
20
21
12
13
6
8
2
4
2
4
1
2
79
70
44
22
15
6
7
2
4
2
3
1
2
80
79
70
44
24
12
12
6
8
2
4
2
4
1
2
80
71
46
20
22
12
14
6
7
2
4
2
4
1
2
79
78
69
69
44
22
13
8
2
1
2
77
68
44
22
13
6
2
2
1
2
78
78
70
36
37
17
18
8
10
6
7
2
4
2
3
1
2
78
70
37
20
12
12
6
6
2
2
1
2
77
77
66
67
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2131 queries.

Test #194:

score: 0
Accepted
time: 81ms
memory: 9424kb

input:

200
1
2
0
72
73
62
64
46
47
23
24
11
13
6
7
2
4
2
4
1
2
75
67
67
39
40
24
26
12
14
6
8
2
4
2
3
1
2
73
72
62
42
42
25
25
12
14
7
7
2
4
2
2
1
2
73
64
45
47
21
22
12
14
6
8
2
4
2
3
1
2
74
74
62
64
45
47
23
23
12
14
6
8
2
4
4
1
2
74
64
47
25
12
14
6
8
4
6
2
2
1
2
75
75
64
47
23
14
6
2
4
2
2
1
2
74
64
47...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2175 queries.

Test #195:

score: 0
Accepted
time: 86ms
memory: 9336kb

input:

200
1
2
0
77
77
65
65
36
36
23
25
10
12
4
4
2
4
2
2
1
2
76
64
36
23
11
13
6
6
2
4
2
4
1
2
75
75
64
37
24
13
7
3
1
2
74
64
39
23
25
12
12
6
6
2
2
1
2
73
72
63
65
35
35
18
20
12
14
4
6
2
2
1
2
73
64
38
25
12
6
7
2
3
1
2
73
72
64
38
27
12
4
4
3
1
2
71
65
40
24
12
13
6
7
2
3
1
2
71
70
63
62
38
39
23
25
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2116 queries.

Test #196:

score: 0
Accepted
time: 83ms
memory: 9180kb

input:

200
1
2
0
72
71
66
66
41
42
22
23
10
12
6
8
2
4
2
4
1
2
71
68
36
38
22
24
12
14
6
6
2
4
2
2
1
2
70
70
68
34
34
20
22
12
14
6
8
2
4
2
4
1
2
70
66
42
23
10
6
6
2
4
2
2
1
2
71
70
64
64
43
25
10
12
6
8
2
4
2
4
1
2
72
60
60
41
42
22
23
12
14
6
7
2
4
2
3
1
2
70
70
64
43
23
10
6
2
1
2
70
65
45
23
25
12
14
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2196 queries.

Test #197:

score: 0
Accepted
time: 67ms
memory: 9348kb

input:

200
1
2
0
66
66
57
57
36
36
20
20
12
12
6
8
2
4
2
2
1
2
68
61
60
35
34
21
22
12
13
6
8
2
4
2
4
1
2
67
66
58
38
18
20
12
14
6
7
2
4
2
4
1
2
65
57
38
19
11
12
5
7
2
4
2
3
1
2
65
64
57
56
35
22
11
10
6
6
2
4
2
2
1
2
65
58
37
39
21
22
11
12
6
8
2
4
2
4
1
2
65
64
55
37
18
11
7
4
2
1
2
64
57
37
23
23
12
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2160 queries.

Test #198:

score: 0
Accepted
time: 94ms
memory: 9636kb

input:

200
1
2
0
71
70
55
56
39
40
25
26
12
13
6
7
2
3
1
2
69
58
43
42
22
23
12
14
6
8
2
4
2
4
1
2
69
68
58
41
40
22
13
6
7
2
4
2
3
1
1
68
56
40
27
12
12
6
6
2
2
1
2
69
69
56
57
42
23
24
12
13
6
8
2
4
2
4
1
2
69
57
42
26
12
14
4
6
2
4
2
2
1
2
70
69
56
40
27
14
8
5
2
3
1
2
68
55
39
26
16
7
7
2
4
2
4
1
2
68
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2121 queries.

Test #199:

score: 0
Accepted
time: 76ms
memory: 9552kb

input:

200
1
2
0
80
79
57
57
37
39
21
23
13
15
6
8
4
4
2
4
1
2
78
56
38
23
24
12
14
7
8
3
5
2
4
1
2
79
79
57
40
23
14
6
8
2
3
1
2
78
59
43
45
21
23
12
12
6
6
2
4
2
2
1
2
78
78
55
57
44
44
23
23
12
12
6
6
2
2
1
2
80
64
63
41
41
22
22
12
14
6
8
2
4
2
4
1
2
78
77
57
46
22
23
12
13
6
8
2
3
1
2
76
56
39
26
11
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #200:

score: 0
Accepted
time: 77ms
memory: 9264kb

input:

200
1
2
0
72
71
62
62
39
41
20
22
11
13
6
8
4
4
2
2
1
2
72
64
39
40
19
20
12
13
6
8
2
4
2
3
1
2
72
71
61
41
19
12
12
6
8
2
4
2
2
1
3
71
63
41
23
26
12
15
6
8
2
5
2
4
1
2
72
71
62
64
37
37
21
22
13
14
6
8
2
4
3
1
2
71
62
41
25
12
6
8
2
4
2
2
1
2
72
71
62
43
19
12
8
2
1
2
70
64
36
22
14
6
2
4
2
4
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2142 queries.

Test #201:

score: 0
Accepted
time: 83ms
memory: 9360kb

input:

200
1
2
0
75
74
64
63
44
44
24
26
12
14
6
6
2
4
2
2
1
2
73
62
44
24
12
12
6
6
2
4
2
2
1
2
73
72
61
46
17
17
13
14
6
7
2
4
2
3
1
2
72
63
42
42
22
24
12
12
6
6
2
2
1
2
72
71
59
60
45
25
14
6
8
2
4
2
4
1
2
70
59
44
24
14
5
2
3
1
2
71
71
59
46
19
10
12
6
8
2
4
3
5
1
2
71
60
46
19
12
8
4
5
1
2
71
72
58
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2122 queries.

Test #202:

score: 0
Accepted
time: 86ms
memory: 9500kb

input:

200
1
2
0
77
77
66
68
37
39
22
22
12
13
6
7
2
3
1
2
77
66
38
38
22
22
11
11
6
8
2
2
1
2
78
77
66
40
21
23
12
14
4
4
2
4
2
2
1
2
77
66
40
21
11
11
6
8
2
4
2
4
1
2
76
75
66
67
39
24
10
12
6
7
2
4
2
3
1
2
76
69
35
36
21
22
10
11
6
8
2
4
2
4
1
2
76
76
69
37
23
12
7
2
3
1
2
76
67
41
21
13
6
8
2
4
2
2
1
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #203:

score: 0
Accepted
time: 80ms
memory: 9440kb

input:

200
1
2
0
66
66
58
60
39
41
22
22
12
14
6
8
2
2
1
2
68
64
64
42
42
22
23
11
13
6
7
2
4
2
4
1
2
67
66
58
37
37
20
22
12
12
6
8
2
4
2
2
1
2
66
60
37
37
18
18
11
13
5
5
2
4
2
2
1
2
66
68
63
62
38
38
22
22
9
11
6
8
4
3
3
1
2
66
59
61
37
37
18
20
12
14
6
8
2
2
1
2
66
65
61
37
18
11
13
6
8
2
2
1
2
64
60
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #204:

score: 0
Accepted
time: 77ms
memory: 9332kb

input:

200
1
2
0
82
82
60
60
39
41
22
22
12
14
6
8
2
4
2
4
1
2
81
61
41
23
14
8
4
4
1
2
82
82
62
40
24
26
8
9
6
7
2
3
1
2
81
61
41
25
12
13
6
7
2
4
2
4
1
2
81
81
62
64
40
41
23
24
12
13
6
8
2
4
2
4
1
2
80
63
42
27
10
9
2
4
2
3
1
2
80
79
62
44
22
14
8
4
4
1
2
78
62
42
25
13
7
2
1
2
77
79
65
65
37
37
21
22
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #205:

score: 0
Accepted
time: 67ms
memory: 9416kb

input:

200
1
2
0
80
79
70
69
42
43
21
22
12
13
6
8
2
4
2
4
1
3
79
71
45
24
15
9
4
1
2
78
77
73
40
40
23
25
12
12
6
6
2
2
1
2
76
71
47
24
26
10
12
6
8
4
6
2
4
1
2
75
75
70
70
47
24
12
14
6
8
2
4
2
4
1
2
75
70
45
24
17
6
8
2
4
2
4
1
2
76
76
70
47
25
13
6
8
2
4
2
3
1
2
75
70
45
26
11
13
6
6
2
4
2
4
1
2
74
73
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2113 queries.

Test #206:

score: 0
Accepted
time: 79ms
memory: 9448kb

input:

200
1
2
0
72
71
63
64
40
42
22
23
12
14
6
7
2
3
1
2
70
66
43
44
24
26
11
12
5
7
2
4
2
3
1
2
70
69
63
39
22
22
11
13
6
8
2
4
2
2
1
2
70
65
42
43
25
12
13
6
8
2
4
2
4
1
2
71
71
61
63
43
43
25
25
12
14
7
9
2
4
2
2
1
2
73
66
65
40
39
23
24
13
15
6
7
2
4
2
4
1
2
72
73
63
45
24
25
12
14
6
7
2
3
1
2
72
60
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #207:

score: 0
Accepted
time: 79ms
memory: 9536kb

input:

200
1
2
0
77
76
60
62
40
42
20
19
12
13
6
8
2
3
1
2
76
61
41
42
23
25
10
12
6
7
2
4
2
4
1
2
76
75
61
42
23
12
14
6
6
2
4
2
2
1
2
74
63
38
37
22
23
12
14
6
7
2
4
2
4
1
2
75
74
61
60
41
23
14
8
2
4
2
4
1
2
74
60
41
25
12
9
2
4
2
2
1
2
72
72
60
41
25
12
9
4
2
1
2
71
59
40
23
12
6
8
2
4
2
4
1
2
72
72
60...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2133 queries.

Test #208:

score: 0
Accepted
time: 89ms
memory: 9260kb

input:

200
1
2
0
80
79
62
63
36
38
20
21
13
15
6
7
2
3
1
2
78
63
38
23
10
12
6
8
3
5
2
4
1
2
76
76
63
38
21
13
6
6
2
2
1
2
77
64
38
23
12
7
2
4
2
3
1
2
76
77
62
64
40
42
22
23
12
14
6
8
2
3
1
2
76
63
37
20
22
12
13
6
8
2
4
2
4
1
2
76
75
65
42
22
14
8
5
2
3
1
2
75
63
37
22
15
6
6
2
4
2
4
1
2
73
72
61
63
38
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #209:

score: 0
Accepted
time: 88ms
memory: 9192kb

input:

200
1
2
0
70
69
59
58
40
39
23
22
11
10
6
6
2
4
2
4
1
2
68
59
40
23
12
6
8
2
3
1
2
69
69
61
37
38
22
24
11
12
5
6
1
3
2
4
1
2
69
61
38
22
12
12
6
6
2
4
2
4
1
2
69
69
60
62
41
41
22
22
11
11
6
8
2
2
1
2
70
62
43
24
26
12
13
6
7
2
3
1
2
70
70
62
41
24
12
12
5
5
2
4
1
1
2
69
59
40
25
12
12
6
8
2
4
2
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #210:

score: 0
Accepted
time: 84ms
memory: 9328kb

input:

200
1
2
0
74
73
63
65
41
41
23
24
11
13
6
7
2
4
2
4
1
2
75
61
60
42
42
20
22
13
15
6
6
2
4
2
4
1
2
74
74
63
40
40
21
21
13
13
6
8
2
4
3
5
1
2
73
63
42
24
25
12
14
6
8
2
4
2
3
1
2
73
72
63
62
39
21
15
6
8
2
2
1
2
71
63
41
26
13
6
8
2
4
2
3
1
2
72
71
63
41
28
11
13
6
8
2
2
1
2
70
64
40
22
14
7
2
3
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2125 queries.

Test #211:

score: 0
Accepted
time: 92ms
memory: 9432kb

input:

200
1
2
0
75
75
69
69
43
45
20
21
12
13
6
7
2
4
2
3
1
2
77
59
58
39
39
21
23
12
14
6
6
2
2
1
2
76
77
70
44
23
24
12
14
6
7
2
4
2
3
1
2
76
69
46
21
13
7
4
3
1
2
76
75
68
68
44
25
13
6
7
2
3
1
2
75
68
44
27
12
12
6
6
2
4
2
4
1
2
76
76
70
36
36
18
19
10
11
4
5
2
4
2
4
1
1
77
57
58
42
41
24
25
11
12
6
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2125 queries.

Test #212:

score: 0
Accepted
time: 86ms
memory: 9352kb

input:

200
1
2
0
83
83
69
69
42
42
21
23
12
14
6
6
2
4
2
4
1
2
83
71
45
47
24
26
12
14
6
6
2
4
2
2
1
2
84
83
70
43
22
12
14
5
6
2
4
2
3
1
2
82
72
43
42
23
25
12
13
6
7
2
3
1
2
83
82
68
70
42
41
21
20
12
12
6
8
2
2
1
2
84
71
72
39
40
20
22
11
12
6
8
1
3
2
4
1
2
82
83
69
44
23
14
7
4
5
1
2
83
69
44
25
14
6
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2138 queries.

Test #213:

score: 0
Accepted
time: 86ms
memory: 9412kb

input:

200
1
2
0
79
78
71
71
40
42
23
23
11
13
6
6
2
4
2
2
1
2
78
73
48
48
24
24
12
14
6
8
2
2
1
2
79
78
70
42
23
11
6
6
2
2
1
2
78
70
40
20
20
12
12
6
6
2
4
2
2
1
2
77
76
70
70
40
20
12
6
4
2
1
2
75
70
40
20
12
6
2
1
2
74
74
72
46
46
24
24
12
12
6
6
2
4
2
2
1
2
74
70
40
20
14
6
6
2
4
2
2
1
2
75
75
68
68
3...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2118 queries.

Test #214:

score: 0
Accepted
time: 85ms
memory: 9224kb

input:

200
1
2
0
76
76
70
72
48
48
24
26
11
13
8
10
4
4
2
2
1
2
75
71
45
47
20
21
10
12
4
6
2
4
2
4
1
2
74
74
71
45
23
23
12
14
6
8
2
4
2
4
1
2
73
73
48
48
26
11
5
7
2
4
2
4
1
2
73
73
69
69
45
25
12
12
6
8
2
4
2
2
1
2
72
71
48
48
24
26
11
13
8
10
2
4
4
1
2
73
73
69
45
23
12
6
6
2
4
2
2
1
2
72
69
47
21
12
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #215:

score: 0
Accepted
time: 91ms
memory: 9232kb

input:

200
1
2
0
76
76
63
63
42
43
22
23
12
13
6
7
2
3
1
2
76
63
43
23
13
7
5
2
4
1
2
74
73
64
44
25
12
14
6
7
2
3
1
2
73
64
44
25
14
9
2
4
2
4
1
2
74
75
64
65
46
24
26
12
14
6
8
1
2
1
2
75
67
42
42
23
25
12
14
6
8
2
4
2
4
1
2
76
75
64
44
25
12
6
6
2
2
1
2
74
64
45
25
13
8
2
4
2
3
1
2
75
77
75
75
44
44
21
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #216:

score: 0
Accepted
time: 82ms
memory: 9596kb

input:

200
1
2
0
78
77
67
69
41
40
17
17
10
10
6
8
2
4
2
4
1
2
76
69
42
20
22
12
13
6
7
2
4
2
3
1
2
77
78
68
42
44
22
23
12
14
6
8
2
4
2
4
1
2
77
67
41
21
20
12
12
6
8
2
4
2
4
1
2
75
74
67
67
41
20
14
6
8
2
4
2
4
1
2
75
68
43
24
14
8
3
1
2
74
73
69
43
26
12
13
6
8
2
3
1
2
73
71
38
38
19
21
12
14
6
6
2
4
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2108 queries.

Test #217:

score: 0
Accepted
time: 75ms
memory: 9268kb

input:

200
1
2
0
74
74
56
56
36
38
21
23
12
12
6
6
2
2
1
2
73
56
38
21
12
12
6
6
2
4
2
2
1
2
73
72
56
36
19
19
10
12
6
6
2
2
1
2
72
58
41
42
23
25
12
13
6
8
2
4
2
4
1
2
73
73
56
58
42
44
21
21
10
12
6
8
2
2
1
2
73
56
36
19
10
4
6
2
4
2
4
1
2
73
72
58
41
23
23
11
11
6
8
2
4
2
2
1
2
74
55
54
39
38
22
23
12
1...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #218:

score: 0
Accepted
time: 77ms
memory: 9392kb

input:

200
1
2
0
70
69
61
61
40
40
23
23
13
13
6
6
2
4
2
4
1
2
68
61
41
24
15
6
7
2
4
2
4
1
2
68
67
61
43
24
24
12
14
6
8
2
4
2
2
1
2
68
63
41
43
23
25
11
13
6
8
4
5
2
3
1
2
69
68
62
63
42
26
10
11
6
7
2
3
1
2
67
62
41
26
13
6
6
2
4
2
4
1
3
68
68
65
41
42
23
24
11
12
6
9
2
5
2
3
1
2
68
63
42
26
13
7
3
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #219:

score: 0
Accepted
time: 71ms
memory: 9340kb

input:

200
1
2
0
73
72
69
68
40
42
21
23
10
9
6
7
2
4
2
4
1
2
71
68
42
23
9
8
4
4
1
2
72
74
66
65
41
40
20
19
12
12
6
8
2
2
1
2
72
70
42
44
21
23
12
14
4
4
2
2
1
2
72
71
66
66
40
19
21
12
14
6
8
2
2
1
2
72
67
42
22
10
11
4
6
2
3
1
2
70
69
66
42
24
11
6
7
2
4
2
4
1
2
71
65
64
41
41
21
23
12
14
6
8
2
2
1
2
7...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2170 queries.

Test #220:

score: 0
Accepted
time: 75ms
memory: 9468kb

input:

200
1
2
0
75
75
67
67
42
44
23
23
12
12
6
6
2
4
2
4
1
2
75
68
43
23
25
12
13
6
8
2
3
1
2
76
76
70
36
38
23
23
12
14
6
8
2
4
2
4
1
2
77
69
45
24
13
7
4
4
1
2
78
79
69
71
39
41
22
24
12
13
6
8
2
4
2
4
1
2
78
70
45
25
14
9
2
4
2
4
1
2
78
77
71
44
25
15
6
7
2
4
2
4
1
2
77
71
45
24
12
14
6
8
2
4
2
3
1
2
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2118 queries.

Test #221:

score: 0
Accepted
time: 87ms
memory: 9452kb

input:

200
1
2
0
83
82
77
76
40
39
22
22
11
13
6
8
2
4
2
2
1
2
81
76
41
22
24
12
12
6
8
2
4
2
4
1
2
80
79
75
39
24
9
9
6
8
2
2
1
2
79
77
37
39
23
23
12
12
6
6
2
4
2
2
1
2
78
77
74
76
39
40
18
20
12
13
6
8
2
3
1
2
77
74
41
24
12
8
4
2
1
2
78
78
74
40
24
10
8
4
2
4
1
2
77
73
40
22
11
6
6
2
2
1
2
77
77
72
72
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2137 queries.

Test #222:

score: 0
Accepted
time: 84ms
memory: 9304kb

input:

200
1
2
0
76
75
70
69
39
38
18
18
11
11
6
6
2
4
2
2
1
2
75
71
39
41
23
23
11
13
6
8
2
2
1
2
76
76
69
38
18
13
6
6
2
4
2
2
1
2
75
71
39
40
22
23
10
12
6
8
2
3
1
2
76
75
68
68
38
20
12
14
6
8
2
2
1
2
75
68
38
20
12
6
6
2
4
2
2
1
2
76
75
69
39
19
13
7
4
3
1
2
76
70
41
21
23
11
12
6
8
2
4
2
4
1
2
75
75
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2171 queries.

Test #223:

score: 0
Accepted
time: 86ms
memory: 9672kb

input:

200
1
2
0
73
73
69
69
43
45
22
24
12
12
6
6
2
4
2
4
1
2
73
70
44
24
26
12
13
6
8
2
4
2
3
1
2
74
75
72
42
43
22
24
12
13
6
8
2
4
2
3
1
2
77
74
75
41
43
22
24
11
12
6
7
2
4
2
4
1
2
75
76
71
73
43
45
21
22
12
13
6
7
2
3
1
2
77
73
45
23
15
4
6
2
3
1
2
78
77
71
44
26
15
6
6
2
2
1
2
77
71
46
22
10
12
6
8
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2109 queries.

Test #224:

score: 0
Accepted
time: 73ms
memory: 9380kb

input:

200
1
2
0
80
80
72
72
41
43
22
22
12
14
6
6
2
4
2
2
1
2
79
74
40
42
21
21
10
12
6
8
2
2
1
2
79
78
74
40
42
21
20
12
14
6
8
2
3
1
2
79
73
42
23
24
12
13
6
7
2
3
1
2
79
80
71
72
43
25
15
6
7
2
3
1
2
79
72
45
24
12
12
6
6
2
2
1
2
79
78
72
43
27
12
14
6
6
2
4
2
4
1
2
78
74
39
39
24
26
11
13
6
8
2
4
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2130 queries.

Test #225:

score: 0
Accepted
time: 74ms
memory: 9320kb

input:

200
1
2
0
73
72
57
58
39
41
21
23
12
13
6
8
2
4
2
3
1
2
73
59
41
22
11
12
6
8
1
3
2
4
1
2
72
72
59
39
24
24
12
14
6
8
2
2
1
2
74
65
65
42
42
23
23
12
14
6
8
2
2
1
2
73
73
59
61
41
41
23
25
11
13
6
8
2
4
2
2
1
2
72
58
39
26
12
12
6
8
2
2
1
2
72
71
58
41
24
15
6
8
2
4
2
3
1
2
72
59
40
25
14
7
2
4
2
4
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2127 queries.

Test #226:

score: 0
Accepted
time: 89ms
memory: 9352kb

input:

200
1
2
0
74
73
63
64
42
44
22
24
12
13
6
7
2
4
2
4
1
2
73
64
44
22
11
13
6
6
2
4
2
4
1
2
73
73
64
43
19
20
10
12
6
8
2
4
2
4
1
2
74
66
41
43
24
25
12
14
6
8
2
3
1
2
74
74
64
66
42
42
24
26
12
14
6
6
2
2
1
2
74
64
43
20
10
6
6
2
2
1
2
75
76
65
45
23
12
6
7
2
4
2
4
1
2
75
65
45
23
14
6
2
1
2
76
76
65...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2128 queries.

Test #227:

score: 0
Accepted
time: 71ms
memory: 9248kb

input:

200
1
2
0
75
74
65
67
40
40
19
21
11
13
6
6
2
4
2
4
1
2
74
67
40
21
13
8
4
6
2
2
1
2
75
75
67
38
40
21
22
12
13
6
8
2
3
1
2
76
67
40
23
15
6
8
2
3
1
2
75
74
64
63
42
41
24
24
12
12
6
8
2
2
1
2
73
62
40
26
12
12
6
8
2
2
1
2
74
73
61
41
26
14
6
7
2
4
2
3
1
2
73
61
43
19
19
10
12
5
7
2
4
2
4
1
2
74
76
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2170 queries.

Test #228:

score: 0
Accepted
time: 74ms
memory: 9340kb

input:

200
1
2
0
80
79
68
68
36
38
24
26
11
13
6
8
4
6
2
2
1
2
78
68
38
24
11
13
6
8
2
4
3
3
1
2
78
79
69
37
18
20
12
13
6
8
2
3
1
2
78
71
43
43
25
25
12
14
6
8
2
4
2
2
1
2
78
78
69
71
41
41
24
26
13
15
7
9
2
4
2
4
1
2
77
69
39
25
13
8
3
1
2
78
77
68
36
20
12
8
2
1
2
77
69
38
27
12
6
8
2
3
1
2
78
77
67
68
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2141 queries.

Test #229:

score: 0
Accepted
time: 91ms
memory: 9332kb

input:

200
1
2
0
70
70
62
63
40
41
22
23
10
11
6
7
2
4
2
3
1
2
70
63
41
25
12
14
6
8
2
2
1
2
71
72
65
40
41
19
20
10
12
6
8
2
3
1
2
73
64
42
25
13
6
8
2
4
2
3
1
2
72
73
62
64
39
40
18
19
8
10
6
8
2
4
4
1
1
73
63
40
20
12
12
6
6
2
3
2
3
1
2
74
74
63
43
25
14
7
2
4
2
4
1
2
75
64
44
24
12
9
2
4
2
4
1
2
74
73
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2101 queries.

Test #230:

score: 0
Accepted
time: 79ms
memory: 8944kb

input:

200
1
2
0
79
78
66
67
42
43
22
24
9
11
6
7
2
3
1
2
77
68
44
24
11
9
2
3
1
2
77
76
69
46
22
24
13
14
6
7
2
4
2
3
1
2
75
70
45
24
11
9
5
2
3
1
2
75
77
65
65
36
38
22
24
13
15
6
8
4
4
2
2
1
2
75
70
70
45
22
10
10
6
7
2
4
2
3
1
2
76
75
70
45
24
11
9
5
5
1
2
74
72
34
35
22
23
10
12
6
8
2
4
2
3
1
2
74
73
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #231:

score: 0
Accepted
time: 66ms
memory: 8900kb

input:

200
1
2
0
72
73
64
65
40
42
23
25
12
13
6
8
2
4
2
3
1
2
72
64
42
24
12
14
6
8
2
3
1
2
72
73
66
44
46
22
23
10
11
6
8
2
4
2
4
1
2
72
64
42
24
14
6
2
4
2
2
1
2
72
73
64
66
44
45
24
25
12
14
6
8
2
3
1
2
72
65
42
25
14
7
4
3
1
2
72
71
65
40
19
20
7
9
6
7
2
4
2
4
1
2
70
66
41
21
8
3
5
2
4
2
4
1
2
71
70
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2128 queries.

Test #232:

score: 0
Accepted
time: 89ms
memory: 8996kb

input:

200
1
2
0
76
75
63
62
32
31
21
21
10
11
6
8
2
3
1
2
74
61
31
22
12
8
5
2
3
1
2
74
74
62
33
24
25
12
14
6
7
2
4
2
3
1
2
74
62
31
22
14
6
8
2
2
1
2
73
72
61
63
40
40
20
22
10
12
6
8
2
4
2
4
1
2
74
62
62
42
42
22
22
12
12
6
8
2
2
1
2
72
71
61
33
25
12
6
6
2
2
1
2
70
61
33
27
12
14
6
7
2
4
2
3
1
2
68
69...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2223 queries.

Test #233:

score: 0
Accepted
time: 88ms
memory: 9324kb

input:

200
1
2
0
78
78
62
62
38
39
22
23
12
14
6
7
2
4
2
4
1
2
77
61
38
23
14
9
2
4
2
4
1
2
75
75
63
33
35
20
22
12
12
6
6
2
4
2
4
1
3
74
61
40
25
15
9
5
4
1
2
75
74
61
62
42
22
23
12
14
6
7
2
4
2
3
1
2
75
63
41
27
11
13
5
6
3
4
1
2
76
75
64
43
25
12
14
6
8
2
4
2
3
1
2
75
65
42
27
12
6
7
2
4
2
3
1
2
75
74
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2134 queries.

Test #234:

score: 0
Accepted
time: 71ms
memory: 9132kb

input:

200
1
2
0
70
71
64
65
40
42
24
25
13
15
5
6
2
4
2
4
1
2
70
66
42
27
12
14
6
8
4
5
2
4
1
2
70
69
66
42
27
12
6
8
2
2
1
2
68
65
42
24
15
5
4
4
1
2
66
65
66
67
42
26
14
8
4
3
5
1
2
66
69
43
45
22
24
12
14
6
7
2
4
2
4
1
2
67
69
65
65
43
45
22
22
11
13
6
8
2
4
2
2
1
2
68
68
42
25
15
7
2
4
2
4
1
2
69
68
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #235:

score: 0
Accepted
time: 76ms
memory: 9316kb

input:

200
1
2
0
75
75
70
70
39
41
21
21
12
14
6
8
2
4
3
5
1
2
74
72
45
45
24
24
12
12
6
8
2
4
2
2
1
2
74
75
71
40
20
21
11
13
6
8
3
5
2
3
1
3
74
71
42
23
13
5
8
2
5
2
4
1
2
72
72
72
72
44
23
12
14
6
8
2
4
2
4
1
2
72
73
44
23
13
6
8
2
4
2
4
1
2
71
71
74
43
24
15
8
5
5
1
1
70
74
44
22
14
7
2
1
2
71
70
72
71...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2107 queries.

Test #236:

score: 0
Accepted
time: 68ms
memory: 9348kb

input:

200
1
2
0
81
81
73
74
42
43
21
23
11
13
5
7
2
3
1
2
80
74
45
23
23
11
12
6
7
2
3
1
2
80
79
74
43
23
13
7
3
1
2
80
76
44
45
23
24
12
13
6
8
2
4
2
4
1
2
78
78
72
74
46
47
24
25
12
14
8
10
2
4
2
4
1
2
78
72
43
21
12
12
6
8
2
4
2
2
1
2
78
78
72
43
21
14
6
6
2
2
1
2
78
72
44
23
13
6
2
4
2
3
1
2
79
78
70
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #237:

score: 0
Accepted
time: 69ms
memory: 9056kb

input:

200
1
2
0
69
68
65
64
36
38
23
23
12
12
6
8
2
2
1
2
68
64
38
23
14
6
6
2
4
2
4
1
2
69
71
61
61
34
36
20
20
11
11
5
7
2
4
2
4
1
2
68
66
40
41
20
22
12
14
6
8
2
4
2
3
1
2
69
69
62
64
42
42
20
22
12
14
6
6
2
2
1
2
68
64
42
20
9
9
5
5
2
2
1
2
67
66
63
38
24
14
8
2
3
1
2
65
63
37
20
22
12
13
6
7
2
4
2
3
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2239 queries.

Test #238:

score: 0
Accepted
time: 79ms
memory: 9556kb

input:

200
1
2
0
75
75
62
63
43
44
24
26
11
12
6
8
2
3
1
2
74
65
37
39
20
22
12
14
5
4
2
2
1
2
75
75
65
35
35
20
22
11
13
6
8
2
4
2
4
1
2
74
62
43
26
11
8
3
1
2
72
73
63
65
35
36
20
21
10
11
6
8
2
3
1
2
73
63
43
26
11
8
4
1
2
74
74
63
45
21
23
11
13
6
6
2
4
2
4
1
2
73
63
43
26
13
6
6
2
4
2
2
1
2
74
73
62
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2107 queries.

Test #239:

score: 0
Accepted
time: 79ms
memory: 9504kb

input:

200
1
2
0
73
73
69
71
40
40
23
23
11
13
6
6
2
2
1
2
72
71
39
23
13
6
4
2
2
1
2
73
74
70
38
40
22
23
12
14
6
8
2
3
1
2
73
69
37
22
24
12
14
6
7
2
3
1
2
73
72
68
69
39
25
12
13
6
7
2
4
2
3
1
2
72
69
37
22
12
12
6
8
2
4
2
4
1
2
71
71
71
38
38
23
24
12
13
6
7
2
4
2
4
1
2
72
70
38
23
14
6
7
2
3
1
2
73
73...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #240:

score: 0
Accepted
time: 79ms
memory: 9164kb

input:

200
1
2
0
70
70
65
67
40
40
24
26
10
12
6
8
4
4
2
3
1
2
69
65
40
42
22
24
12
12
6
8
2
4
2
2
1
2
70
72
67
66
44
46
18
20
10
10
4
4
2
2
1
2
70
65
42
22
10
12
6
6
2
4
2
4
1
2
71
70
65
64
40
22
24
11
13
6
6
2
2
1
2
72
67
67
46
46
25
27
13
13
6
7
2
3
1
2
70
69
64
42
22
10
6
8
2
4
2
2
1
2
68
63
39
24
13
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2167 queries.

Test #241:

score: 0
Accepted
time: 89ms
memory: 9416kb

input:

200
1
2
0
75
74
62
64
44
44
24
24
12
12
6
8
2
4
2
4
1
2
74
62
40
41
24
25
12
14
6
7
2
4
2
3
1
2
74
75
64
43
44
26
12
14
5
6
2
4
2
3
1
2
74
63
43
22
24
12
13
6
8
2
4
2
4
1
2
74
74
62
63
43
24
15
6
8
2
4
2
4
1
2
73
63
42
27
12
13
6
7
2
4
2
4
1
2
74
75
64
44
24
15
8
4
3
1
2
75
65
44
24
14
7
2
4
2
4
1
2...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2106 queries.

Test #242:

score: 0
Accepted
time: 77ms
memory: 9112kb

input:

200
1
2
0
77
79
67
68
37
39
21
23
12
13
6
7
2
4
2
4
1
2
76
66
67
38
39
23
24
11
13
6
7
2
4
2
4
1
2
76
75
68
41
20
22
12
14
6
8
4
6
2
4
1
2
74
67
41
21
11
13
6
7
2
3
1
2
75
74
65
66
41
23
13
6
7
2
4
2
3
1
2
73
66
39
24
11
6
6
2
4
2
4
1
2
74
74
66
39
26
12
12
6
8
2
4
2
2
1
2
74
68
40
42
18
18
9
9
5
7
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2192 queries.

Test #243:

score: 0
Accepted
time: 87ms
memory: 9244kb

input:

200
1
2
0
76
75
68
70
40
40
20
20
12
12
6
8
2
2
1
2
76
69
41
42
24
25
12
13
7
9
1
3
2
4
1
2
76
77
70
43
26
15
6
8
2
3
1
2
76
69
44
28
11
12
6
8
2
4
2
3
1
2
77
76
69
70
45
28
14
6
8
2
4
2
3
1
2
75
70
45
26
13
7
2
4
3
3
1
2
74
73
69
45
28
12
8
4
5
1
2
72
70
47
24
26
13
14
6
8
2
4
3
4
1
2
72
72
68
68
4...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2123 queries.

Test #244:

score: 0
Accepted
time: 85ms
memory: 9536kb

input:

200
1
2
0
81
82
69
70
36
37
23
25
12
13
6
8
2
4
2
3
1
2
81
69
37
25
13
6
2
4
2
4
1
2
81
80
70
38
25
15
6
7
2
3
1
2
79
69
37
22
12
12
6
6
2
2
1
2
80
79
67
67
39
23
25
11
13
7
7
2
4
2
4
1
2
78
66
39
24
12
14
6
7
2
3
1
2
77
77
66
39
24
12
6
6
2
4
2
2
1
2
77
68
40
40
20
20
12
14
6
6
2
4
2
4
1
2
78
78
64...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2115 queries.

Test #245:

score: 0
Accepted
time: 71ms
memory: 9312kb

input:

200
1
2
0
81
80
71
73
39
39
22
22
11
11
6
8
2
4
2
2
1
2
79
73
39
22
11
8
4
4
1
2
80
80
72
41
43
24
25
12
13
6
7
2
3
1
2
80
72
43
25
13
7
3
1
2
81
81
73
73
42
23
24
13
15
6
7
2
3
1
2
81
75
38
40
23
23
12
12
6
6
2
4
2
4
1
2
80
79
73
44
27
11
13
6
6
2
4
2
4
1
2
78
73
44
27
13
7
3
1
2
76
76
74
74
42
43
...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2134 queries.

Test #246:

score: 0
Accepted
time: 87ms
memory: 9504kb

input:

200
1
2
0
79
78
64
65
36
38
22
24
12
14
6
8
4
5
2
4
1
2
78
65
38
24
12
6
8
2
4
2
2
1
2
77
77
66
37
21
23
10
12
6
8
2
4
2
3
1
2
76
65
39
23
11
13
6
7
2
4
2
4
1
2
77
77
65
67
42
42
20
22
12
14
6
6
2
4
2
2
1
2
77
65
39
23
11
6
6
2
4
2
2
1
2
76
78
60
59
41
42
24
26
12
13
6
8
2
4
2
3
1
2
76
65
37
23
10
6...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2160 queries.

Test #247:

score: 0
Accepted
time: 72ms
memory: 9488kb

input:

200
1
2
0
86
85
64
64
42
44
23
23
12
12
5
7
2
2
1
2
84
66
39
41
24
24
12
14
6
8
2
2
1
2
85
84
65
43
23
24
12
14
6
8
2
4
2
4
1
2
85
67
37
39
24
26
12
14
6
8
4
6
2
3
1
2
86
85
63
62
44
25
14
8
4
3
1
2
84
62
45
26
13
6
8
2
4
2
3
1
2
82
81
64
38
37
20
19
11
11
6
6
2
2
1
2
80
64
36
20
13
6
8
2
3
1
2
80
8...

output:

? 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2074 queries.