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
0 602 585 534 430 272 420 294 295 387 419 389 450 210 324 379 445 456 816 124 541 609 284 174 350 366 467 633 665 505 201 496 289 604 339 498 688 101 639 526 513 335 585 512 393 433 724 559 738 557 411 299 571 338 122 269 168 643 489 369 395 621 130 178 442 577 491 767 359 606 174 409 654 469 438 423 521 288 310 159 741 483 548 690 266 354 473 286 671 432 547 337 359 205 373 264 455 308 525 275 537 401 267 457 385 388 576 401 586 279 245 354 777 221 336 293 401 506 169 520 128 1052 315 394 443 753 421 280 549 461 572 543 413 568 512 516 714 354 362 283 409 419 331 603 504 298 748 234 470 392 317 528 357 256 513 414 487 472 630 715 565 360 393 694 639 492 495 287 535 887 395 188 0 507 283 306 362 492 291 386 310 177 76 634 206 527 331 439 699 407 575 215 661 411 321 55 608 325 209 639 318 274 279 576 494 115 736 368 690 349 665 17 242 403 225 255 514 367 265 853 615 684 462 438 239 303 121 413 781 213 394 169 739 583 650 913 369 464 358 163 538 484 259 586 454 344 442 615 163 180 45 410 121 396 663 437 512 49
JOJ Answer
316 81 549 252 348 220 322 124 230 396 229 345 231 204 416 264 545 116 341 366 444 300 229 244 315 194 650 245 139 541 223 402 182 244 253 211 342 237