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
806 36 528 528 313 571 1026 614 316 722 1054 1000 1240 503 715 353 1205 599 628 527 336 938 837 337 580 549 389 571 873 506 852 612 609 373 328 725 198 181 319 456 637 879 451 810 534 494 972 196 1052 638 399 516 550 84 87 704 837 525 417 1030 787 891 368 479 308 302 777 321 617 712 597 899 292 836 453 568 398 566 665 896 858 610 572 530 736 491 632 620 331 84 507 517 935 455 702 632 321 1021 824 763 983 637 852 705 653 426 652 932 0 666 426 879 760 641 659 265 1417 671 592 997 424 492 777 269 534 936 1319 1045 402 718 328 1109 424 463 585 471 802 586 227 832 521 642 894 786 384 523 551 622 347 600 832 615 524 560 562 569 545 469 513 596 616 832 443 143 30 668 866 440 972 456 438 1056 606 454 398 1205 642 971 687 525 697 404 308 584 576 783 422 619 211 518 208 568 779 117 697 478 293 280 387 588 1036 612 723 98 1107 803
JOJ Answer
Invalid graph. Exiting.