1000 2 999942211 999998477 999978229 999960607 999992951 999999019 999953237 999968839 999982223 999841499 999832423 999977743 999995221 999998887 999970597 999998281 999998999 999996637 999964513 999966811 999935719 999992041 999970151 999984253 999959171 999998029 999985691 999986683 999940817 999990679 999982421 999960323 999989987 999994393 999928453 999999661 999996799 999978979 999998267 999976031 999800666 999996539 999977483 999988441 999901753 999992663 999912377 999999919 999919091 999994019 999926047 999901711 999872509 999961553 999782011 999985417 999990457 999987809 999959167 999995807 999901871 999994547 999993569 999979451 999980153 999950327 999983909 999940961 999974827 999990487 999873331 999977639 999959039 999972643 999994939 999983483 999923791 999997819 999997463 999973193 999995083 999909731 999997601 999966167 999962399 999930343 999999557 999995047 999927493 999970021 999741307 999968737 999997883 999953021 999905173 999994271 999959729 999876313 999994739 999998759 999999367 999982129 999970997 999999881 999991939 999953281 999902543 999996161 999802003 999784397 999920279 999979399 999980041 999990191 999971827 999999967 999973759 999977749 999854483 999974683 999983561 999925961 999949453 999929617 999734059 999969253 999999269 999991801 999986063 999996343 999990793 999998413 999953233 999989401 999985891 999996917 999998287 999664063 999975979 999993437 999999939 999940327 999999563 999973267 999959617 999950101 999967447 999962027 999923783 999999703 999998711 999999349 999996869 999999769 999981733 999981589 999957551 999978293 999999923 999993299 999999157 999850933 999999979 999952601 999936401 999939641 999962801 999991393 999984841 999900571 999937123 999954889 999964061 999963127 999976919 999995323 999925067 999994817 999986873 999983863 999996169 999993991 999989951 999969007 999814141 999955729 999979193 999995933 999967043 999981559 999988859 999999821 999986621 999985013 999975877 999924397 999943303 999999383 999992473 999884569 999946081 999946267 999980083 999974741 999854327 999936881 999977701 999977273 999992311 999978583 999930137 999982163 999964967 999943319 999971513 999939631 999985991 999981569 999982349 999975859 999841483 999988361 999891973 999999281 999998521 999966511 999987853 999997753 999942883 999989279 999885433 999989693 999955349 999978313 999884471 999998819 999999577 999983093 999966433 999976891 999937451 999980951 999821281 999993173 999963533 999999571 999980567 999995483 999989603 999939463 999998603 999952183 999998849 999962771 999994421 999989591 999895139 999997763 999935887 999919051 999961217 999921059 999856447 999942919 999989563 999956791 999947033 999997541 999993331 999995473 999988651 999921787 999881671 999900613 999998771 999955001 999961609 999978143 999971839 999989449 999995119 999997951 999995209 999992369 999989917 999951397 999993889 999964517 999986963 999978127 999971639 999999986 999980129 999988019 999992671 999999493 999949859 999981013 999997651 999950779 999999743 999998053 999992809 999887591 999993097 999999641 999999139 999994169 999977921 999936967 999904229 999983417 999921019 999972217 999962363 999999293 999991823 999970507 999935213 999999073 999934391 999976501 999958369 999960491 999974831 999977617 999916763 999998453 999812371 999982967 999995881 999932443 999996721 999970219 999999593 999992687 999936599 999990331 999996787 999994103 999986077 999984413 999999931 999983393 999971081 999968419 999986879 999958823 999921443 999970849 999956233 999985687 999985709 999999173 999961813 999989021 999891869 999935773 999991457 999918433 999997751 999999989 999999887 999929803 999846283 999998539 999916657 999956543 999960001 999921743 999982801 999999809 999966683 999987539 999975049 999967607 999989059 999939349 999976067 999823673 999973859 999990503 999824591 999982051 999987893 999985109 999935273 999992317 999979171 999969757 999937427 999984889 999986357 999998491 999988489 999956183 999946531 999989173 999853277 999926611 999991049 999966217 999939179 999951191 999957319 999911179 999980383 999954491 999995123 999999691 999975671 999997469 999997997 999972139 999996617 999993349 999927127 999985579 999849503 999984929 999999311 999997003 999971683 999981883 999987203 999954343 999973187 999932111 999996059 999991511 999922837 999978247 999997393 999943501 999985433 999989597 999986593 999939427 999973769 999985037 999951439 999958691 999992237 999987013 999982777 999971527 999974273 999993317 999969079 999976357 999990737 999973501 999999397 999959971 999922379 999974803 999983161 999991957 999998479 999998513 999955373 999996563 999777601 999995237 999872989 999891721 999922667 999986293 999993433 999983987 999980669 999999509 999985963 999911911 999949589 999984631 999971383 999914353 999956351 999998431 999999439 999985997 999948497 999998047 999844591 999997291 999963427 999934843 999948977 999989387 999999401 999981893 999991931 999996401 999946699 999983377 999994409 999996653 999997231 999845611 999975481 999996337 999998773 999999991 999972707 999961337 999913657 999996143 999998807 999981991 999981119 999989357 999977243 999986389 999991753 999996289 999999943 999990149 999981623 999958331 999967603 999944789 999973649 999904733 999996859 999977959 999927853 999947213 999997199 999994543 999996097 999959491 999966701 999998873 999984781 999963059 999952609 999982507 999999955 999999379 999943327 999972371 999989933 999971521 999972503 999938957 999901963 999782389 999959633 999992381 999776287 999996463 999953363 999993497 999949883 999971551 999930073 999960569 999981503 999863519 999997373 999939907 999983773 999980909 999855557 999997553 999990163 999959843 999990037 999997813 999991297 999991313 999997073 999993727 999968383 999995657 999955643 999929113 999936029 999944713 999998891 999997963 999983681 999997507 999982889 999994687 999853609 999997513 999988271 999963191 999954223 999998731 999932543 999988057 999996577 999987173 999989891 999961999 999974387 999974249 999982447 999955687 999916409 999996061 999901843 999992713 999876103 999976903 999973109 999996187 999911837 999922879 999996313 999998543 999966391 999996757 999958571 999898103 999951853 999971647 999995287 999996941 999949241 999991871 999946121 999876551 999975413 999987239 999935623 999951347 999928037 999995053 999983207 999997861 999977347 999971927 999987397 999994493 999924413 999969989 999989953 999988931 999999839 999903169 999997123 999889087 999991529 999994949 999930949 999989383 999968947 999986209 999952367 999976729 999960817 999975721 999986347 999979187 999896981 999892141 999868601 999999289 999971327 999835411 999932317 999964607 999999179 999989329 999966757 999967379 999819811 999889453 999989197 999914453 999829829 999999899 999998983 999998723 999986353 999892951 999978827 999997217 999994361 999998407 999968107 999982003 999962297 999973537 999969953 999988439 999919301 999977789 999991417 999969407 999950057 999948013 999954199 999919873 999996979 999997211 999855683 999948779 999974141 999798103 999988681 999997387 999989819 999998717 999988907 999972331 999930487 999996713 999994999 999973657 999976577 999988879 999995069 999820169 999921641 999990683 999738247 999947911 999963551 999977827 999984103 999976723 999887663 999979697 999978349 999976279 999952553 999992843 999997487 999972163 999996583 999985223 999948751 999996013 999998189 999964697 999972803 999950309 999994789 999967123 999968503 999923201 999994447 999999419 999995723 999960209 999979241 999998567 999927623 999990647 999990883 999994441 999990443 999968533 999998767 999997993 999998737 999992879 999992171 999962681 999996281 999995231 999944651 999955277 999998911 999999787 999957433 999947959 999966497 999984131 999867593 999999277 999986723 999999971 999983183 999894149 999979447 999997877 999999719 999999947 999964961 999976459 999976793 999995671 999997729 999945997 999958457 999991621 999995201 999975371 999997319 999957883 999972161 999921887 999961343 999947719 999947621 999999617 999905917 999931501 999739253 999978409 999893387 999995147 999953459 999999167 999987133 999997591 999966817 999823441 999987431 999829069 999941153 999995527 999979907 999999149 999996211 999947059 999928931 999973151 999997931 999848467 999994351 999973661 999987979 999993713 999987977 999948871 999930049 999998581 999992767 999996761 999919703 999992893 999974861 999959593 999999673 999992027 999988387 999999877 999970393 999934121 999993343 999812747 999998033 999990119 999962599 999959951 999998821 999972509 999875647 999981317 999992417 999801133 999858721 999921061 999948601 999945047 999931363 999992953 999978053 999985937 999992197 999993779 999986909 999981139 999961927 999979777 999914459 999989443 999982961 999966647 999949207 999969493 999981611 999985793 999959689 999986807 999990181 999897229 999947527 999981247 999992243 999921749 999998551 999964363 999951521 999957817 999992681 999963089 999992941 999997213 999964451 999896719 999934759 999925013 999992869 999997091 999989581 999995177 999958303 999998399 999938189 999993019 999885631 999991879 999974869 999949703 999811121 999922283 999972263 999962759 999941923 999879451 999989911 999940549 999999829 999984053 999992053 999966173 999981919 999999619 999986737 999997451 999968777 999999409 999997351 999988553 999998113 999998893 999835129 999895493 999943687 999995281 999968413 999917833 999998941 999985183 999959717 999988573 999917729 999946373 999978851 999999961 999905009 999918559 999912541 999997259 999978769 999981053 999969371 999999977 999967373 999890401 999906199 999932573 999955529 999995609 999761821 999837431 999990701 999979573 999974429 999970421 999995159 999998401 999994711 999993919 999963347 999966521 999999983 999972221 999991429 999738847 999958039 999924307 999993893 999992443 999984263 999985897 999993593 999993089 999980819 999989051 999997699 999862727 999999547 999945643 999955711 999992957 999981887 999910559 999971393 999972737 999969353 999999233