Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

-10
205
531
312
219
704
1119
909
175
1032
292
229
-48
1324
-6
550
467
383
2274
2171
440
801
448
186
312
308
582
1173
316
698
290
177
716
2438
1302
2625
276
911
408
979
1637
1585
722
1053
842
1244
-120
774
858
1526
730
821
274
574
47
1173
607
415
1534
396
910
260
-37
777
476
-40
-10
2025
-22
944
569
514
135
292
1242
-120
569
111
67
-37
1382
192
1300
246
269
405
821
328
-19
730
-10
327
506
-68
282
142
315
1195
341
444
927
110
759
61
1332
-67
1089
1390
229
1763
1119
-65
288
344
722
344
110
1772
384
385
1553
466
434
1584
-64
1657
-48
139
24
779
333
341
801
45
1017
1645
1300
2171
1628
347
456
448
595
864
1324
213
24
1812
292
1682
1681
1541
1017
467
1046
266
287
88
1735
126
462
577
500
607
85
801
2337
618
-111
1521
-102
498
-136
433
1
132
-32
271
98
406
6
435
585
466
93
739
472
-48
-46
365
1277
656
18
1028
1135
986
739
861
1507
490
1447
9
896
493
414
347
121
370
257
493
7
498
1719
240
232
736
27
122
24
55
540
1028
-69
826
24
1731
-65
1665
266
1832
132

JOJ Answer

-10
181
45
-57
205
349
5
909
175
4
292
229
-48
1324
-6
319
10
169
1084
1358
-17
801
154
172
-57
308
213
1173
-25
698
-83
45
375
340
275
1817
276
846
205
551
750
1301
280
988
-80
1041
-120
692
219
378
244
-17
274
343
47
1173
607
104
1240
379
845
260
-37
777
361
-40
-10
2011
-22
373
112
514
135
292
452
-120
167
111
-18
-37
1382
192
867
-114
232
405
-17
328
-19
244
-10
81
185
-68
281
-183
301
1195
-116
332
927
110
759
61
1101
-67
519
1376
229
1763
5
-65
288
212
280
344
110
1772
348
171
1259
152
434
420
-64
1426
-48
139
24
779
218
-116
801
45
106
1324
867
1358
480
232
210
154
595
864
1324
212
24
405
292
311
1318
1108
106
234
1022
252
41
88
1698
126
5
577
179
607
85
801
2337
618
-111
373
-102
498
-173
252
1
132
-32
-215
98
-51
6
435
128
466
93
739
226
-48
-46
162
1088
642
18
279
108
74
455
861
1181
88
555
9
896
493
413
232
121
76
257
493
7
184
1719
240
-20
279
27
30
24
55
219
1028
-69
761
24
1656
-65
857
252
1832
132