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

0
4973
3082
5747
897
2147483647
2147483647
1369
2147483647
2147483647
1328
8018
297
1134
1207
9149
2147483647
4052
7405
2147483647
2147483647
3910
2147483647
5437
2147483647
791
3252
2810
2147483647
3831
4052
212
2147483647
5202
2147483647
1274
2147483647
7035
6341
9078
1374
2218
3584
4293
272
2147483647
5789
2147483647
5728
7316
5827
7837
1644
8833
2147483647
6403
147
1819
3102
1426
2147483647
7009
3846
5034
2147483647
25
741
3554
2147483647
2147483647
1876
6937
6942
8223
9290
70
2147483647
8751
4574
307
2941
6707
8292
6221
2056
0
2392
6892
2953
3781
2147483647
3290
2130
7556
3384
1744
2025
3190
3263
3919
8691
6108
130
1229
7231
2387
4957
1776
2147483647
2847
5308
4866
7471
692
362
1391
7916
4048
1579
3330
5798
6457
1352
1764
3430
4274
1883
5808
2328
2147483647
27
1660
2441
7259
736
5455
3700
9451
2147483647
1416
410
1031
1716
3482
7751
9065
5902
7090
2097
402
2797
5610
2147483647
2147483647
967
1775
3706
1967
8817
2126
752
760
6250
2363
4997
3792
3661
7200
6081
4025
0
7997
6978
7806
3023
5485
829
11581
6005

JOJ Answer

474
657
352
251
590
322
462
842
582
720
352
794
473
585
584
1251
676
826
896
391
541
574
685
759
843
567
757
721
245
967
236
621
413
734
494
1450
806
920
764
830
448
593
312
532
513
719
491
494
745
669
86
637
622
499
350
596
436
1442
1071
674
389
581
1013
676
579
629
843
654
2023
218
370
1317
529
660
865
873
768
475
740
637
710
533
741
443
499
460
579
96
689
397
419
657
392
656
179
452
431
473
694
654
369
336
1556
548
1618
638
296
874
585
715
188
324
847
811
413
415
453
656
509
446
416
390
559
840
460
904
407
669
520
584
766
334
514
604
235
731
447
491
1120
802
467
283
321
267
331
464
414
479
487
579
553
581
237
418
875
647
104
985
138
774
1074
343
548
177
397
574
720
804
286
479
429
400
235
525
792
699
599
408
485
260
208
539
62
445
440
861
600
368
822
488
551
481
503
357
421
798
597
1006
440
730
299
588
423
530
654
618
54
761
931
979
631
507
816
452
742
762
596
600
572
459
702
218
817
155
353
250
740
682
358
531
716
372
736
783
641
636
104
630
325
684
432
702
530
675
300
360
580
341
608
423
382
760
757
501