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

2100
2372
2484
2113
1413
2843
2214
2628
2561
2398
2562
2693
3086
2245
2607
2320
2033
2203
2597
2681
2306
2762
2575
2715
3235
2681
2530
2584
2498
2470
2675
2099
2630
2361
2248
2169
2468
3218
2273
1075
1073
2783
2873
1045
2529
1460
2737
2582
2659
2416
1329
1482
2927
1800
2094
2218
2416
3450
1337
1082
2659
1869
2398
2349
2551
2830
1560
1235
2943
2375
2483
2426
1987
2622
2527
2533
2589
2815
2293
1896
3352
2825
3100
2397
2622
2156
2439
2887
2142
2409
2545
2651
2658
3008
2095
1782
3326
2938
2654
1145
2176
2414
2289
3043
2342
2289
2482
1756
2402
2270
2856
3128
2293
2511
2038
1542
3141
2252
3147
2455
2449
2967
2378
2725
2481
1610
2784
2523
3468
2392
2742
1577
3200
1231
2378
2277
2335
2083
2680
1942
2358
2285
2654
2364
2097
2528
2504
2808
2202
3049
2550
3305
1847
3247
2617
2379
2230
2357
2609
2794
2937
2966
2182
2490
1271
2726
2576
2548
2894
3356
2883
2606
1245
2838
2276
2632
3023
2952
1113
2958
2434
1530
3676
1092
3275
3311
2387
2242
3559
1339
2619
2544
2595
2256
2471
1384
2946
2655
1220
2468
2447
2634
1115
2878
2332

JOJ Answer

-117
784
-23
-177
798
-121
-46
749
811
824
833
-9
772
1094
-88
839
-80
863
-142
-209
-143
-31
-33
875
-81
-214
-19
843
-19
842
779
925
1358
904
-16
-54
765
803
-49
839
1073
-93
847
956
-18
-129
-56
-45
-102
852
-58
-95
-11
928
2009
913
927
-42
-140
825
934
897
763
-92
-66
858
750
966
-13
818
-38
801
912
896
-104
821
807
-57
750
843
-19
-100
-70
848
-73
-10
-57
796
813
761
871
-54
800
801
-16
783
925
-129
821
-43
-81
916
-18
897
1024
919
-13
-28
-160
1003
986
756
808
-65
898
1542
959
-45
750
946
-27
-53
840
884
-66
889
-22
-71
-60
-38
852
837
912
833
-136
-38
-99
-78
-89
-153
972
-78
-64
923
-102
814
837
776
895
-18
763
-95
-19
886
766
773
-97
993
-128
804
794
-65
-112
836
-170
803
-215
811
950
-139
776
-88
798
1246
804
-96
788
795
-85
-198
-78
823
-164
1092
-103
805
984
989
-128
749
-31
756
782
864
-65
750
910
909
859
-114
1011
-76
796
936
923
-91
-43
862
-12
806
-78
780
969
837
824
786
916
924
-79
769
1170
856
1071
-49
-37
873
827
-43
1942
-120
932
-161
980
-72
854
796
-172
-14
852
-83
1476
-100
831
922
-25