問題文

長さ 666666 の数列 AA が与えられます。

((A353×A545+A220A159×(((A183(A490A339A56+((A457×(A406×A371((A399A272A601×(((A47(((A201(A99(A648×((A561((((A344((((A576((A414A108×(A475A650A93A469(A420A326(A597+A453+((((A295(A419×(((A459+A361A123(A36A222((((A377+A584((((A322((((A256+A214((A257A503A78A402+A170+A502(A237(((((((A254(A239×((A626+(A587+((((((((A569((((((A577A185A274×(((A512A46+(A591×A351+A268A464×(A663A32((A404×(A128(((((A76A3(A528A202+((((A57×A163A296(A200+(A389(((A436(((A329(A84A186A306(A346+A372A336(A550+A221+(A578+((((A537((((A20+(A370×(((((A616×(((((((((A133+(A470A68A653+(A151×A549×(A182((A38×((A152×(((A206A315×A192A180×(A197A53A157A468+(A474×(A292+A595A521(A462A511A573((((((A5(A634((A518((A572+A424(A327(A285+(((A364((A242+(A42×((A312A204A137((A50((((A422+A62+((A271((A17×A473((A304A338(A375+((A446×(A366A546+(A570+((((((A35((A664(((((A437((A171(A368+((A476(((A480(A614×A516(A264((A88+A232×(A122+(A278((A526×A236+(A356(A249+A275+A21A273(A562×A316A658+A91×((A627+(A586((A311+A156×A72×((A354(((A284+A129)A251×A320+A429+A505×A504)A334×A378))+A458A394×A2+A349)+A280A14)A463+A167)+A230×A101))+A488A440)×A408A496)A472)×A303))A63A396))×A450×A18×A397+A299)×A288A652)+A568×A305A269)))A447×A355A403)A85A328×A435)+A300+A600))+A117×A244)A66×A393)A207)+A52A324×A31)×A191A574+A497)×A363+A643A548)A33A75)A105A240A443)+A553×A555))×A80A495))×A483A25)+A620A174×A524)A405A606)A253+A60A116A493+A15A193×A552)A228×A637)))+A571)×A342A208A79)A543×A347))+A352+A258))A646×A619+A631))×A557A138+A413)×A585A644)+A331A629+A340)×A64A395A624A456×A24+A302A374)A313×A563))×A487+A439×A8+A43))A400A384)))A162×A641))A58A517)A86A289)×A471))A293)A215+A565A335)×A579)A448×A161))×A29A11×A659×A660+A554)A61+A596)A144A507A391)A438A665×A401A654A583+A262)A416×A651)+A465+A158)A119+A97))×A71A588×A544)))A165×A482+A255)A535+A297A609))×A398A132))×A445+A243×A26)×A188A623A530))+A642)A455)×A246A252)×A373+A350A506)A110A499)A102×A580+A124)A140×A662)A219+A95A217A343)+A22×A640)×A486+A622+A611+A388A238×A454))+A392A83)×A410A245A541)A225×A45A427A418+A417A263A282)A525×A485A594A287)+A276))A115A411×A607)×A330A341A387A628)×A149A234)A199)A279A477)A153A655)A290A96×A190×A59A357A154A461)+A531)+A7))+A130A489×A532))+A267A65)+A645A6A166A409A49))A203A593+A522)×A523A556A231A281)A127)A491))×A1A113A513A142×A34)A265×A179+A633+A360)+A478+A310A529A114)))A169A407)+A325A382×A498×A92+A147A575A103×A551)×A621A564A605)+A41A73)×A333A54)×A177A323)×A536+A112))+A638+A39+A519×A661))+A467A657)×A211A602A189))+A359+A247A173+A55×A314×A603×A560)×A618A37)+A109A198)A294A533)×A376+A500+A136A599))×A16A209)A143+A301)×A44+A90)+A452×A82A415)×A259A30)×A218×A539)+A224A547))A348+A383A111+A425A9×A442)A74+A481A81×A148+A146)A527))+A291A430A358×A441+A277)A540A10)×A266A134)A196×A194A460×A321)A248A89+A12A613)A421+A610)×A126A434))+A451A141A98))A501A369+A386)A479+A107A309)×A598A241))×A428A449+A590×A260)A135×A582)+A625+A77))A223+A632)×A176A617×A385A542)A23A520)×A261×A345A432))×A444×A40)A229+A178))+A155)+A298A164+A639A390A612+A381)A106A67)+A121A19))×A250))×A4)×A647A87)×A28)+A226×A510)+A514×A150)×A216A615+A104A566A337)A509)A630+A307A319×A365+A581)A592A380A283)+A534×A181+A145A636A187))+A466A492A213+A139A362))×A48)×A70)×A559×A235)+A118A433)A635A227×A270A649A508A308)A656×A233)A494A27+A558×A426))A367×A100×A13+A51))A210)A175+A431+A332)×A94A172)A604A379A484×A317×A184×A120A589+A69)+A205×A608+A666A318A515+A423A131)A195×A160×A538A125×A212))A567A286+A412A168)((A_{353} \times A_{545}+A_{220}-A_{159} \times (((A_{183}-(A_{490}-A_{339}-A_{56}+((A_{457} \times (A_{406} \times A_{371}-((A_{399}-A_{272}-A_{601} \times (((A_{47}-(((A_{201}-(A_{99}-(A_{648} \times ((A_{561}-((((A_{344}-((((A_{576}-((A_{414}-A_{108} \times (A_{475}-A_{650}-A_{93}-A_{469}-(A_{420}-A_{326}-(A_{597}+A_{453}+((((A_{295}-(A_{419} \times (((A_{459}+A_{361}-A_{123}-(A_{36}-A_{222}-((((A_{377}+A_{584}-((((A_{322}-((((A_{256}+A_{214}-((A_{257}-A_{503}-A_{78}-A_{402}+A_{170}+A_{502}-(A_{237}-(((((((A_{254}-(A_{239} \times ((A_{626}+(A_{587}+((((((((A_{569}-((((((A_{577}-A_{185}-A_{274} \times (((A_{512}-A_{46}+(A_{591} \times A_{351}+A_{268}-A_{464} \times (A_{663}-A_{32}-((A_{404} \times (A_{128}-(((((A_{76}-A_{3}-(A_{528}-A_{202}+((((A_{57} \times A_{163}-A_{296}-(A_{200}+(A_{389}-(((A_{436}-(((A_{329}-(A_{84}-A_{186}-A_{306}-(A_{346}+A_{372}-A_{336}-(A_{550}+A_{221}+(A_{578}+((((A_{537}-((((A_{20}+(A_{370} \times (((((A_{616} \times (((((((((A_{133}+(A_{470}-A_{68}-A_{653}+(A_{151} \times A_{549} \times (A_{182}-((A_{38} \times ((A_{152} \times (((A_{206}-A_{315} \times A_{192}-A_{180} \times (A_{197}-A_{53}-A_{157}-A_{468}+(A_{474} \times (A_{292}+A_{595}-A_{521}-(A_{462}-A_{511}-A_{573}-((((((A_{5}-(A_{634}-((A_{518}-((A_{572}+A_{424}-(A_{327}-(A_{285}+(((A_{364}-((A_{242}+(A_{42} \times ((A_{312}-A_{204}-A_{137}-((A_{50}-((((A_{422}+A_{62}+((A_{271}-((A_{17} \times A_{473}-((A_{304}-A_{338}-(A_{375}+((A_{446} \times (A_{366}-A_{546}+(A_{570}+((((((A_{35}-((A_{664}-(((((A_{437}-((A_{171}-(A_{368}+((A_{476}-(((A_{480}-(A_{614} \times A_{516}-(A_{264}-((A_{88}+A_{232} \times (A_{122}+(A_{278}-((A_{526} \times A_{236}+(A_{356}-(A_{249}+A_{275}+A_{21}-A_{273}-(A_{562} \times A_{316}-A_{658}+A_{91} \times ((A_{627}+(A_{586}-((A_{311}+A_{156} \times A_{72} \times ((A_{354}-(((A_{284}+A_{129})-A_{251} \times A_{320}+A_{429}+A_{505} \times A_{504})-A_{334} \times A_{378}))+A_{458}-A_{394} \times A_{2}+A_{349})+A_{280}-A_{14})-A_{463}+A_{167})+A_{230} \times A_{101}))+A_{488}-A_{440}) \times A_{408}-A_{496})-A_{472}) \times A_{303}))-A_{63}-A_{396})) \times A_{450} \times A_{18} \times A_{397}+A_{299}) \times A_{288}-A_{652})+A_{568} \times A_{305}-A_{269})))-A_{447} \times A_{355}-A_{403})-A_{85}-A_{328} \times A_{435})+A_{300}+A_{600}))+A_{117} \times A_{244})-A_{66} \times A_{393})-A_{207})+A_{52}-A_{324} \times A_{31}) \times A_{191}-A_{574}+A_{497}) \times A_{363}+A_{643}-A_{548})-A_{33}-A_{75})-A_{105}-A_{240}-A_{443})+A_{553} \times A_{555})) \times A_{80}-A_{495})) \times A_{483}-A_{25})+A_{620}-A_{174} \times A_{524})-A_{405}-A_{606})-A_{253}+A_{60}-A_{116}-A_{493}+A_{15}-A_{193} \times A_{552})-A_{228} \times A_{637})))+A_{571}) \times A_{342}-A_{208}-A_{79})-A_{543} \times A_{347}))+A_{352}+A_{258}))-A_{646} \times A_{619}+A_{631})) \times A_{557}-A_{138}+A_{413}) \times A_{585}-A_{644})+A_{331}-A_{629}+A_{340}) \times A_{64}-A_{395}-A_{624}-A_{456} \times A_{24}+A_{302}-A_{374})-A_{313} \times A_{563})) \times A_{487}+A_{439} \times A_{8}+A_{43}))-A_{400}-A_{384})))-A_{162} \times A_{641}))-A_{58}-A_{517})-A_{86}-A_{289}) \times A_{471}))-A_{293})-A_{215}+A_{565}-A_{335}) \times A_{579})-A_{448} \times A_{161})) \times A_{29}-A_{11} \times A_{659} \times A_{660}+A_{554})-A_{61}+A_{596})-A_{144}-A_{507}-A_{391})-A_{438}-A_{665} \times A_{401}-A_{654}-A_{583}+A_{262})-A_{416} \times A_{651})+A_{465}+A_{158})-A_{119}+A_{97})) \times A_{71}-A_{588} \times A_{544})))-A_{165} \times A_{482}+A_{255})-A_{535}+A_{297}-A_{609})) \times A_{398}-A_{132})) \times A_{445}+A_{243} \times A_{26}) \times A_{188}-A_{623}-A_{530}))+A_{642})-A_{455}) \times A_{246}-A_{252}) \times A_{373}+A_{350}-A_{506})-A_{110}-A_{499})-A_{102} \times A_{580}+A_{124})-A_{140} \times A_{662})-A_{219}+A_{95}-A_{217}-A_{343})+A_{22} \times A_{640}) \times A_{486}+A_{622}+A_{611}+A_{388}-A_{238} \times A_{454}))+A_{392}-A_{83}) \times A_{410}-A_{245}-A_{541})-A_{225} \times A_{45}-A_{427}-A_{418}+A_{417}-A_{263}-A_{282})-A_{525} \times A_{485}-A_{594}-A_{287})+A_{276}))-A_{115}-A_{411} \times A_{607}) \times A_{330}-A_{341}-A_{387}-A_{628}) \times A_{149}-A_{234})-A_{199})-A_{279}-A_{477})-A_{153}-A_{655})-A_{290}-A_{96} \times A_{190} \times A_{59}-A_{357}-A_{154}-A_{461})+A_{531})+A_{7}))+A_{130}-A_{489} \times A_{532}))+A_{267}-A_{65})+A_{645}-A_{6}-A_{166}-A_{409}-A_{49}))-A_{203}-A_{593}+A_{522}) \times A_{523}-A_{556}-A_{231}-A_{281})-A_{127})-A_{491})) \times A_{1}-A_{113}-A_{513}-A_{142} \times A_{34})-A_{265} \times A_{179}+A_{633}+A_{360})+A_{478}+A_{310}-A_{529}-A_{114})))-A_{169}-A_{407})+A_{325}-A_{382} \times A_{498} \times A_{92}+A_{147}-A_{575}-A_{103} \times A_{551}) \times A_{621}-A_{564}-A_{605})+A_{41}-A_{73}) \times A_{333}-A_{54}) \times A_{177}-A_{323}) \times A_{536}+A_{112}))+A_{638}+A_{39}+A_{519} \times A_{661}))+A_{467}-A_{657}) \times A_{211}-A_{602}-A_{189}))+A_{359}+A_{247}-A_{173}+A_{55} \times A_{314} \times A_{603} \times A_{560}) \times A_{618}-A_{37})+A_{109}-A_{198})-A_{294}-A_{533}) \times A_{376}+A_{500}+A_{136}-A_{599})) \times A_{16}-A_{209})-A_{143}+A_{301}) \times A_{44}+A_{90})+A_{452} \times A_{82}-A_{415}) \times A_{259}-A_{30}) \times A_{218} \times A_{539})+A_{224}-A_{547}))-A_{348}+A_{383}-A_{111}+A_{425}-A_{9} \times A_{442})-A_{74}+A_{481}-A_{81} \times A_{148}+A_{146})-A_{527}))+A_{291}-A_{430}-A_{358} \times A_{441}+A_{277})-A_{540}-A_{10}) \times A_{266}-A_{134})-A_{196} \times A_{194}-A_{460} \times A_{321})-A_{248}-A_{89}+A_{12}-A_{613})-A_{421}+A_{610}) \times A_{126}-A_{434}))+A_{451}-A_{141}-A_{98}))-A_{501}-A_{369}+A_{386})-A_{479}+A_{107}-A_{309}) \times A_{598}-A_{241})) \times A_{428}-A_{449}+A_{590} \times A_{260})-A_{135} \times A_{582})+A_{625}+A_{77}))-A_{223}+A_{632}) \times A_{176}-A_{617} \times A_{385}-A_{542})-A_{23}-A_{520}) \times A_{261} \times A_{345}-A_{432})) \times A_{444} \times A_{40})-A_{229}+A_{178}))+A_{155})+A_{298}-A_{164}+A_{639}-A_{390}-A_{612}+A_{381})-A_{106}-A_{67})+A_{121}-A_{19})) \times A_{250})) \times A_{4}) \times A_{647}-A_{87}) \times A_{28})+A_{226} \times A_{510})+A_{514} \times A_{150}) \times A_{216}-A_{615}+A_{104}-A_{566}-A_{337})-A_{509})-A_{630}+A_{307}-A_{319} \times A_{365}+A_{581})-A_{592}-A_{380}-A_{283})+A_{534} \times A_{181}+A_{145}-A_{636}-A_{187}))+A_{466}-A_{492}-A_{213}+A_{139}-A_{362})) \times A_{48}) \times A_{70}) \times A_{559} \times A_{235})+A_{118}-A_{433})-A_{635}-A_{227} \times A_{270}-A_{649}-A_{508}-A_{308})-A_{656} \times A_{233})-A_{494}-A_{27}+A_{558} \times A_{426}))-A_{367} \times A_{100} \times A_{13}+A_{51}))-A_{210})-A_{175}+A_{431}+A_{332}) \times A_{94}-A_{172})-A_{604}-A_{379}-A_{484} \times A_{317} \times A_{184} \times A_{120}-A_{589}+A_{69})+A_{205} \times A_{608}+A_{666}-A_{318}-A_{515}+A_{423}-A_{131})-A_{195} \times A_{160} \times A_{538}-A_{125} \times A_{212}))-A_{567}-A_{286}+A_{412}-A_{168}) を求めてください。

