QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189436#7510. Independent Setucup-team1209#AC ✓206ms6476kbC++204.2kb2023-09-27 15:00:282023-09-27 15:00:29

Judging History

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

  • [2023-09-27 15:00:29]
  • 评测
  • 测评结果:AC
  • 用时:206ms
  • 内存:6476kb
  • [2023-09-27 15:00:28]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define rep(i,x,y) for (int i=(x);i<=(y);i++)
#define drep(i,y,x) for (int i=(y);i>=(x);i--)
#define pii pair<int,int>
#define fir first
#define sec second
#define MP make_pair
template<typename T> bool chkmin(T &x,T y){return x>y?x=y,1:0;}
template<typename T> bool chkmax(T &x,T y){return x<y?x=y,1:0;}
void file() {
    #ifdef zqj
    freopen("a.in","r",stdin);
    #endif
}
typedef long long ll;
#define sz 4444

ll seed=time(0)+(size_t)(new char);

int n;
vector<int>V[sz];
int e[sz][sz];

void init() {
    #ifdef zqj
    n=4000;
    mt19937 rng(seed);
    int m=10000;
    rep(_,1,m) {
        int x=rng()%n+1,y=rng()%n+1;
        ++e[x][y];
        if (y!=x) ++e[y][x];
    }
    #endif
}

vector<int> ask(vector<int>v) {
    #ifdef zqj
    static int tot=0;
    tot+=v.size();
    assert(tot<=176000);
    // printf("? %d ",(int)v.size());
    // for (auto x:v) printf("%d ",x);
    // puts("");
    vector<int>S,res;
    for (auto x:v) {
        int cc=0;
        for (auto y:S) cc+=e[y][x];
        if (!cc) S.push_back(x);
        res.push_back(cc);
    }
    // for (auto x:res) printf("%d ",x);
    // puts("");
    return res;
    #else
    printf("? %d ",(int)v.size());
    for (auto x:v) printf("%d ",x);
    puts("");
    fflush(stdout);
    vector<int>res(v.size());
    rep(i,0,(int)v.size()-1) cin>>res[i];
    return res;
    #endif
}

vector<int> concat(const vector<int>&L,const vector<int>&R) {
    vector<int>res=L;
    res.insert(res.end(),R.begin(),R.end());
    return res;
}

void solve(vector<int>L,vector<int>_R,vector<int>_deg) {
    int m=L.size();
    if (!m) return;
    vector<int>R,deg;
    rep(i,0,(int)_R.size()-1) if (_deg[i]) R.push_back(_R[i]),deg.push_back(_deg[i]);
    if (m==1) {
        rep(i,0,(int)R.size()-1) rep(_,1,deg[i]) V[R[i]].push_back(L[0]),V[L[0]].push_back(R[i]);
        return;
    }
    vector<int>L1(L.begin(),L.begin()+m/2),L2(L.begin()+m/2,L.end());
    auto res=ask(concat(L1,R));
    map<int,int>rnk; int cc=0;
    for (auto x:R) ++cc,rnk[x]=cc;
    vector<int>deg1,deg2,R1,R2;
    rep(i,0,(int)R.size()-1) {
        int d=res[i+L1.size()];
        for (auto v:V[R[i]]) if (rnk.count(v)&&!res[rnk[v]-1+L1.size()]&&rnk[v]<rnk[R[i]]) --d;
        if (d) deg1.push_back(d),R1.push_back(R[i]);
        if (d!=deg[i]) deg2.push_back(deg[i]-d),R2.push_back(R[i]);
    }
    solve(L1,R1,deg1),solve(L2,R2,deg2);
}

void solve(vector<int>id) {
    vector<int>ww=ask(id);
    vector<int>L,R;
    rep(i,0,(int)id.size()-1) if (!ww[i]) L.push_back(id[i]); else R.push_back(id[i]);
    if (!R.size()) {
        // for (auto x:L) {
        //     auto res=ask({x,x});
        //     rep(_,1,res[1]) V[x].push_back(x);
        // }
        return;
    }
    solve(R);
    vector<int>vv=concat(L,R);
    map<int,int>rnk; int cc=0;
    for (auto x:R) ++cc,rnk[x]=cc;
    auto res=ask(vv);
    vector<int>deg(R.size());
    rep(i,0,(int)R.size()-1) {
        int d=res[i+L.size()];
        for (auto v:V[R[i]]) if (rnk.count(v)&&!res[rnk[v]-1+L.size()]&&rnk[v]<rnk[R[i]]) --d;
        deg[i]=d;
    }
    solve(L,R,deg);
    // rep(i,0,(int)L.size()-1) rep(_,1,res[i+L.size()]) V[L[i]].push_back(L[i]);
}

