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
1460 5526 6839 INF 5817 INF 3272 2316 2053 INF 5656 2807 4261 8507 8313 7898 INF 2681 INF 9052 7554 9435 8694 5378 INF 9363 INF 5147 6123 1473 8987 INF INF INF INF INF INF INF 8056 360 1814 6449 7121 3689 5188 INF INF 6146 INF INF INF 7265 INF 4817 INF INF 8427 INF 4350 4723 INF 8077 INF 7794 INF INF INF INF 3520 6446 4407 5797 INF 4819 5986 INF INF INF INF 1957 1425 INF 465 6550 3824 3089 8842 3875 3636 5554 INF INF 3419 INF INF 6883 INF 3792 INF INF 5453 6345 5201 8650 INF INF INF 838 3370 2011 INF 758 907 INF 8801 4758 8306 INF 4498 999 3580 3154 INF 5136 4638 INF INF 8870 5747 3734 INF INF 1859 6467 INF INF 6761 INF 6281 2729 3800 2023 5639 INF 20 5027 5396 3150 INF 6556 3111 7615 6617 3705 9333 INF 8518 INF 6438 INF 6171 2584 2226 INF 1731 998 9133 7843 INF 6523 INF 9451 9545 INF 9510 INF 7395 INF 1031 3569 9023 INF INF 1203 8722 7630 6263 1266 5117 INF INF INF INF 3993 9330 INF 6294 8072 INF 1579 INF INF 4767 INF INF 9418 INF INF 4798 INF 7138 INF INF 8591 7553 6269 INF 2825 INF 3687 3837 5204 8534 7174
JOJ Answer
213 194 153 252 231 172 146 157 222 186 138 151 117 234 173 113 122 246 177 158 113 157 130 193 190 180 202 163 154 145 166 89 122 139 166 91 227 128 157 180 203 218 203 154 141 230 189 165 84 274 206 127 221 233 128 162 182 136 127 205 237 209 127 174 183 210 170 223 168 238 96 220 191 279 121 168 172 114 205 168 171 207 141 137 148 85 123 89 179 183 161 154 109 177 192 223 183 70 236 205 202 102 174 113 180 129 169 77 323 170 170 141 160 143 256 226 129 165 97 194 207 199 133 124 254 139 152 237 219 148 224 214 227 63 169 88 258 129 183 133 127 343 153 153 20 136 118 267 174 278 259 219 183 130 206 117 193 252 183 161 208 205 156 224 126 164 184 157 131 284 171 176 194 220 216 226 220 208 202 54 259 269 91 115 160 173 126 183 177 325 108 166 138 124 153 64 298 182 144 139 160 87 178 162 63 173 141 120 182 114 191 128 174 226 145 117 129 139 174 177 280 143 111 127 264 205 176 203 251 150 236 216 133 213 192 216 176 158 143 169 214 270 260 110 87 219 110 188 219 67 204 130 164 227 175 188 197 247 269 157 218