layers={"0": {"config": {"units": 24, "activation": "relu"}, "weights": [[0.054301824420690536, -0.29228895902633667, -0.18119296431541443, 0.0943250060081482, 0.20814922451972961, -0.08127322793006897, 0.1845928430557251, -0.009471467696130276, 0.20563896000385284, 0.11575218290090561, -0.09941837191581726, 0.27119195461273193, 0.08380014449357986, 0.20336267352104187, 0.04467358812689781, 0.3274483382701874, 0.02908562310039997, 0.2114071249961853, 0.30661240220069885, 0.08807597309350967, -0.14694754779338837, 0.2245192974805832, -0.11966946721076965, 0.24119071662425995], [0.13371548056602478, 0.16426144540309906, 0.2284730076789856, -0.13032691180706024, -0.19444075226783752, -0.10648145526647568, -0.03417596593499184, -0.0059101092629134655, -0.12632814049720764, 0.1732744425535202, -0.2215096652507782, -0.2849164307117462, 0.304811954498291, 0.30972740054130554, -0.2511168420314789, 0.14420044422149658, 0.09727766364812851, -0.38832226395606995, -0.07939473539590836, -0.2415255457162857, -0.10900747030973434, 0.0928216353058815, 0.22799712419509888, -0.41694849729537964], [-0.11432651430368423, 0.1723514050245285, 0.202690988779068, -0.2045871764421463, -0.17937611043453217, 0.10981552302837372, 0.014319313690066338, -0.2300662398338318, -0.1572137326002121, 0.26834166049957275, -0.07984966784715652, 0.3204995095729828, -0.01350115891546011, -0.06285600364208221, -0.2076815515756607, -0.07607018947601318, 0.30702951550483704, 0.4173279404640198, 0.004552791360765696, -0.035602323710918427, -0.05465821921825409, -0.18222413957118988, -0.12669868767261505, -0.5193548202514648], [0.17711664736270905, -0.2712993323802948, 0.06926551461219788, -0.1029057651758194, 0.14290985465049744, -0.127859964966774, -0.16357988119125366, 0.08696503192186356, 0.17952127754688263, -0.09486183524131775, 0.0962168276309967, 0.19040068984031677, 0.270005464553833, -0.08233176916837692, 0.448251873254776, 0.090787373483181, 0.10179559141397476, 0.1697569042444229, -0.003935774322599173, 0.013229791074991226, 0.03678785637021065, 0.278707891702652, 0.21427500247955322, -0.2742372751235962], [0.03523710370063782, 0.25843849778175354, -0.13372504711151123, -0.0945177972316742, 0.10890410840511322, -0.0067818439565598965, -0.02667875960469246, -0.06179334968328476, -0.16247059404850006, -0.21266192197799683, 0.11500454694032669, 0.15880976617336273, -0.18163448572158813, -0.06591960042715073, 0.08461569994688034, -0.1420687735080719, 0.030156726017594337, 0.17909884452819824, -0.21774616837501526, 0.17392633855342865, 0.02053503505885601, 0.03963903710246086, 0.1344902515411377, 0.8081483840942383], [0.27750512957572937, -0.08597476780414581, 0.0002585223410278559, 0.15696655213832855, -0.04806111007928848, -0.09058427810668945, -0.13571500778198242, -0.06315313279628754, 0.12093755602836609, -0.12572118639945984, -0.06669021397829056, 0.1195683628320694, 0.099223792552948, 0.2671116590499878, -0.09295274317264557, -0.1604798138141632, 0.021836930885910988, -0.21727605164051056, -0.20148926973342896, 0.1702432483434677, -0.22606931626796722, -0.14828082919120789, -0.14771102368831635, 0.034874942153692245], [0.08638279139995575, -0.017615457996726036, -0.25110679864883423, -0.00744183175265789, -0.1518029421567917, -0.09957251697778702, -0.04758767783641815, 0.19602365791797638, 0.21252718567848206, -0.017381612211465836, -0.11042948812246323, 0.08938350528478622, 0.1841384619474411, -0.20841337740421295, -0.06776060163974762, 0.11332659423351288, 0.08367984741926193, -0.05448101833462715, 0.14203481376171112, -0.09004133939743042, -0.28050696849823, -0.06862402707338333, 0.049503594636917114, 0.3844815790653229], [-0.12750142812728882, -0.0584418885409832, -0.021385464817285538, 0.04773525521159172, -0.09910503029823303, -0.018088247627019882, 0.021211877465248108, 0.08962421119213104, -0.12448465079069138, 0.20901687443256378, -0.1847228854894638, 0.20367516577243805, 0.1223369836807251, 0.08908814191818237, -0.09530176967382431, 0.0990699753165245, 0.20793834328651428, -0.22125126421451569, 0.002416255883872509, 0.06561838090419769, 0.18605265021324158, 0.011072482913732529, -0.32020303606987, 0.1288186013698578], [0.11564601957798004, -0.11117637157440186, -0.24339094758033752, 0.11749748140573502, 0.04979471489787102, -0.2090912163257599, 0.07802285254001617, -0.05411721393465996, 0.34147700667381287, -0.17196089029312134, 0.06950673460960388, -0.17761990427970886, 0.17744512856006622, -0.1080857440829277, 0.08298264443874359, 0.22901424765586853, -0.011966274119913578, 0.5289301872253418, 0.050200190395116806, -0.14852094650268555, 0.370270699262619, -0.1392572969198227, -0.3795991837978363, -0.4973435401916504], [-0.08691573143005371, -0.22238191962242126, -0.10020944476127625, -0.37005940079689026, 0.08347661793231964, -0.11313114315271378, 0.08850042521953583, 0.2861027717590332, -0.09010369330644608, 0.1910107433795929, -0.12477954477071762, 0.1555948555469513, -0.21175627410411835, 0.016409099102020264, 0.053329017013311386, -0.05757547542452812, 0.029408222064375877, 0.3262154459953308, 0.0887056291103363, -0.19470077753067017, 0.22049197554588318, -0.16587035357952118, 0.2767047882080078, -0.22442345321178436], [-0.1624327152967453, 0.06569293886423111, 0.07339395582675934, 0.2593155801296234, -0.17465455830097198, -0.30802157521247864, -0.020003216341137886, 0.15633539855480194, -0.00533851096406579, 0.09497467428445816, 0.026054853573441505, 0.1662215143442154, -0.10815048962831497, -0.031588006764650345, -0.06425255537033081, 0.3266901671886444, -0.1148124486207962, 0.002917880890890956, -0.07606036961078644, 0.11450101435184479, -0.17846418917179108, 0.052822791039943695, -0.12595723569393158, 0.5341152548789978], [-0.24158893525600433, 0.102948397397995, -0.13636153936386108, -0.06098918616771698, -0.12921828031539917, 0.2201884388923645, 0.18028311431407928, -0.24882768094539642, 0.2086329460144043, 0.00909823551774025, -0.05730898305773735, 0.12053201347589493, -0.19063156843185425, -0.06733768433332443, 0.11805183440446854, 0.059349749237298965, 0.13882116973400116, 0.2080860435962677, 0.06694207340478897, -0.08524946123361588, 0.026132939383387566, 0.16005666553974152, 0.28063151240348816, 0.503289520740509], [0.014581467024981976, 0.015913881361484528, 0.17190195620059967, 0.1063690260052681, 0.11416028439998627, 0.04799151420593262, -0.25992459058761597, 0.06956688314676285, 0.12552301585674286, 0.025121280923485756, -0.16430486738681793, -0.07119765132665634, 0.16074109077453613, 0.030722549185156822, 0.001434922101907432, -0.01398037001490593, -0.33520448207855225, -0.23204469680786133, -0.013671987690031528, -0.09011153131723404, 0.15411055088043213, -0.26341044902801514, -0.01973995566368103, 0.55653315782547], [0.28635069727897644, -0.08254443854093552, 0.13183362782001495, -0.18163816630840302, 0.008204183541238308, -0.14007574319839478, 0.2762557864189148, -0.15822583436965942, -0.1508912444114685, 0.044962432235479355, -0.024391328915953636, 0.22856228053569794, 0.19819375872612, -0.12519095838069916, 0.056465376168489456, -0.1968129426240921, 0.3471170961856842, 0.054020803421735764, -0.12126022577285767, -0.25071123242378235, 0.31546834111213684, -0.32894203066825867, -0.3205321729183197, -0.7014082670211792], [-0.062444716691970825, -0.20933642983436584, -0.15852372348308563, 0.10151658207178116, 0.07417964190244675, 0.2675502300262451, -0.14672023057937622, -0.07357215136289597, -0.12611663341522217, 0.11332078278064728, 0.1848328411579132, 0.0871126800775528, -0.19294141232967377, 0.06548310071229935, -0.051976341754198074, -0.09329751133918762, -0.11305753886699677, -0.016117680817842484, 0.10237579047679901, 0.18133018910884857, -0.22798439860343933, 0.18418560922145844, 0.17068326473236084, -0.37409815192222595], [0.18668417632579803, -0.054745547473430634, -0.21194639801979065, 0.11245040595531464, 0.33522382378578186, -0.23262301087379456, 0.21644289791584015, -0.20683561265468597, -0.1561489850282669, 0.1761736422777176, -0.20563605427742004, 0.20535726845264435, -0.0892014279961586, 0.1134556233882904, -0.22077463567256927, -0.08271647244691849, 0.00010121273226104677, -0.20863701403141022, -0.08917803317308426, 0.2736941874027252, -0.027188412845134735, 0.08875516802072525, -0.09303785115480423, -0.5322768092155457], [-0.20845820009708405, 0.16065748035907745, -0.09437843412160873, 0.3531244099140167, -0.09432589262723923, -0.2651316225528717, 0.3392162621021271, 0.17077188193798065, 0.16628186404705048, 0.019857726991176605, -0.18384325504302979, 0.0353831984102726, 0.04679006338119507, -0.24295753240585327, 0.09543885290622711, 0.10903307795524597, 0.028529897332191467, -0.03994916379451752, 0.13320495188236237, -0.04953964799642563, -0.015001863241195679, -0.21064609289169312, -0.06002857908606529, 0.29517224431037903], [-0.17317336797714233, -0.26288291811943054, 0.09421330690383911, -0.02695300430059433, 0.23909549415111542, 0.20246300101280212, 0.19179917871952057, -0.08120716363191605, 0.3101353943347931, 0.07263229787349701, -0.2800616919994354, -0.017598621547222137, -0.02175307087600231, 0.012037611566483974, -0.23724569380283356, 0.0066220564767718315, 0.238904669880867, -0.11635266989469528, 0.3745930790901184, -0.009601671248674393, -0.25208714604377747, -0.02926788106560707, 0.26360324025154114, 0.053134672343730927], [-0.08416286110877991, 0.08580431342124939, 0.18594278395175934, -0.11823134124279022, -0.31772783398628235, 0.20746727287769318, -0.09585689753293991, 0.3031236231327057, -0.011393976397812366, -0.09543450176715851, 0.0007809872622601688, -0.16863365471363068, -0.20594845712184906, 0.14388123154640198, 0.15594035387039185, 0.044341959059238434, 0.22379480302333832, -0.1829390972852707, 0.014448853209614754, -0.2672191858291626, 0.264498770236969, 0.3018239736557007, -0.30230650305747986, -0.8618762493133545], [0.06653187423944473, -0.0967358723282814, -0.03326321393251419, 0.003978153690695763, -0.09306085854768753, 0.19615019857883453, -0.36140379309654236, 0.20344315469264984, 0.038793306797742844, -0.12165512889623642, 0.07036151736974716, -0.034228432923555374, 0.23618356883525848, -0.164878249168396, 0.09312114864587784, -0.1315324455499649, -0.14167724549770355, -0.23180484771728516, 0.1391715258359909, 0.23652586340904236, 0.012852039188146591, 0.1670454442501068, -0.10078741610050201, -0.7037249207496643], [-0.19905643165111542, 0.03126394748687744, -0.04025520011782646, 0.26901426911354065, 0.1644328236579895, -0.2531459629535675, 0.12473151832818985, 0.1973974108695984, 0.11792203783988953, -0.04030613228678703, -0.06429073214530945, 0.026129579171538353, 0.13881683349609375, 0.05598954111337662, -0.04740025848150253, 0.12574808299541473, -0.0901915654540062, 0.17836026847362518, 0.11561375856399536, 0.12409128993749619, -0.14416255056858063, -0.2414868175983429, 0.175995334982872, 0.1423172801733017], [0.2387552261352539, 0.12090198695659637, -0.1258585900068283, -0.057591333985328674, 0.1158931776881218, 0.03879644349217415, 0.13451233506202698, -0.013061674311757088, -0.19875717163085938, 0.06548722833395004, -0.01086448784917593, 0.015609129332005978, -0.11633533239364624, 0.17054028809070587, -0.024428337812423706, 0.055490642786026, 0.013729788362979889, -0.3702463209629059, -0.10174033790826797, -0.13333094120025635, -0.05571933090686798, -0.07765544205904007, 0.11391216516494751, -0.4749537706375122], [0.032261814922094345, 0.3530687093734741, -0.13306722044944763, 0.15455038845539093, 0.1072477325797081, 0.02415984682738781, 0.10161659121513367, -0.21529816091060638, 0.24057814478874207, -0.24098017811775208, 0.31268274784088135, -0.25935089588165283, -0.14255307614803314, 0.043335773050785065, 0.25326403975486755, -0.2171366661787033, -0.12508049607276917, -0.16773970425128937, -0.2472224235534668, 0.047552116215229034, 0.10571318119764328, -0.30897998809814453, -0.39756569266319275, -0.38888928294181824], [-0.17985910177230835, -0.1297852247953415, 0.07086688280105591, -0.25385424494743347, 0.043034520000219345, 0.1451932042837143, 0.12935347855091095, 0.20723041892051697, -0.1891171932220459, 0.26324543356895447, -0.17940932512283325, -0.3465445935726166, 0.18831808865070343, 0.11459489166736603, 0.11491431295871735, 0.012350976467132568, -0.08506675809621811, 0.37391528487205505, -0.14133980870246887, -0.032968178391456604, 0.2505838871002197, 0.02065790817141533, 0.23740863800048828, 0.36489221453666687]], "biases": [0.05329658463597298, -0.07472538203001022, -0.13641349971294403, 0.33465537428855896, 0.15771427750587463, -0.11204591393470764, 0.3406759202480316, 0.21991270780563354, 1.1181291341781616, -0.5400969386100769, -0.004189555067569017, 0.06374536454677582, -0.05273862183094025, 0.20335963368415833, 0.03257625177502632, -0.13780036568641663, -0.1273287832736969, -0.19988806545734406, 0.1525566428899765, -0.3101591169834137, -0.2644284963607788, 0.14829769730567932, 0.17909029126167297, 0.12353888899087906]}, "1": {"config": {"units": 12, "activation": "linear"}, "weights": [[0.2140081375837326, -0.07264930009841919, -0.10081712901592255, -0.1333518922328949, 0.46372276544570923, -0.06437018513679504, 0.13861176371574402, -0.031249843537807465, -0.15905198454856873, -0.12146295607089996, 0.3515891432762146, 0.029134729877114296, 0.3321892321109772, -0.10213024169206619, -0.15030138194561005, -0.10762236267328262, -0.004208600614219904, 0.0872022956609726, -0.2736891806125641, -0.307162880897522, -0.17825953662395477, 0.08128827810287476, -0.23027102649211884, 0.2247738391160965], [0.283869206905365, -0.022193653509020805, -0.11373516172170639, -0.2541793882846832, 0.3824763894081116, -0.10847601294517517, 0.0843329206109047, 0.02229333110153675, -0.20533299446105957, -0.15585003793239594, 0.23543012142181396, 0.31333664059638977, 0.37993350625038147, -0.09089387953281403, -0.16765975952148438, -0.2861127555370331, 0.12782153487205505, -0.08986984193325043, -0.3660415709018707, -0.09608107060194016, -0.13485285639762878, 0.0880814790725708, -0.21150292456150055, 0.04515169933438301], [-0.21972858905792236, -0.18853069841861725, -0.11256731301546097, 0.13078126311302185, 0.43031004071235657, 0.2517954111099243, 0.1222345381975174, 0.19281479716300964, -0.22938832640647888, -0.18360699713230133, 0.06701510399580002, 0.29592716693878174, 0.2785649299621582, -0.3435720205307007, -0.19846586883068085, -0.23771484196186066, 0.13382498919963837, 0.09603770822286606, -0.1383429914712906, -0.1670711487531662, 0.2721160650253296, -0.11338970810174942, -0.09189882129430771, 0.0825640857219696], [0.06310819834470749, -0.16352342069149017, -0.20183494687080383, -0.09475240111351013, 0.3543562591075897, 0.2761564552783966, -0.015760574489831924, 0.02291381172835827, -0.19686700403690338, -0.1541680544614792, 0.3270556330680847, 0.19481542706489563, 0.232151597738266, -0.2563629746437073, 0.09858860075473785, -0.11296132206916809, -0.017144575715065002, 0.2375706285238266, -0.13398179411888123, -0.36147749423980713, 0.029694829136133194, -0.2461746782064438, -0.09755805134773254, 0.11659552156925201], [0.22601734101772308, -0.1522667109966278, -0.2675117552280426, -0.2341034710407257, 0.4803228974342346, -0.29191404581069946, 0.1299939602613449, 0.06959202885627747, -0.3193654417991638, -0.10769202560186386, 0.11703415960073471, -0.177755206823349, 0.07179860025644302, -0.010219745337963104, -0.2015789896249771, -0.06903992593288422, -0.11929496377706528, 0.2391001582145691, -0.562454879283905, 0.11193984001874924, 0.2125321477651596, 0.12059067189693451, -0.18764513731002808, 0.3545536994934082], [0.2540833652019501, -0.30484095215797424, -0.46428370475769043, -0.10131361335515976, 0.45075303316116333, 0.15666180849075317, 0.20573392510414124, 0.05171165615320206, -0.3873889744281769, -0.15449397265911102, -0.1509646326303482, -0.011773885227739811, -0.0399787500500679, 0.036714233458042145, 0.06599768251180649, 0.18591521680355072, 0.28184571862220764, 0.26471075415611267, -0.07959460467100143, -0.4276454746723175, -0.10397958010435104, -0.2134988158941269, -0.24088920652866364, 0.14133794605731964], [0.2673107385635376, -0.1074686124920845, -0.004509058315306902, -0.25771564245224, 0.16681678593158722, -0.28234052658081055, 0.19607536494731903, -0.008872315287590027, -0.4914846122264862, -0.25413045287132263, -0.2586545944213867, 0.37185177206993103, -0.09716082364320755, -0.2084839642047882, 0.010724375955760479, -0.06416332721710205, 0.3513474762439728, -0.09113573282957077, -0.285561203956604, -0.1345113068819046, 0.15618713200092316, -0.1664169877767563, -0.003942624665796757, 0.1282867044210434], [-0.03117375820875168, 0.06416676193475723, 0.047739580273628235, 0.16458900272846222, 0.062213972210884094, -0.337990403175354, 0.12584500014781952, -0.09868171811103821, -0.5369729399681091, -0.1571817249059677, -0.027766434475779533, 0.23457977175712585, -0.13351280987262726, -0.23801374435424805, 0.07857119292020798, -0.2788032591342926, 0.32677319645881653, -0.0034697947558015585, -0.22308501601219177, -0.18326367437839508, 0.1069507971405983, -0.03383711352944374, -0.05845029279589653, 0.2544724941253662], [0.03085346519947052, -0.30731213092803955, -0.07740168273448944, 0.2566682696342468, 0.10807700455188751, 0.1729225218296051, 0.1160314604640007, 0.1152273416519165, -0.6773725748062134, -0.08566420525312424, 0.3448740839958191, 0.0018824837170541286, -0.20541009306907654, -0.10917220264673233, 0.036936625838279724, 0.20729558169841766, 0.18706215918064117, 0.26174935698509216, -0.15435464680194855, -0.32449087500572205, -0.12904129922389984, -0.12243001163005829, -0.3027157187461853, 0.11275813728570938], [0.13772311806678772, -0.0767265185713768, -0.32238635420799255, 0.29485785961151123, -0.0002327496331417933, -0.37707120180130005, 0.16631437838077545, 0.038556575775146484, -0.7414379119873047, -0.20792149007320404, 0.3242705464363098, 0.16573531925678253, -0.09652376919984818, 0.2291213870048523, 0.008049801923334599, -0.04119526967406273, -0.11467035114765167, 0.2725048065185547, -0.4695080518722534, 0.14691926538944244, -0.16728150844573975, -0.38285699486732483, -0.08766627311706543, -0.10016737133264542], [0.27106180787086487, -0.28470534086227417, -0.003019062802195549, 0.016492651775479317, 0.01596633717417717, 0.13173431158065796, 0.09855743497610092, 0.20713204145431519, -0.8211190104484558, -0.0787673145532608, -0.0068367221392691135, 0.2574375867843628, -0.14374984800815582, -0.08056838065385818, -0.1680184006690979, 0.030364399775862694, -0.1634920835494995, -0.21843299269676208, -0.16437777876853943, -0.05533736199140549, 0.3342270255088806, -0.4083843231201172, -0.15749184787273407, -0.049251243472099304], [0.055920008569955826, -0.38958874344825745, 0.21128900349140167, 0.34220391511917114, 0.05685226246714592, 0.12585517764091492, 0.18290142714977264, 0.11922839283943176, -0.7481972575187683, -0.19712640345096588, 0.06618790328502655, -0.05340484529733658, -0.22176070511341095, -0.32454368472099304, -0.08150438964366913, -0.4024375081062317, 0.23519842326641083, -0.22976163029670715, -0.07108371704816818, 0.13909846544265747, 0.003117952961474657, 0.22055010497570038, -0.2804412543773651, 0.2982015907764435]], "biases": [0.03840475156903267, 0.08395107835531235, 0.0033464948646724224, 0.050364963710308075, 0.08044317364692688, 0.012935107573866844, 0.22967609763145447, 0.1263229101896286, 0.14107848703861237, 0.19027827680110931, 0.3420501947402954, 0.07666980475187302]}}
# def normalize(arr, mx, mn):
# for i in range(len(arr)):
# for j in range(len(arr[i])):
# arr[i][j] = arr[i][j]*100 / (mx - mn)
# return arr
def relu(x):
return max(0.0, x)
def custom_predict(input):
for key, layer in layers.items():
# print(layer)
config = layer["config"]
weights = layer["weights"]
biases = layer["biases"]
# print(config)
neurons = config["units"]
output = [0]*neurons
for n in range(neurons):
activation = 0
assert len(input) == len(weights[n])
for (i, w) in zip(input, weights[n]):
activation += i * w
activation += biases[n]
# print(activation)
if(config["activation"] == 'relu'):
output[n] = relu(activation)
else:
output[n] = activation
input = output
return input
# import sys
# import numpy as np
# file = open("data.txt", "r")
# sys.stdin = file
# total_correct = 0
# total_incorrect = 0
from statistics import variance, mean
# training_vars = []
# correct_vars = []
# incorrect_vars = []
data = []
days = int(input())
for i in range(days):
temps = [float(x) for x in input().split()]
data.append(temps)
TRAINING_MEAN = 4.9959406249999985
TRAINING_VAR = 6.964563233695652
for d in data:
avg = sum(d[:24]) / 24
var = variance(d[:24])
# if abs(TRAINING_MEAN - avg) < 17 and abs(TRAINING_VAR - var) < 50:
if True:
ans = custom_predict(d[:24])
print(" ".join([format(x, ".1f") for x in ans]))
# truth = d[24:]
# diff = np.abs(np.array(ans) - np.array(truth))
# correct = np.count_nonzero(diff < 0.75)
# incorrect = np.count_nonzero(diff >= 2.05)
else:
print("? " * 12)
# incorrect = 0
# correct = 0
# var = variance(d[:24])
# training_vars.append(var)
# if (incorrect > 4):
# incorrect_vars.append(var)
# else:
# correct_vars.append(var)
# total_correct += correct
# total_incorrect += incorrect
# score = 25 * (total_correct - total_incorrect) / days
# print(mean(correct_vars))
# print(mean(incorrect_vars))
# print(mean(training_vars))
# print(total_correct, total_incorrect, score)
# file.close()