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
203
1556
-57
205
1237
749
3415
175
1118
292
1151
-48
1476
-6
905
2261
169
8824
2571
821
866
448
172
-57
1285
235
1173
897
1309
9
177
1140
340
275
1947
276
911
775
1934
1505
8139
1214
988
377
1611
-120
774
241
1526
244
821
274
652
740
1173
2886
415
2005
396
2784
260
-37
4955
476
-40
-10
2011
-22
864
492
514
1572
292
452
-120
1180
425
67
-37
1382
721
1300
319
269
979
821
615
-19
244
-10
81
185
-68
282
142
301
1195
-24
444
927
110
4937
2590
7051
-67
1207
2581
1151
1763
749
-65
288
344
1214
344
110
3626
1072
171
3110
152
894
1584
-64
1966
-48
342
24
4029
1460
-24
866
45
850
2501
1300
2571
641
714
210
448
595
864
1476
213
24
405
292
768
1681
1541
850
467
2929
252
240
88
1773
655
385
577
179
2886
614
866
2337
618
-111
534
-102
498
-64
537
1
132
60
899
1868
-51
6
435
4014
466
93
1402
1414
-48
-46
732
1277
967
18
566
637
1440
845
964
1507
88
1549
9
1141
493
983
714
732
370
257
493
929
184
3714
240
89
659
27
588
1451
55
1550
1559
-69
908
24
1656
27
2785
252
2068
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