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
279 423 203 INF 302 INF 212 240 253 INF 253 272 429 259 248 113 INF 311 INF 160 366 199 130 402 INF 328 INF 217 168 205 407 INF INF INF INF INF INF INF 271 304 231 307 355 154 189 INF INF 165 INF INF INF 127 INF 233 INF INF 222 INF 152 410 INF 286 INF 283 INF INF INF INF 178 302 104 292 INF 415 121 INF INF INF INF 220 259 INF 336 137 148 85 123 311 237 259 INF INF 366 INF INF 255 INF 368 INF INF 219 188 177 231 INF INF INF 190 410 197 INF 397 160 INF 381 230 214 INF 406 194 253 244 INF 320 373 INF INF 401 388 148 INF INF 412 63 INF INF 470 INF 198 240 287 897 605 INF 20 610 118 362 INF 280 259 323 546 206 288 INF 376 INF 302 INF 347 245 303 INF 293 216 271 261 INF 461 INF 176 326 INF 514 INF 264 INF 304 54 330 INF INF 205 193 303 126 183 239 INF INF INF INF 520 203 INF 411 213 INF 139 INF INF 237 INF INF 341 INF INF 233 INF 290 INF INF 226 148 117 INF 158 INF 213 346 724 111 159 INF 341 222 INF 332 INF INF 280 315 358 INF INF 299 228 152 INF INF INF 283 259 INF 236 INF INF INF 67 237 INF 164 227 INF 211 INF 3
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