Notes
This function is in beta test. Please help improve it in the issues
here.
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
1856 2461 5618 4699 10576 2104 7607 3606 INF 10643 2007 2629 4048 2450 2351 2370 1374 INF 5739 4828 INF 3136 1712 INF 7245 6655 9920 2655 8424 7398 INF 2627 3604 INF 5695 INF 4654 2643 2801 1877 10155 1500 2476 INF INF 3775 7162 INF INF 3855 3878 3194 9638 4943 1758 4984 4861 2554 3993 3995 7375 INF 8928 INF 4164 3857 2919 INF 9434 INF 8930 3518 3284 INF INF INF 4478 4425 INF 3620 8869 INF INF 9992 6626 4036 INF 4726 5057 7976 2569 2993 INF -9 2524 INF 7169 INF 1457 INF INF 2951 INF 1630 -6 5682 INF INF 3898 INF INF 4915 3026 2317 7691 1376 3912 INF 7540 INF 11685 9632 2021 INF 5352 3422 5897 13423 9483 7616 8006 2363 6579 INF 2072 INF INF 3476 1365 1119 INF INF 10036 INF 1721 INF 10194 4145 2275 4734 INF -2 6909 INF INF 4151 INF 2199 3801 INF INF 6623 INF 8361 INF INF INF INF 2494 3725 8001 4560 6334 INF 2233 2526 INF 1065 INF INF INF INF 2884 INF 10554 INF INF 3331 3099 17811 7524 INF 1527 4640 2178 INF -7 2221 9730 4031 4136 10012 3299 2471 INF 4725 992 4459 INF 9027 4394 INF 2147 INF 4992 3902 INF 3548 IN
JOJ Answer
1033 1128 973 936 987 1073 958 1079 1074 -21 -41 886 -72 937 914 -67 912 1073 938 -15 -27 913 989 929 941 -33 952 -84 1454 -19 1068 -84 983 910 983 1134 906 902 930 1132 947 1500 934 1070 899 -17 1114 1266 935 943 1727 1345 2113 1040 1308 992 988 950 1120 -70 1725 -21 2067 -33 1008 1286 -36 1402 2161 974 -51 -23 929 935 2047 1617 -26 933 959 -22 961 2345 967 938 971 -79 1392 2013 -29 1136 2240 1077 1091 -9 1241 -19 1256 2207 1348 1354 1035 925 947 958 -6 -18 1532 1308 1095 1029 1380 907 1289 1063 -32 -47 -23 1161 -14 1402 898 2101 -30 933 -60 968 -32 891 914 -42 939 -2 2226 1001 -37 -35 1438 1199 -45 -48 959 979 962 1863 1721 943 -33 1236 1217 1030 -27 -2 1135 -19 1106 1146 933 903 996 1073 949 -7 1162 1002 1721 -34 994 -87 -25 986 1016 -49 1291 1033 1425 1026 1766 1065 973 905 1002 912 1054 1054 1156 982 967 1057 967 1062 920 1052 905 914 1523 912 -21 1114 918 969 2079 927 904 1461 -23 932 901 924 926 1299 977 1002 -72 -26 1731 901 2588 991 1018 921 1145 1049 1094 1541 -32 -3 908 2016 2088 940 933 -33 1482 -