なお、式の値は 101810^{18} 以下になることが保証されます。

制約

  • 0Ai1090 \le A_i \le 10^9
  • 答えは 101810^{18} 以下

入力

A1A_{1} A2A_{2} A3A_{3} A4A_{4} A5A_{5} A6A_{6} A7A_{7} A8A_{8} A9A_{9} A10A_{10} A11A_{11} A12A_{12} A13A_{13} A14A_{14} A15A_{15} A16A_{16} A17A_{17} A18A_{18} A19A_{19} A20A_{20} A21A_{21} A22A_{22} A23A_{23} A24A_{24} A25A_{25} A26A_{26} A27A_{27} A28A_{28} A29A_{29} A30A_{30} A31A_{31} A32A_{32} A33A_{33} A34A_{34} A35A_{35} A36A_{36} A37A_{37} A38A_{38} A39A_{39} A40A_{40} A41A_{41} A42A_{42} A43A_{43} A44A_{44} A45A_{45} A46A_{46} A47A_{47} A48A_{48} A49A_{49} A50A_{50} A51A_{51} A52A_{52} A53A_{53} A54A_{54} A55A_{55} A56A_{56} A57A_{57} A58A_{58} A59A_{59} A60A_{60} A61A_{61} A62A_{62} A63A_{63} A64A_{64} A65A_{65} A66A_{66} A67A_{67} A68A_{68} A69A_{69} A70A_{70} A71A_{71} A72A_{72} A73A_{73} A74A_{74} A75A_{75} A76A_{76} A77A_{77} A78A_{78} A79A_{79} A80A_{80} A81A_{81} A82A_{82} A83A_{83} A84A_{84} A85A_{85} A86A_{86} A87A_{87} A88A_{88} A89A_{89} A90A_{90} A91A_{91} A92A_{92} A93A_{93} A94A_{94} A95A_{95} A96A_{96} A97A_{97} A98A_{98} A99A_{99} A100A_{100} A101A_{101} A102A_{102} A103A_{103} A104A_{104} A105A_{105} A106A_{106} A107A_{107} A108A_{108} A109A_{109} A110A_{110} A111A_{111} A112A_{112} A113A_{113} A114A_{114} A115A_{115} A116A_{116} A117A_{117} A118A_{118} A119A_{119} A120A_{120} A121A_{121} A122A_{122} A123A_{123} A124A_{124} A125A_{125} A126A_{126} A127A_{127} A128A_{128} A129A_{129} A130A_{130} A131A_{131} A132A_{132} A133A_{133} A134A_{134} A135A_{135} A136A_{136} A137A_{137} A138A_{138} A139A_{139} A140A_{140} A141A_{141} A142A_{142} A143A_{143} A144A_{144} A145A_{145} A146A_{146} A147A_{147} A148A_{148} A149A_{149} A150A_{150} A151A_{151} A152A_{152} A153A_{153} A154A_{154} A155A_{155} A156A_{156} A157A_{157} A158A_{158} A159A_{159} A160A_{160} A161A_{161} A162A_{162} A163A_{163} A164A_{164} A165A_{165} A166A_{166} A167A_{167} A168A_{168} A169A_{169} A170A_{170} A171A_{171} A172A_{172} A173A_{173} A174A_{174} A175A_{175} A176A_{176} A177A_{177} A178A_{178} A179A_{179} A180A_{180} A181A_{181} A182A_{182} A183A_{183} A184A_{184} A185A_{185} A186A_{186} A187A_{187} A188A_{188} A189A_{189} A190A_{190} A191A_{191} A192A_{192} A193A_{193} A194A_{194} A195A_{195} A196A_{196} A197A_{197} A198A_{198} A199A_{199} A200A_{200} A201A_{201} A202A_{202} A203A_{203} A204A_{204} A205A_{205} A206A_{206} A207A_{207} A208A_{208} A209A_{209} A210A_{210} A211A_{211} A212A_{212} A213A_{213} A214A_{214} A215A_{215} A216A_{216} A217A_{217} A218A_{218} A219A_{219} A220A_{220} A221A_{221} A222A_{222} A223A_{223} A224A_{224} A225A_{225} A226A_{226} A227A_{227} A228A_{228} A229A_{229} A230A_{230} A231A_{231} A232A_{232} A233A_{233} A234A_{234} A235A_{235} A236A_{236} A237A_{237} A238A_{238} A239A_{239} A240A_{240} A241A_{241} A242A_{242} A243A_{243} A244A_{244} A245A_{245} A246A_{246} A247A_{247} A248A_{248} A249A_{249} A250A_{250} A251A_{251} A252A_{252} A253A_{253} A254A_{254} A255A_{255} A256A_{256} A257A_{257} A258A_{258} A259A_{259} A260A_{260} A261A_{261} A262A_{262} A263A_{263} A264A_{264} A265A_{265} A266A_{266} A267A_{267} A268A_{268} A269A_{269} A270A_{270} A271A_{271} A272A_{272} A273A_{273} A274A_{274} A275A_{275} A276A_{276} A277A_{277} A278A_{278} A279A_{279} A280A_{280} A281A_{281} A282A_{282} A283A_{283} A284A_{284} A285A_{285} A286A_{286} A287A_{287} A288A_{288} A289A_{289} A290A_{290} A291A_{291} A292A_{292} A293A_{293} A294A_{294} A295A_{295} A296A_{296} A297A_{297} A298A_{298} A299A_{299} A300A_{300} A301A_{301} A302A_{302} A303A_{303} A304A_{304} A305A_{305} A306A_{306} A307A_{307} A308A_{308} A309A_{309} A310A_{310} A311A_{311} A312A_{312} A313A_{313} A314A_{314} A315A_{315} A316A_{316} A317A_{317} A318A_{318} A319A_{319} A321A_{321} A320A_{320} A322A_{322} A323A_{323} A324A_{324} A325A_{325} A326A_{326} A327A_{327} A328A_{328} A329A_{329} A330A_{330} A331A_{331} A332A_{332} A333A_{333} A334A_{334} A335A_{335} A336A_{336} A337A_{337} A338A_{338} A339A_{339} A340A_{340} A341A_{341} A342A_{342} A343A_{343} A344A_{344} A345A_{345} A346A_{346} A347A_{347} A348A_{348} A349A_{349} A350A_{350} A351A_{351} A352A_{352} A353A_{353} A354A_{354} A355A_{355} A356A_{356} A357A_{357} A358A_{358} A359A_{359} A360A_{360} A361A_{361} A362A_{362} A363A_{363} A364A_{364} A365A_{365} A366A_{366} A367A_{367} A368A_{368} A369A_{369} A370A_{370} A371A_{371} A372A_{372} A373A_{373} A374A_{374} A375A_{375} A376A_{376} A377A_{377} A378A_{378} A379A_{379} A380A_{380} A381A_{381} A382A_{382} A383A_{383} A384A_{384} A385A_{385} A386A_{386} A387A_{387} A388A_{388} A389A_{389} A390A_{390} A391A_{391} A392A_{392} A393A_{393} A394A_{394} A395A_{395} A396A_{396} A397A_{397} A398A_{398} A399A_{399} A400A_{400} A401A_{401} A402A_{402} A403A_{403} A404A_{404} A405A_{405} A406A_{406} A407A_{407} A408A_{408} A409A_{409} A410A_{410} A411A_{411} A412A_{412} A413A_{413} A414A_{414} A415A_{415} A416A_{416} A417A_{417} A418A_{418} A419A_{419} A420A_{420} A421A_{421} A422A_{422} A423A_{423} A424A_{424} A425A_{425} A426A_{426} A427A_{427} A428A_{428} A429A_{429} A430A_{430} A431A_{431} A432A_{432} A433A_{433} A434A_{434} A435A_{435} A436A_{436} A437A_{437} A438A_{438} A439A_{439} A440A_{440} A441A_{441} A442A_{442} A443A_{443} A444A_{444} A445A_{445} A446A_{446} A447A_{447} A448A_{448} A449A_{449} A450A_{450} A451A_{451} A452A_{452} A453A_{453} A454A_{454} A455A_{455} A456A_{456} A457A_{457} A458A_{458} A459A_{459} A460A_{460} A461A_{461} A462A_{462} A463A_{463} A464A_{464} A465A_{465} A466A_{466} A467A_{467} A468A_{468} A469A_{469} A470A_{470} A471A_{471} A472A_{472} A473A_{473} A474A_{474} A475A_{475} A476A_{476} A477A_{477} A478A_{478} A479A_{479} A480A_{480} A481A_{481} A482A_{482} A483A_{483} A484A_{484} A485A_{485} A486A_{486} A487A_{487} A488A_{488} A489A_{489} A490A_{490} A491A_{491} A492A_{492} A493A_{493} A494A_{494} A495A_{495} A496A_{496} A497A_{497} A498A_{498} A499A_{499} A500A_{500} A501A_{501} A502A_{502} A503A_{503} A504A_{504} A505A_{505} A506A_{506} A507A_{507} A508A_{508} A509A_{509} A510A_{510} A511A_{511} A512A_{512} A513A_{513} A514A_{514} A515A_{515} A516A_{516} A517A_{517} A518A_{518} A519A_{519} A520A_{520} A521A_{521} A522A_{522} A523A_{523} A524A_{524} A525A_{525} A526A_{526} A527A_{527} A528A_{528} A529A_{529} A530A_{530} A531A_{531} A532A_{532} A533A_{533} A534A_{534} A535A_{535} A536A_{536} A537A_{537} A538A_{538} A539A_{539} A540A_{540} A541A_{541} A542A_{542} A543A_{543} A544A_{544} A545A_{545} A546A_{546} A547A_{547} A548A_{548} A549A_{549} A550A_{550} A551A_{551} A552A_{552} A553A_{553} A554A_{554} A555A_{555} A556A_{556} A557A_{557} A558A_{558} A559A_{559} A560A_{560} A561A_{561} A562A_{562} A563A_{563} A564A_{564} A565A_{565} A566A_{566} A567A_{567} A568A_{568} A569A_{569} A570A_{570} A571A_{571} A572A_{572} A573A_{573} A574A_{574} A575A_{575} A576A_{576} A577A_{577} A578A_{578} A579A_{579} A580A_{580} A581A_{581} A582A_{582} A583A_{583} A584A_{584} A585A_{585} A586A_{586} A587A_{587} A588A_{588} A589A_{589} A590A_{590} A591A_{591} A592A_{592} A593A_{593} A594A_{594} A595A_{595} A596A_{596} A597A_{597} A598A_{598} A599A_{599} A600A_{600} A601A_{601} A602A_{602} A603A_{603} A604A_{604} A605A_{605} A606A_{606} A607A_{607} A608A_{608} A609A_{609} A610A_{610} A611A_{611} A612A_{612} A613A_{613} A614A_{614} A615A_{615} A616A_{616} A617A_{617} A618A_{618} A619A_{619} A620A_{620} A621A_{621} A622A_{622} A623A_{623} A624A_{624} A625A_{625} A626A_{626} A627A_{627} A628A_{628} A629A_{629} A630A_{630} A631A_{631} A632A_{632} A633A_{633} A634A_{634} A635A_{635} A636A_{636} A637A_{637} A638A_{638} A639A_{639} A640A_{640} A641A_{641} A642A_{642} A643A_{643} A644A_{644} A645A_{645} A646A_{646} A647A_{647} A648A_{648} A649A_{649} A650A_{650} A651A_{651} A652A_{652} A653A_{653} A654A_{654} A655A_{655} A656A_{656} A657A_{657} A658A_{658} A659A_{659} A660A_{660} A661A_{661} A662A_{662} A663A_{663} A664A_{664} A665A_{665} A666A_{666}

出力

答えを出力せよ。

入力例1

3 0 8 5 8 4 0 9 3 3 8 0 6 8 4 1 1 7 8 7 3 3 9 6 4 0 7 4 8 7 8 1 6 7 9 7 4 7 7 0 9 5 5 8 7 0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