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

014973
023082
035747
04897
071369
0101328
0118018
012297
0131134
0141207
0159149
0174052
0187405
0213910
0235437
025791
0263252
0272810
0293831
0304052
031212
0335202
0351274
0377035
0386341
0399078
0401374
0412218
0423584
0434293
044272
0465789
0485728
0497316
0505827
0517837
0521644
0538833
0556403
056147
0571819
0583102
0591426
0617009
0623846
0635034
06525
066741
0673554
0701876
0716937
0726942
0738223
0749290
07570
0778751
0784574
079307
0802941
0816707
0828292
0836221
102056
122392
136892
148706
153781
173290
182130
197556
1108877
1111744
1122025
1148443
1153919
1168691
1176877
118130
1191229
1207231
1212387
1224957
1231776
1253602
1277295
1287471
129692
130362
1311391
1327916
1334048
1341579
1365798
1376457
1381352
1391764
1406686
1421883
1435808
1442714
14627
1471660
1482441
1497259
150736
1515455
1524598
1539451
1551416
156410
1571031
1581716
1593721
1607751
1639321
1642097
165402
1662942
170967
1711775
1723706
1731967
1748817
1758004
176752
177760
1786250
1795220
1805790
1813792
1823661
1837200
2140

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