int main() {
    srand(seed);
    cerr<<seed<<'\n';
    init();
    #ifndef zqj
    cin>>n;
    #endif
    vector<int>id;
    rep(i,1,n) id.push_back(i);
    random_shuffle(id.begin(),id.end());
    solve(id);
    rep(i,1,n) {
        vector<int>v({i,i});
        auto res=ask(v);
        rep(_,1,res[1]) V[i].push_back(i);
    }
    #ifdef zqj
    // rep(i,1,n) {
    //     rep(j,1,n) cerr<<e[i][j]<<' ';
    //     cerr<<'\n';
    // }
    // int m=0;
    // rep(i,1,n) for (auto v:V[i]) if (v<=i) ++m;
    // cerr<<m<<'\n';
    // rep(i,1,n) for (auto v:V[i]) if (v<=i) cerr<<i<<' '<<v<<'\n';
    rep(i,1,n) for (auto v:V[i]) if (v<=i) {
        --e[i][v];
        if (v!=i) --e[v][i];
    }
    rep(i,1,n) rep(j,1,n) assert(!e[i][j]);
    puts("OK");
    #else
    int m=0;
    rep(i,1,n) for (auto v:V[i]) if (v<=i) ++m;
    printf("! %d ",m);
    rep(i,1,n) for (auto v:V[i]) if (v<=i) printf("%d %d ",i,v);
    fflush(stdout);
    #endif
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
0 1 0 0
0
0 0 0 3
0 1
0 0
0 0
0 0
0 0
0 1

output:

? 4 3 1 4 2 
? 1 1 
? 4 3 4 2 1 
? 2 3 1 
? 2 4 1 
? 2 1 1 
? 2 2 2 
? 2 3 3 
? 2 4 4 
! 4 2 1 2 1 3 1 4 4 

result:

ok Ok, Accepted!

Test #2:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1242 3388 1979 2271 3322 2663 46 942 3756 2816 2107 2492 3699 3156 2784 2539 3016 3946 1398 3299 805 3394 1362 1385 945 2293 1389 605 1029 3089 2654 3566 1513 1302 3336 865 2603 2804 2878 2886 1939 216 403 3122 2170 1045 1673 3090 1137 1766 1015 851 663 2497 3450 365 195 2457 3057 1359 237 13...

result:

ok Ok, Accepted!

Test #3:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0...

output:

? 4000 1081 3076 1873 53 3118 3706 3053 3452 3850 3244 2444 261 2463 3502 3326 2212 1092 3381 1392 2387 2220 2909 1585 183 2343 913 480 115 3815 2084 3624 3556 152 754 3606 3340 3287 3618 867 134 1779 2598 2628 893 2498 2707 1927 610 337 2790 2308 781 3847 968 1646 120 380 3922 2143 694 3355 2563 21...

result:

ok Ok, Accepted!

Test #4:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 45 3736 115 183 1020 1388 971 3687 3044 1820 2045 2079 2997 2091 2742 2874 3742 3347 458 2699 3159 731 1297 2243 3534 867 2355 1654 579 1878 3872 1301 3921 112 1688 670 3924 3359 1618 1356 1926 2007 2727 413 2135 787 747 2190 3407 2029 1970 2683 1524 3818 3077 1626 343 1332 805 3095 1033 1143...

result:

ok Ok, Accepted!

Test #5:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0...

output:

? 4000 3980 3347 185 1863 3475 3730 130 2043 2478 2058 1576 3480 1561 3269 3027 3952 2089 769 766 469 2473 1771 1983 3702 2759 2093 1233 2938 1805 2593 1492 1918 3838 678 2135 3277 3902 459 1008 293 1065 467 2173 865 2462 588 3010 3461 256 839 2422 1074 852 782 1041 343 424 2565 1228 3117 3297 3562 ...

result:

ok Ok, Accepted!

Test #6:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1...

output:

? 4000 1521 1662 2385 3237 468 1747 324 1685 3750 2697 377 688 1047 1817 19 82 3477 3580 1160 563 2307 453 635 1634 3276 647 3728 522 2649 3285 1807 1779 3464 1131 976 1682 2491 583 1762 2616 2014 3449 2840 516 1133 1457 1075 2063 2514 3647 3340 1710 1241 1627 495 1831 2906 3565 2074 401 1862 1324 3...

result:

ok Ok, Accepted!

Test #7:

score: 0
Accepted
time: 57ms
memory: 4792kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 3274 968 1841 3665 1487 3099 3188 1035 1113 457 3204 3972 1448 485 152 1378 2447 1758 1059 1888 332 2327 880 3843 1774 1458 712 2163 2373 3744 2349 1417 1191 3918 2371 2681 2390 2218 2550 2689 669 1595 415 784 1626 3936 3628 3350 1778 1337 2353 2775 655 3373 2437 483 589 1068 3022 246 1164 12...

result:

ok Ok, Accepted!

Test #8:

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

input:

4000
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2759 653 377 362 838 1382 3166 250 2360 3216 1923 968 3750 1733 628 1212 2625 2220 2018 2888 2319 3746 571 704 2132 1114 2820 475 3284 1007 3562 3785 2648 1176 1255 1823 3810 1190 1110 1361 1969 21 3834 2796 611 3152 810 3927 2630 3146 1572 32 3362 408 1188 1245 1173 2412 2987 843 2620 2961 3...

result:

ok Ok, Accepted!

Test #9:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 1359 3181 2939 213 3502 3455 646 896 2260 2168 3279 577 3578 1251 395 1140 2446 1158 1272 2481 2527 1803 3239 2101 1939 71 45 2284 2441 1763 262 1019 3198 205 2930 1034 1731 3190 3695 1583 3410 2368 3544 2288 1743 474 604 1711 1668 1963 1190 2256 3772 1596 115 1476 2085 2999 3866 2880 2878 15...

result:

ok Ok, Accepted!

Test #10:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0...

output:

? 4000 2528 3712 2144 2337 3473 691 3506 3302 1554 97 2019 139 232 465 1889 2552 42 2022 966 2955 374 355 2211 3863 1872 1162 3074 249 1352 3496 851 862 3040 3432 148 1828 2545 1589 619 1269 1537 941 1087 2035 594 3565 1887 2360 984 457 308 1808 3772 404 1156 2462 194 706 1976 3254 1340 1777 3091 26...

result:

ok Ok, Accepted!

Test #11:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 918 3439 1145 1446 2905 3239 3209 1479 772 253 1536 539 1508 2096 3873 1178 374 1673 183 1376 3589 3839 1424 3153 1144 2188 666 2598 1611 459 1866 3772 3908 2727 150 20 1793 2798 3602 3337 3177 3782 2178 2766 2597 3224 3146 2920 1020 134 1335 2622 1430 1584 579 1842 2796 350 1019 1624 680 100...

result:

ok Ok, Accepted!

Test #12:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0...

output:

? 4000 735 1630 3282 3085 2453 2380 2742 951 59 2787 1832 1587 365 3377 190 3000 2928 854 816 2267 3454 2505 1392 807 393 1350 3979 1847 2305 3838 1674 1951 3834 740 345 1651 3995 1655 1417 694 2165 1812 804 258 2196 1295 815 3384 588 551 3942 2623 713 2161 2614 1189 93 394 630 1972 2713 576 2567 22...

result:

ok Ok, Accepted!

Test #13:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2...

output:

? 4000 2577 2926 2891 1844 2884 2035 2046 643 3127 3363 990 695 456 3836 669 1217 3388 3910 2346 2955 2480 3427 1847 2552 2380 446 274 168 2260 591 1869 2920 3818 3424 353 1029 3838 1015 1954 1008 933 150 1124 3562 2694 2171 2619 738 2927 3521 1132 6 3847 3770 914 3250 203 3460 1826 3809 735 2899 20...

result:

ok Ok, Accepted!

Test #14:

score: 0
Accepted
time: 60ms
memory: 5056kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0...

output:

? 4000 986 3026 165 345 267 3754 2831 2348 244 1129 1768 3705 1752 3918 3806 592 3615 26 2950 1063 2682 3687 2172 1823 3501 2287 1733 3097 2675 3078 687 3996 1665 3337 825 1112 2382 34 755 3187 3256 395 1776 481 1813 1763 206 3490 1036 2820 95 919 2370 1659 3047 151 2518 3196 3481 2028 1585 2723 277...

result:

ok Ok, Accepted!

Test #15:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2351 1610 2308 1584 432 3171 3444 3915 423 2202 552 3413 403 2994 812 2869 2795 1682 644 1085 2727 3910 977 2149 2860 3112 1835 1301 1956 2784 564 962 1945 884 1905 2505 1493 2862 1274 3582 3862 1575 3375 1716 621 1315 1269 3682 1185 3835 413 2552 2749 1000 882 2592 3647 3776 2538 76 535 936 ...

result:

ok Ok, Accepted!

Test #16:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0...

output:

? 4000 1702 3219 356 673 1910 2825 2181 2673 817 3660 2141 1790 901 1787 302 3630 2820 749 1938 402 3447 2679 1699 3945 2202 3135 3793 2732 1164 1970 1367 3703 375 995 3075 2821 1510 389 2796 572 2807 344 1718 3053 695 3764 1203 2498 1364 2634 3483 1748 2571 3952 3920 1057 3059 3319 78 627 7 3988 66...

result:

ok Ok, Accepted!

Test #17:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 1957 3213 3461 3330 795 2219 3680 2538 1851 1096 127 771 3521 3829 550 1130 1266 3991 2214 2985 2352 1864 3075 1822 1452 3123 221 3442 1684 2034 3930 781 3891 602 3269 3643 1263 3074 457 3823 3062 630 390 840 2426 2307 2922 828 1119 1350 1065 359 1739 3180 3856 2708 1238 3151 347 3493 408 575...

result:

ok Ok, Accepted!

Test #18:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0...

output:

? 4000 752 3339 825 1545 1110 692 829 2988 1316 1304 1154 1722 2411 93 501 400 860 2348 2567 1798 3948 2962 259 11 1575 1900 464 2726 3981 2464 1301 1760 3818 3853 1067 4000 2745 1037 2159 3545 1911 3705 2857 2908 583 915 2932 1524 3892 1822 336 1128 2388 2741 944 1332 1579 285 3342 3689 907 1998 27...

result:

ok Ok, Accepted!

Test #19:

score: 0
Accepted
time: 57ms
memory: 5048kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 281 882 2906 3085 1087 2796 1041 144 2050 2178 3558 3363 2268 1179 3870 2036 2681 1630 2429 2354 52 3573 2159 1855 3872 3871 2157 3694 1641 289 3313 2934 1839 3516 1112 2517 1495 3021 1832 3911 1349 1072 2569 1943 2007 914 2812 405 1531 1323 1516 3205 37 1045 2322 1633 1602 332 1329 2086 666 ...

result:

ok Ok, Accepted!

Test #20:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 398 2910 346 2107 948 2705 602 472 708 1876 1130 1507 985 3806 3008 3849 2204 466 2316 841 648 2051 2674 1452 1199 3841 727 494 2912 1781 1909 3121 1955 3382 3229 783 968 2001 3735 2914 584 3125 1306 3320 689 697 3661 3855 309 2773 336 1915 1787 2734 2008 1736 3694 3012 1603 2209 1590 3219 12...

result:

ok Ok, Accepted!

Test #21:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0...

output:

? 4000 887 3727 558 367 1115 3633 3558 866 2445 3322 3410 1337 336 1164 2227 494 2240 3212 3243 1298 3977 3818 1889 2359 2803 2446 2184 2316 1083 135 789 505 793 2307 979 3381 98 219 1353 2166 3536 1903 1803 363 624 1893 3134 1926 2950 3224 2150 1759 3741 659 3208 280 3872 173 2277 148 3773 1069 542...

result:

ok Ok, Accepted!

Test #22:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 1 0 0...

output:

? 4000 1236 3414 1996 3683 2066 312 152 1420 1246 1424 2818 2412 3068 1777 3613 2913 1439 605 3333 3562 2323 1426 1804 3227 2907 2044 1929 1740 3588 1682 308 3148 2970 1549 537 1752 2051 3111 3290 1222 1739 3799 563 3187 2275 1020 767 1618 2937 1512 2749 3291 3368 2326 2731 307 1603 3797 2869 1786 1...

result:

ok Ok, Accepted!

Test #23:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 805 1701 1099 2712 1591 799 2437 3742 658 1649 3386 971 1774 715 1514 2080 2907 3128 51 1394 2653 1288 2919 1646 2021 1323 3785 3639 2698 2663 1147 1761 3101 2867 3362 2729 1150 2031 3507 1608 183 1274 512 843 2449 1171 2207 1155 3615 1868 1983 3289 1105 2247 835 1552 976 1408 2179 3674 3614 ...

result:

ok Ok, Accepted!

Test #24:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0...

output:

? 4000 2575 1939 3270 1786 2633 175 283 3276 76 142 3104 385 1191 3642 1906 123 2849 3846 575 2220 2690 1804 2008 2355 3856 3301 3792 1697 318 1812 1357 3636 1447 3858 1790 2423 2128 2594 3309 2208 1270 1005 278 269 1785 237 3128 2723 3772 3776 1797 1090 2332 8 3843 3587 2235 1372 241 381 3468 2111 ...

result:

ok Ok, Accepted!

Test #25:

score: 0
Accepted
time: 102ms
memory: 4720kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0...

output:

? 4000 573 3765 1754 935 2392 1878 163 1455 1633 2589 3361 924 2955 1240 1528 301 2246 1967 3856 2872 2473 1888 1442 1138 3312 2770 2744 1170 252 2889 3465 386 3369 333 1397 2467 2364 467 3124 3893 3028 3874 179 1055 206 3272 1719 715 1944 2109 2239 825 1820 2134 777 2060 1454 3376 1333 618 1239 101...

result:

ok Ok, Accepted!

Test #26:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0...

output:

? 4000 1068 3284 1202 218 283 3780 2882 3453 1296 2833 3557 3661 1144 1918 3994 1364 2246 3529 230 1617 2947 2023 3823 3753 1943 2869 3624 3944 3524 2782 3521 650 2181 2677 1650 2096 1114 962 721 3537 1797 1186 1982 3599 1750 1024 2360 1033 2034 3996 3574 736 208 1379 1678 1702 3860 234 2914 2036 17...

result:

ok Ok, Accepted!

Test #27:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1...

output:

? 4000 3168 675 3213 1065 2767 2060 3636 240 3537 844 2855 1372 3208 1143 3824 1988 1259 710 694 3122 43 1375 2035 268 2245 3230 3113 2293 3986 2938 36 1793 185 61 2498 758 3730 2640 1702 1979 2841 2428 68 79 1017 3792 504 336 396 2806 571 1054 660 3321 496 3674 3056 343 1326 449 3258 3610 574 584 3...

result:

ok Ok, Accepted!

Test #28:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0...

output:

? 4000 1949 2267 3497 2683 1214 2750 1411 539 2397 323 3354 1460 3772 474 2798 1287 2553 3660 3659 3090 26 1200 2020 1100 1210 3225 423 3179 1663 3077 1081 1527 324 2620 2484 127 3 2472 1382 2625 83 482 2391 2389 108 1737 2898 468 281 3721 1723 314 3716 629 3298 1194 733 3613 910 3987 1387 1299 1587...

result:

ok Ok, Accepted!

Test #29:

score: 0
Accepted
time: 52ms
memory: 4452kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 2038 3572 3093 3680 3824 2386 2783 1026 1910 3370 785 3139 1192 2059 403 2659 164 695 2520 2014 1290 1622 1412 3267 2716 182 111 1282 1461 2619 3482 3431 2132 1815 1714 2725 2082 3371 2817 1898 436 59 3026 822 612 2401 1784 280 1628 3938 3708 2015 3280 831 2957 3464 2212 3253 2955 3011 1951 2...

result:

ok Ok, Accepted!

Test #30:

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

input:

4000
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 454 3465 3223 3712 1791 2703 2795 1895 201 2266 3943 2837 3233 619 951 3848 841 1140 2039 1650 608 1716 2076 2974 908 3953 1054 204 3228 3358 3645 735 2636 2156 3404 1734 3453 1942 2479 2810 1813 152 1102 3900 2116 2274 2739 601 2311 2983 1745 788 3338 1414 3283 2251 226 3113 1514 1415 364 80...

result:

ok Ok, Accepted!

Test #31:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 145 2571 3980 942 3780 1981 3216 2891 1234 1658 877 1791 432 3182 364 1460 3682 1277 291 3793 1269 1745 777 3499 806 3046 1417 3552 3040 3561 1181 3806 1201 2234 1839 2195 1926 2839 983 1109 1598 556 771 3189 3329 558 3062 257 3377 3272 3611 1777 2190 1015 1833 3598 2551 773 1647 1572 270 216...

result:

ok Ok, Accepted!

Test #32:

score: 0
Accepted
time: 58ms
memory: 5028kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1...

output:

? 4000 503 3815 3961 3070 852 3951 2027 2395 3291 2445 2137 10 639 3219 3688 3360 1965 3100 2084 3751 1142 1146 2876 815 3848 1899 1301 1953 163 33 3874 3733 700 1908 2670 395 985 2802 1178 3325 227 462 507 3637 3701 459 2450 3454 2624 3518 1123 764 1572 3487 965 3790 2538 3617 2850 2380 3982 1839 3...

result:

ok Ok, Accepted!

Test #33:

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

input:

4000
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 726 3275 3795 2330 622 250 4000 2730 1453 3772 407 648 2486 1458 1215 3740 1910 3813 40 295 2624 3092 3937 2327 2718 3704 1898 2636 467 3837 2546 1129 3608 3200 1847 991 1413 1792 1805 3863 3466 3083 612 439 2320 3386 1634 2340 2950 3628 851 970 651 2305 2807 2565 2207 3713 3725 2936 2657 542...

result:

ok Ok, Accepted!

Test #34:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1223 980 366 3267 944 767 28 3813 3840 3949 1799 1060 858 322 3902 1796 2423 3523 754 126 3125 1180 2992 931 225 146 958 1718 3837 1380 3529 937 1668 3354 1761 1337 3213 2354 3726 1658 3100 2114 1158 2038 3799 2896 1527 228 304 1087 2252 3233 865 1782 2153 3688 1254 761 3367 3619 3172 3746 16...

result:

ok Ok, Accepted!

Test #35:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 3680 43 1843 2901 1550 2203 1904 1141 2358 2429 2851 1625 67 1936 1319 2461 860 2924 1975 1685 266 3005 2817 3367 591 3696 3572 3464 2554 2259 2850 3786 793 3223 1033 906 627 2473 2529 1166 3101 2213 1306 239 488 1273 744 1911 305 2168 2739 595 1375 3908 1713 3986 1737 2294 2098 2232 371 661 ...

result:

ok Ok, Accepted!

Test #36:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0...

output:

? 4000 2616 1388 3976 1539 1421 1920 2387 3840 3163 1853 1620 2406 2416 3815 3081 3463 225 1005 1321 3635 3693 1634 3323 3981 2953 156 3824 3593 3825 482 3555 844 3687 579 2747 343 3809 1817 336 1428 3001 1778 845 1021 1105 1306 401 3521 2154 2757 2249 439 3978 2956 1751 3571 1429 100 1380 1178 1292...

result:

ok Ok, Accepted!

Test #37:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0...

output:

? 4000 565 2366 873 2967 739 1582 3039 3606 122 2188 2376 865 1690 2665 1761 3721 2941 2250 3764 1119 488 2307 1285 1577 2310 1270 1159 3954 3258 2179 1039 500 322 2772 617 1703 2245 1515 2283 3633 1910 2928 267 3445 1099 233 232 2995 926 2528 1715 1879 2222 3813 1601 2703 3044 522 2292 2506 2456 25...

result:

ok Ok, Accepted!

Test #38:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1771 3434 1417 2300 2071 2061 534 3770 3588 3785 1659 827 3632 805 3551 344 3926 1509 1357 671 2508 1169 2067 1839 1038 1256 216 1125 1926 1513 1399 1458 3573 2192 2344 2390 384 3544 554 3517 2333 1651 2169 3962 3391 517 1667 2536 1711 3847 1859 3204 1575 281 3617 3344 2368 1820 2151 3729 298...

result:

ok Ok, Accepted!

Test #39:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 2 2 0 1 0 0 0 1 0...

output:

? 4000 3211 467 1589 2038 3147 2014 3464 1991 1812 1167 567 3014 3717 3792 2878 1692 3831 1537 3490 3401 883 3342 672 3602 2552 1682 1212 151 2648 2159 2984 1230 3995 308 8 678 1605 2484 877 1686 722 2658 1906 564 2689 3199 2192 3693 3010 1270 198 2839 2220 3631 192 3398 1485 2666 2856 1414 870 278 ...

result:

ok Ok, Accepted!

Test #40:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2380 1248 3824 3862 2618 1630 533 1413 912 99 259 2072 2612 2543 851 3783 709 2294 2679 58 2010 3515 544 1825 283 2731 3988 1084 2924 3216 1687 3454 2056 2169 1151 2165 3093 240 2215 2851 3894 2226 1721 586 1964 3438 2260 1977 2971 1808 1246 1334 12 3753 92 2553 1722 2230 2855 2229 3424 857 1...

result:

ok Ok, Accepted!

Test #41:

score: 0
Accepted
time: 206ms
memory: 4456kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1773 300 2526 2528 2585 1225 3378 844 2199 3297 1840 2779 1221 3970 2198 2158 3986 563 3070 2117 738 55 92 2980 3156 670 2366 3565 1175 3779 712 928 1184 2095 2395 3315 2417 2226 1772 1538 1616 2018 2470 1424 3916 1320 343 2787 3590 911 2839 2878 1565 1223 1220 2818 2817 608 3618 440 3580 283...

result:

ok Ok, Accepted!

Test #42:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 461 3895 2080 2 3782 2168 373 3382 160 1133 1603 3368 31 3266 2930 1118 2780 1648 2479 1474 445 3597 2197 603 3043 3947 2563 1993 774 1896 1638 153 239 799 3901 1153 816 2551 3714 2858 192 3753 1989 1020 2421 3100 2466 1136 2560 2196 1739 932 3236 1869 2677 427 348 2895 824 791 643 2575 1357 ...

result:

ok Ok, Accepted!

Test #43:

score: 0
Accepted
time: 59ms
memory: 4576kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 206 3713 1833 3022 2574 2786 1504 3541 993 1516 1681 163 1471 1532 24 1623 973 3217 125 1804 1388 28 3459 2350 1463 793 3765 693 2231 2865 1572 1396 3333 3680 2678 477 3669 3545 1670 269 1625 3520 3050 1713 3731 16 841 773 3748 3355 561 3888 1314 1375 2836 2573 2761 1493 694 534 1492 1445 275...

result:

ok Ok, Accepted!

Test #44:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 1041 3205 2225 3233 1259 2275 3984 1917 484 3633 1070 2607 2419 1155 2535 433 318 1503 146 847 1488 868 2721 1092 2574 3153 293 876 366 846 1590 1742 691 3890 2728 2903 2440 1961 786 3470 1264 1358 423 2667 1764 2531 441 2725 1957 2431 2735 901 3049 2432 3987 757 1707 1815 1276 2121 2430 1153...

result:

ok Ok, Accepted!

Test #45:

score: 0
Accepted
time: 64ms
memory: 5024kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 2 1 1 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0...

output:

? 4000 1600 1852 2484 957 3660 2865 2600 482 3392 273 631 3290 1076 2026 2962 2202 922 1690 226 2214 2312 996 62 794 3330 2933 3728 1963 3855 133 1006 1017 2810 2651 1312 3961 3486 1443 3067 512 2280 2415 2739 2203 3058 3768 3597 2709 2551 104 1922 1271 589 3505 3344 3151 380 878 3382 1562 1007 1191...

result:

ok Ok, Accepted!

Test #46:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0...

output:

? 4000 11 2399 1016 1139 1418 3428 1996 2033 1618 3751 2042 3002 655 517 1266 2545 3226 2337 2140 2474 2148 1716 685 1620 2145 1286 1960 830 3184 1820 1099 2482 2595 2019 2095 1832 2118 22 3305 2308 3982 3551 2100 3678 3802 2901 3083 1417 1599 2567 3441 1866 3170 1011 3101 2767 2580 2251 2719 205 10...

result:

ok Ok, Accepted!

Test #47:

score: 0
Accepted
time: 60ms
memory: 4640kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0...

output:

? 4000 786 3996 3428 728 3118 460 384 2476 2043 1108 3911 3415 3674 2632 2731 198 1642 574 2346 450 3989 3285 2965 1338 1792 1704 730 301 974 1097 1414 2524 1461 1944 3416 1737 1065 3425 2050 3366 1589 1457 645 962 3620 2353 2379 3073 3518 19 2777 724 3635 868 259 3795 1086 3088 2525 3974 194 3698 3...

result:

ok Ok, Accepted!

Test #48:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 3538 2903 2260 494 676 3831 2285 1846 370 2259 2962 3767 2232 3861 842 2134 2408 1023 930 1347 3733 999 575 647 1709 1279 3910 666 819 1115 1770 261 372 369 1105 1782 1011 1177 500 3126 1901 2319 1861 2009 2423 3857 2246 1731 2409 3384 845 2514 174 391 1641 1634 3871 3754 1124 3580 3426 2578 ...

result:

ok Ok, Accepted!

Test #49:

score: 0
Accepted
time: 51ms
memory: 4980kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0...

output:

? 4000 449 3282 3997 765 3886 587 3200 1632 2437 1622 2397 1544 2457 3689 1782 2425 540 3738 3775 2897 2157 2155 488 2986 2735 1498 3917 2047 1211 2746 1362 1178 118 374 1133 248 3712 2542 3725 2162 1949 1571 257 2055 2126 2177 553 3127 391 3495 10 992 3494 3001 909 1242 2815 1618 303 2150 799 2133 ...

result:

ok Ok, Accepted!

Test #50:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 1 1 0 0 0 1 0 1 0 0 1 0...

output:

? 4000 2917 1810 2827 1933 1293 2755 1057 3710 2839 2075 3984 2617 2080 1880 2726 3443 2990 3808 2722 329 3726 2687 616 833 2125 1979 688 3408 1407 3397 841 2623 2444 3126 2538 73 387 1665 1771 35 316 579 2948 1800 1404 3134 431 1237 649 1584 2609 3979 696 1987 600 475 1110 3777 677 3163 444 2916 29...

result:

ok Ok, Accepted!

Test #51:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 631 1258 330 3909 7 2227 347 2152 710 208 1387 302 1240 1590 2838 1756 1644 701 304 1454 21 982 3164 902 2768 364 669 595 1177 57 2873 447 3924 2143 760 2640 618 285 1203 1407 999 1448 2101 219 2273 360 2159 713 3600 3076 3786 2254 3823 528 3975 756 3679 2860 1665 3251 34 3702 2740 1513 1410 ...

result:

ok Ok, Accepted!

Test #52:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1...

output:

? 4000 742 236 1067 1291 1426 2013 3369 2098 178 2247 1452 854 1935 2596 472 2218 224 2844 1212 2207 1875 3338 1996 1172 1504 1540 2950 3073 3010 3936 1750 83 1300 3352 2913 2901 2181 2342 1188 2457 2953 754 1755 2152 1230 404 888 3658 2605 712 1977 343 1128 3449 3139 1902 1707 3944 2250 3509 2074 1...

result:

ok Ok, Accepted!

Test #53:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0...

output:

? 4000 1415 2796 3708 44 2158 1120 2397 1067 1462 1909 1705 1634 1352 2943 1944 3655 2173 3877 2211 958 3973 3187 2902 40 2486 3143 147 638 2312 2688 1823 3691 2656 2907 2973 1778 423 1025 3177 1729 2514 3071 3368 2526 2537 752 519 901 287 1793 1026 3861 2680 961 3976 2852 2475 1380 1338 2675 2105 2...

result:

ok Ok, Accepted!

Test #54:

score: 0
Accepted
time: 59ms
memory: 4920kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0...

output:

? 4000 2366 2001 863 658 2669 2392 3088 2552 3257 2378 1088 458 2134 179 1437 1307 683 2323 3493 2118 2551 3897 2211 3541 765 787 2981 1878 2891 1564 3565 3572 3025 284 539 1213 2569 2229 1371 1312 3750 221 987 1476 1951 2695 273 3144 1972 3647 3523 745 1511 47 3001 3665 271 2185 429 3956 2680 3368 ...

result:

ok Ok, Accepted!

Test #55:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0...

output:

? 4000 1650 3596 3616 1442 2520 2322 3294 893 3785 3548 2851 1225 2984 302 771 1502 2272 3531 1476 1205 476 848 1811 542 1300 3732 3579 3412 1291 2738 3336 1572 1479 1829 900 1951 1619 2972 2980 3763 3321 1030 1100 3147 2557 3538 3931 3654 3511 1407 3974 3361 2406 35 1399 2368 2074 2088 1614 3577 23...

result:

ok Ok, Accepted!

Test #56:

score: 0
Accepted
time: 51ms
memory: 4600kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 2 1 0 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 798 1217 2947 129 2895 2890 1819 3150 3421 2774 1428 3085 2531 946 1259 2185 1809 2014 2502 2196 815 3704 3678 1272 3479 766 219 3701 3659 814 1315 3970 2616 740 1067 657 948 3554 1699 1914 1271 3677 1779 3960 548 2245 1743 794 427 3991 3184 3547 334 2244 2892 3649 3990 1729 2066 3671 1733 36...

result:

ok Ok, Accepted!

Test #57:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 3 0 0 0 0 0 1 0 0 1 0 0 0 0 0 2 0 0 0 0 0...

output:

? 4000 1660 270 3382 98 1947 408 1846 3565 3013 3057 3015 900 889 1416 301 3112 2722 3453 1273 389 1135 3814 230 3394 2489 3272 1415 2713 628 369 407 1101 192 1570 1606 2787 994 1773 3177 532 2124 1232 1862 1065 16 1582 3746 3170 1252 589 1349 3835 541 2066 2799 3412 2614 1345 33 3401 3932 1522 1227...

result:

ok Ok, Accepted!

Test #58:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 3272 810 1752 2940 1520 2569 121 1202 1240 2116 2518 889 3370 394 2967 3003 526 1074 297 2530 1580 1120 2857 1549 2086 1844 205 3341 3739 3141 1731 3778 958 583 2900 863 126 3161 1032 2208 96 3943 2821 612 3104 1086 2422 2887 996 1005 2252 3020 899 586 5 334 74 824 2690 3805 3342 1813 35 913 ...

result:

ok Ok, Accepted!

Test #59:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0...

output:

? 4000 3021 32 1001 708 1675 2037 2821 2417 479 3616 3249 2160 1159 945 2011 2587 182 1314 335 2900 765 199 3741 2960 1094 3831 3754 3449 2719 557 3421 985 3776 2721 3763 300 3892 907 3836 1106 740 1457 734 2032 896 1210 2693 3724 1269 13 841 675 1559 2576 1804 494 145 2667 3972 3705 1489 2157 1972 ...

result:

ok Ok, Accepted!

Test #60:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0...

output:

? 4000 2145 796 1001 3208 2192 1496 204 2595 3179 2969 186 2321 3118 3156 3347 11 64 1486 3552 1588 665 1910 384 1334 2055 1718 1429 3164 1214 2761 2142 2721 946 696 1089 446 2810 2513 957 3437 2288 2210 2181 3946 1167 2433 3507 3544 99 428 14 3232 1082 179 2160 173 2702 1687 419 51 3727 305 3198 62...

result:

ok Ok, Accepted!

Test #61:

score: 0
Accepted
time: 53ms
memory: 4936kb

input:

4000
0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0...

output:

? 4000 1539 3986 3336 2200 32 600 3058 233 1204 641 3203 3076 384 590 3012 1671 2432 556 2336 881 2830 3192 3187 2712 361 381 1292 3516 912 2574 3746 2026 3255 3357 3703 294 1790 2653 2890 2276 59 1708 2248 1403 3553 1333 830 295 2210 2536 2695 1811 1677 1413 1929 697 1181 3461 2264 1807 2417 483 15...

result:

ok Ok, Accepted!

Test #62:

score: 0
Accepted
time: 50ms
memory: 4984kb

input:

4000
0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 1 0 0 1 1 0...

output:

? 4000 3215 322 638 527 1430 362 972 1814 3786 842 1050 3218 585 1059 3109 3391 1971 767 861 2134 2337 2741 2245 1123 2032 1206 1041 3937 1290 2774 3058 587 1505 2856 3360 678 2905 323 1969 329 925 3922 642 3441 190 2722 3436 3260 648 1539 36 3172 250 3293 457 1577 675 3475 3148 941 382 2265 2399 16...

result:

ok Ok, Accepted!

Test #63:

score: 0
Accepted
time: 100ms
memory: 4380kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1...

output:

? 4000 1287 3465 2700 1497 1041 3421 3797 380 3781 3783 1702 1205 3937 79 2157 3370 299 946 1107 2703 1658 2679 2031 3674 1319 2165 1502 3607 3181 2012 3597 1648 2533 2544 468 1144 1659 3455 3851 1005 2205 2007 3996 2756 3952 1570 2528 1795 3474 786 1925 2038 2273 1650 512 2100 2782 3224 3798 2627 2...

result:

ok Ok, Accepted!

Test #64:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 ...

output:

? 4000 809 438 1643 1572 1364 1050 3501 1433 985 247 3144 3304 3324 202 3644 3715 28 3709 3047 2757 83 3185 27 1995 2333 3633 3894 510 1696 1910 3937 3788 3949 818 2858 3553 2991 1085 2349 3657 427 2841 1389 3959 1596 2103 387 463 3738 3432 1605 848 3586 2314 1935 2 2450 2033 2195 3290 1265 1498 241...

result:

ok Ok, Accepted!

Test #65:

score: 0
Accepted
time: 140ms
memory: 4672kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 3188 1808 1505 467 134 2631 3031 2108 1852 358 3152 2734 3569 1458 1972 1700 2023 196 995 1484 581 3011 1132 416 3851 3947 432 3150 1447 2619 3443 129 2648 3545 1710 3961 546 3884 924 126 1434 214 2419 3410 2135 460 556 2628 1328 1576 692 2261 2979 364 2047 586 1389 3521 912 2924 2954 1865 33...

result:

ok Ok, Accepted!

Test #66:

score: 0
Accepted
time: 141ms
memory: 4580kb

input:

4000
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1606 1497 2291 1769 520 1122 1795 1328 1391 1563 2838 2619 618 2941 3366 1123 3157 3973 1936 3231 3265 3983 2723 360 258 2281 3877 3041 2929 1419 3720 2059 2818 2658 2959 423 354 2615 25 506 1921 3707 1600 1016 1047 1689 2529 3609 978 1203 3824 454 81 3564 2718 2540 2450 293 3362 2524 68 1605...

result:

ok Ok, Accepted!

Test #67:

score: 0
Accepted
time: 123ms
memory: 4784kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0...

output:

? 4000 3535 2753 2254 415 3801 1012 3152 3224 1764 3513 3136 1701 2149 2976 246 544 162 271 803 3506 365 347 625 3117 3527 2464 3495 1779 3118 3134 609 1878 2970 1059 2809 2324 3131 1171 2610 31 3939 3000 1465 850 3192 2210 1341 664 24 3253 357 2514 2274 3488 589 3713 1361 2906 757 1444 1364 399 102...

result:

ok Ok, Accepted!

Test #68:

score: 0
Accepted
time: 122ms
memory: 4884kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 560 3232 3762 2222 1603 1158 617 2733 527 3843 1877 2335 76 75 1795 3805 179 1777 1167 1317 2003 1196 1464 1243 2796 1067 1503 502 2246 1628 3961 1710 119 916 2344 2741 2663 3314 2374 20 2166 2746 55 2866 1461 3952 3865 2829 2729 618 865 1787 72 2322 1690 19 3945 424 1856 351 380 3727 748 102...

result:

ok Ok, Accepted!

Test #69:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2172 2036 2820 2739 833 483 3679 3436 313 818 3674 1498 1708 927 1210 465 2340 523 2233 2804 1385 66 20 2096 2187 3721 2997 938 3958 2637 2143 3995 521 909 3487 3423 1541 2690 577 2168 2962 2790 1283 2191 3164 1698 1976 721 2546 635 2353 866 1968 368 3800 1615 434 1229 3900 3803 1014 1537 178...

result:

ok Ok, Accepted!

Test #70:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2331 714 1057 2354 3210 3853 2839 2123 689 3328 2699 1886 3854 79 2087 664 229 3872 1289 1033 893 3658 3020 3402 470 1584 802 2949 3491 1437 3492 206 2828 2209 374 1191 2241 3934 3459 2023 3540 1781 1034 1891 2012 1094 2771 448 181 870 408 2965 2184 451 515 995 2589 3414 3955 177 2290 393 251...

result:

ok Ok, Accepted!

Test #71:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1332 2095 3134 1662 2135 2528 3673 852 923 3574 1765 3557 3207 2843 3512 2821 640 93 590 3414 2157 3360 3012 1107 2471 453 1824 3933 3272 2507 3999 2740 2428 2446 2664 1695 1201 981 2597 2691 3106 3510 1852 2192 2089 2026 3251 3851 10 1794 1957 42 1053 1707 917 2445 775 337 3364 3793 2233 268...

result:

ok Ok, Accepted!

Test #72:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 ...

output:

? 4000 830 2384 1007 1310 889 1758 3600 3828 2957 2653 3708 2383 2397 3336 3143 3869 1321 680 1178 1311 2703 1869 2611 1959 704 1600 661 329 1587 2826 964 636 740 440 913 3647 1719 1240 1805 454 3971 163 3112 377 3543 3970 225 3957 2098 3116 3159 1733 2844 2888 2873 1368 2039 195 3510 2083 1607 2825...

result:

ok Ok, Accepted!

Test #73:

score: 0
Accepted
time: 57ms
memory: 4268kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 205 1549 3369 1318 3866 799 656 2736 2489 315 641 2196 3485 2294 742 20 547 78 3240 3015 3549 2304 1102 3265 1688 2290 554 2346 3657 832 3012 2169 2358 1456 2700 3885 386 535 3401 3550 2475 844 2967 2858 2254 2146 2052 1407 3533 631 3940 795 971 3896 2014 2122 2926 3063 2465 938 2713 975 2626...

result:

ok Ok, Accepted!

Test #74:

score: 0
Accepted
time: 58ms
memory: 4268kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1358 1955 977 2235 2544 1006 665 3267 3462 2171 2102 3226 2920 3471 29 3273 3716 714 2803 2060 1190 1063 2678 937 1876 1293 3960 2801 2829 949 3325 3364 2519 2269 670 3505 1863 2872 1983 3112 913 2093 2365 1472 139 969 84 3402 3349 1834 3117 551 1367 912 1502 1941 1320 3392 3637 567 2123 2703...

result:

ok Ok, Accepted!

Test #75:

score: 0
Accepted
time: 49ms
memory: 4180kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 1411 1018 3138 3639 3982 2314 1505 1233 262 3227 1793 833 1048 3411 2841 2600 3136 2774 1532 9 1220 127 2962 440 3410 478 2535 1168 3687 3974 2457 2555 659 3323 3652 1269 1869 3922 234 1784 1488 1467 278 206 3791 736 2775 3801 3330 3919 1549 3538 2177 3417 354 2882 2796 703 3610 3181 1567 334...

result:

ok Ok, Accepted!

Test #76:

score: 0
Accepted
time: 96ms
memory: 4452kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

? 4000 1992 2417 2908 2191 231 1430 3812 3978 3861 1849 2970 42 2437 1301 1758 767 3636 139 837 3990 3845 300 3850 1064 3518 875 1020 1936 714 865 2797 1667 2431 2280 3190 3100 2804 245 1228 2075 2722 569 1239 3575 3486 1357 1702 376 1798 3847 3946 2968 2328 1595 217 1439 849 2267 1018 2726 2552 289...

result:

ok Ok, Accepted!

Test #77:

score: 0
Accepted
time: 102ms
memory: 4744kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 0 1 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 ...

output:

? 4000 14 2892 885 2058 150 1209 1080 2955 1435 3220 1957 275 2383 2607 2306 1270 3019 3983 1434 3387 2941 1271 2567 3107 734 2673 277 1204 589 1958 1677 2702 3671 1013 2360 426 3116 629 1846 842 2731 3126 1174 1300 3227 1978 1420 968 1665 2695 526 2612 1136 1864 3956 1321 3653 3915 3480 2129 1562 3...

result:

ok Ok, Accepted!

Test #78:

score: 0
Accepted
time: 120ms
memory: 4464kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 650 288 2631 2007 3966 2698 1458 1087 2639 3681 278 1312 1051 22 202 3018 1940 2121 690 1975 3063 1880 3186 377 1609 297 940 2486 2481 1225 1676 3428 522 3553 3636 3139 422 3937 3123 3528 1759 2555 922 1476 3430 1151 2532 1885 3127 679 2919 917 412 2218 1833 2983 2350 1267 3656 1347 3754 2883...

result:

ok Ok, Accepted!

Test #79:

score: 0
Accepted
time: 107ms
memory: 4712kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0...

output:

? 4000 3693 387 1365 753 577 1355 2226 1252 1970 254 548 1107 563 3548 1454 3082 1057 1273 2272 1000 3914 2549 1425 721 1007 1839 1408 2271 3556 3290 767 1413 3251 1577 184 1764 2654 3682 2617 335 3845 3744 3652 2599 3209 1422 3067 2910 3694 312 925 2308 792 3005 3945 2434 2537 2306 3793 2352 3841 8...

result:

ok Ok, Accepted!

Test #80:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0...

output:

? 4000 2539 863 2504 928 385 3087 3425 3894 3850 2241 87 1283 3568 256 2329 3050 1911 1027 525 2770 3736 1339 3022 1249 2139 21 344 3581 3892 1956 3817 1410 2388 968 1132 4 2805 3358 39 3718 3641 1191 321 3256 2713 3430 3258 3357 2237 196 265 1425 184 1403 2596 2455 2477 3922 1317 3572 210 3670 577 ...

result:

ok Ok, Accepted!

Test #81:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 3759 2470 2309 2549 127 3813 2233 3321 133 686 289 737 1317 2012 3785 3734 2670 2139 3246 1854 1605 3903 3304 1774 2802 450 2294 2636 1257 1711 1347 3136 2276 1159 3414 283 1933 2472 734 3470 2711 1464 1735 3188 2468 2525 1455 139 1786 1635 719 236 2922 248 1567 2120 2570 540 2271 3877 3140 3...

result:

ok Ok, Accepted!

Test #82:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2705 2707 2761 701 402 922 2193 333 183 2282 1797 2859 935 3154 114 105 3875 3889 3303 1438 3282 2031 3719 3895 1352 2819 1996 3324 647 3762 2590 1102 1052 2913 3824 1874 3811 3144 2900 2875 1805 3838 3528 2996 1086 1064 441 2426 163 1289 1517 2688 3406 2008 2317 312 1502 1349 1573 3928 523 3...

result:

ok Ok, Accepted!