layers={"1": {"config": {"units": 24, "activation": "relu"}, "weights": [[0.13568317890167236, -0.034423381090164185, 0.016141828149557114, -0.061343707144260406, -0.07031091302633286, -0.0354609414935112, -0.04137872904539108, 0.04899686202406883, -0.2228076308965683, 0.04435195401310921, 0.11583717912435532, -0.11063998937606812, 0.13154378533363342, 0.15784965455532074, 0.017719391733407974, 0.25831925868988037, 0.28866496682167053, -0.05754248797893524, 0.18155606091022491, 0.15969334542751312, 0.34492045640945435, 0.18441438674926758, 0.3453364968299866, -0.058902304619550705], [0.1794249564409256, 0.15692178905010223, 0.09536872804164886, -0.07418935745954514, -0.07122446596622467, 0.12462431192398071, -0.04260985180735588, 0.06688547879457474, 0.22949978709220886, -0.13434027135372162, -0.10018949210643768, 0.0046310462057590485, 0.026278508827090263, 0.10600557923316956, 0.15191613137722015, -0.06253514438867569, 0.13577300310134888, -0.1092810109257698, -0.2915787994861603, -0.19193758070468903, -0.19565533101558685, -0.3200492262840271, -0.3320271670818329, -0.13952511548995972], [-0.03628916293382645, 0.014655017293989658, 0.0705876275897026, -0.06263787299394608, -0.07615886628627777, -0.12514618039131165, 0.05337481573224068, -0.3056850731372833, -0.00930176954716444, 0.09673020243644714, 0.0334576815366745, 0.08744501322507858, 0.07583709806203842, 0.18204331398010254, 0.07425177842378616, -0.1274382770061493, -0.12849114835262299, 0.08095945417881012, 0.057838864624500275, -0.16387802362442017, 0.3166986107826233, 0.14595146477222443, 0.3098122179508209, -0.15061968564987183], [0.13071773946285248, -0.003925100434571505, 0.0052567776292562485, 0.03604783117771149, 0.061841078102588654, -0.06343524158000946, 0.04095340520143509, -0.034673236310482025, 0.052179038524627686, -0.05726661533117294, -0.003627464873716235, -0.21992594003677368, -0.14448285102844238, -0.013354321010410786, -0.2528473734855652, -0.03743660822510719, 0.015749672427773476, -0.1518229991197586, -0.08632076531648636, -0.2508973479270935, -0.21301229298114777, -0.11769372224807739, -0.3737156093120575, 0.04799309000372887], [-0.09460242092609406, 0.10024478286504745, -0.09740791469812393, -0.08370528370141983, -0.05252089351415634, -0.05035309121012688, 0.03915054723620415, -0.06254999339580536, 0.009704518131911755, 0.08711844682693481, -0.008890627883374691, 0.06167752668261528, 0.08343798667192459, -0.04290277883410454, 0.12814588844776154, -0.08933983743190765, 0.10092303156852722, -0.07761993259191513, -0.04306955635547638, -0.08289913833141327, 0.00850587897002697, -0.22520199418067932, -0.26916390657424927, 0.07449303567409515], [-0.08730817586183548, 0.13410601019859314, -0.049928393214941025, 0.14534738659858704, 0.1300957053899765, -0.12357904762029648, 0.12927880883216858, -0.05147245526313782, -0.0006115323631092906, 0.208270862698555, -0.08817501366138458, -0.057999368757009506, -0.04701932892203331, -0.1681564897298813, 0.004134973045438528, -0.09590068459510803, 0.17305514216423035, -0.09770843386650085, -0.004751157946884632, -0.09015654772520065, -0.2365838885307312, -0.17737887799739838, -0.3200019896030426, -0.14968599379062653], [-0.12383411079645157, -0.041348911821842194, -0.1041707992553711, 0.005486256908625364, -0.0023887718562036753, -0.12112213671207428, -0.014762057922780514, 0.01597488671541214, -0.07654959708452225, 0.23937858641147614, -0.05892937630414963, 0.042557742446660995, 0.03413822874426842, -0.05453180894255638, 0.001175330369733274, 0.03111588954925537, -0.06533582508563995, 0.1972612589597702, 0.3614528775215149, 0.11642317473888397, 0.08425392210483551, 0.035899706184864044, -0.14383594691753387, -0.713574230670929], [-0.010699987411499023, -0.0023562780115753412, 0.007685358170419931, -0.02162955328822136, -0.01561907958239317, 0.01603632979094982, -0.004130367189645767, 0.008589613251388073, 0.014900372363626957, 0.0027462244033813477, 0.004255818668752909, -0.004245485179126263, -0.016038820147514343, 0.0038271097000688314, -0.022950557991862297, -0.056562639772892, -0.03997430577874184, -0.023825841024518013, -0.0533599853515625, -0.15655691921710968, -0.07850378006696701, -0.17252957820892334, -0.3178257942199707, 0.9161377549171448], [-0.08782616257667542, -0.06603004783391953, -0.21167205274105072, -0.1671106368303299, 0.07414571195840836, 0.1601313203573227, 0.12847474217414856, -0.11659213155508041, -0.14057157933712006, 0.054152607917785645, 0.19591264426708221, -0.0013022618368268013, -0.2692212462425232, 0.0006937371217645705, 0.0715903788805008, -0.36041733622550964, -0.10245580226182938, -0.16689932346343994, 0.010834394954144955, -0.18135586380958557, 0.09258481115102768, -0.38025620579719543, 0.014150953851640224, 0.3982453942298889], [-0.025309545919299126, -0.03927969932556152, -0.028110790997743607, -0.04257935658097267, -0.04798664152622223, -0.04183178022503853, 0.02925967611372471, -0.011171850375831127, 0.5089902877807617, -0.1852312535047531, 0.15512779355049133, 0.07217438519001007, 0.03291161730885506, -0.01551445946097374, 0.3951903283596039, -0.4601497948169708, -0.37490835785865784, -0.012002925388514996, 0.28077077865600586, 0.005513363052159548, -0.11297724395990372, -0.01669085957109928, -0.1364629566669464, 0.10878925770521164], [0.17072193324565887, 0.025774436071515083, -0.011900032870471478, 0.05322708562016487, 0.016615038737654686, 0.036246158182621, -0.099295474588871, 0.16459715366363525, -0.1352783590555191, -0.1192152351140976, 0.025573380291461945, -0.2001299262046814, -0.039421383291482925, -0.07025943696498871, -0.15644460916519165, 0.02438984625041485, 0.17911574244499207, -0.12259086221456528, 0.2659173309803009, 0.363063246011734, 0.04307423159480095, 0.39943915605545044, 0.5462114214897156, -0.10446678847074509], [-0.15864123404026031, -0.15998564660549164, -0.12194876372814178, -0.04657911881804466, -0.1750543862581253, -0.05484791472554207, 0.11004362255334854, -0.08937952667474747, 0.23401056230068207, -0.07461146265268326, 0.12442239373922348, -0.19203980267047882, -0.09561080485582352, 0.030521392822265625, -0.028934037312865257, 0.15797556936740875, 0.45905938744544983, 0.366399884223938, 0.11439365893602371, 0.18770964443683624, -0.059689152985811234, -0.19923079013824463, -0.34793224930763245, -0.42077401280403137], [0.13061776757240295, 0.03365383669734001, 0.11162995547056198, -0.10908728837966919, -0.11268999427556992, 0.2433653622865677, 0.15812602639198303, -0.1484442949295044, -0.03058135136961937, 0.03764700889587402, 0.008095351047813892, -0.020664256066083908, -0.011458922177553177, -0.05091876536607742, -0.06334186345338821, -0.10234089940786362, 0.2041834443807602, 0.09763679653406143, 0.0471230186522007, -0.1417294442653656, 0.2478957176208496, -0.24586492776870728, -0.015086301602423191, 0.06638924777507782], [-0.1893095076084137, -0.025695154443383217, -0.02524935081601143, 0.12504816055297852, 0.1374104619026184, -0.00106133078224957, 0.04756469279527664, 0.11893165111541748, 0.2441396266222, 0.03946581855416298, -0.1359383910894394, 0.21913501620292664, 0.046694837510585785, -0.06554297357797623, 0.30367082357406616, 0.28531330823898315, -0.040793441236019135, 0.23306114971637726, 0.03328940272331238, 0.2534921169281006, 0.09855663031339645, 0.3618839383125305, 0.1936299055814743, -0.257376104593277], [-0.027289502322673798, 0.0595744289457798, -0.08310246467590332, -0.10849658399820328, -0.20135588943958282, -0.16410934925079346, -0.20225563645362854, -0.14896804094314575, 0.06710430979728699, 0.2306455671787262, 0.14965789020061493, 0.20019929111003876, 0.11808697879314423, 0.09718809276819229, 0.22124892473220825, 0.04042644426226616, 0.35691410303115845, 0.06725189089775085, 0.4820409417152405, -0.13909462094306946, -0.23493412137031555, -0.24434149265289307, -0.40667271614074707, -0.30051183700561523], [0.040766652673482895, -0.021058566868305206, 0.006631356198340654, -0.08884509652853012, -0.049950048327445984, 0.09104177355766296, -0.01879824884235859, 0.0015556277940049767, -0.1250058263540268, 0.10299443453550339, 0.12466470897197723, 0.02749062515795231, 0.14987602829933167, 0.12428028136491776, 0.026436390355229378, 0.1814195215702057, 0.3554736375808716, -0.033702559769153595, -0.010683044791221619, -0.0829300731420517, 0.12808579206466675, -0.3060496747493744, -0.20846207439899445, 0.07540562748908997], [-0.14556239545345306, -0.07482687383890152, -0.02642078697681427, 0.015129384584724903, 0.07306826114654541, -0.007486774120479822, 0.006313991267234087, 0.04917715862393379, -0.07298973947763443, 0.04745793342590332, -0.014281917363405228, 0.07614979147911072, 0.016384484246373177, -0.011298395693302155, 0.0035935258492827415, 0.02703162096440792, -0.12291032075881958, 0.14453628659248352, -0.02267744205892086, 0.05183471739292145, -0.07546347379684448, -0.16555368900299072, -0.10795778036117554, -0.01768309809267521], [-0.029216201975941658, 0.014315874315798283, -0.07123590260744095, -0.006129746325314045, 0.0509096197783947, -0.038254622370004654, 0.019456608220934868, 0.04715440422296524, -0.04640360549092293, 0.016208963468670845, 0.033264171332120895, -0.008515727706253529, -0.0437680222094059, 0.013080229051411152, -0.05385003611445427, 0.1333545297384262, -0.045408040285110474, -0.08070790022611618, -0.2744428515434265, 0.050732314586639404, -0.2391989380121231, -0.28877073526382446, -0.04667849838733673, 0.8992424607276917], [-0.22490344941616058, -0.03416202962398529, -0.009692934341728687, 0.11228256672620773, 0.081865094602108, -0.044459324330091476, -0.002777655143290758, 0.031950585544109344, -0.06862829625606537, 0.14754357933998108, 0.0016035092994570732, 0.11854201555252075, 0.025929268449544907, -0.04196840897202492, 0.039461538195610046, 0.02371174655854702, -0.11024701595306396, 0.06984322518110275, -0.1541939675807953, 0.0162956565618515, -0.22984887659549713, -0.3726623058319092, -0.39330995082855225, -0.1513443887233734], [0.1558191180229187, -0.020801600068807602, 0.2983025908470154, 0.12401209026575089, 0.12792108952999115, -0.06946554034948349, -0.2625465393066406, -0.22840455174446106, 0.0064039407297968864, -0.17550942301750183, 0.12540477514266968, 0.02522863820195198, -0.09497370570898056, 0.1318904310464859, -0.05908860266208649, -0.27397772669792175, -0.3040427565574646, -0.3167491853237152, -0.18677258491516113, -0.18542121350765228, -0.12069371342658997, -0.04751450568437576, 0.06309319287538528, 0.595963180065155], [0.005423504393547773, -0.00213017244823277, -0.011334069073200226, -0.0545511469244957, -0.06627227365970612, -0.027507741004228592, -0.08194847404956818, -0.13701437413692474, 0.18799030780792236, 0.06942136585712433, 0.02814519964158535, -0.09521207213401794, -0.14147046208381653, 0.052500225603580475, -0.2741030156612396, -0.16382187604904175, 0.5991951823234558, -0.09502939134836197, 0.2696547508239746, -0.2545695900917053, -0.3135945796966553, -0.10384760051965714, -0.1331927329301834, 0.577003538608551], [0.23190541565418243, -0.1133616492152214, 0.03478918597102165, -0.14144065976142883, -0.0018028332851827145, -0.031241141259670258, -0.03177725896239281, 0.09798651188611984, 0.09210082143545151, -0.28329622745513916, -0.014414946548640728, -0.24565580487251282, -0.10532759130001068, 0.09679298102855682, -0.3815396726131439, 0.06812713295221329, -0.1187143623828888, 0.0030927653424441814, -0.09381932765245438, -0.3013332784175873, -0.11243990063667297, 0.023229632526636124, -0.3121013343334198, 0.1717817187309265], [-0.1132844015955925, -0.05508146807551384, -0.06854028254747391, 0.06914752721786499, 0.40800741314888, -0.04073960334062576, 0.17310403287410736, 0.007678646594285965, -0.14721736311912537, -0.027148330584168434, -0.08111556619405746, -0.16308361291885376, -0.1870727837085724, -0.13987262547016144, -0.20435640215873718, -0.19668839871883392, -0.2447969913482666, 0.11746089905500412, 0.27946969866752625, -0.01965845748782158, 0.029440714046359062, 0.1941721886396408, 0.29584193229675293, -0.23280948400497437], [0.01073630340397358, 0.07871382683515549, 0.11458104848861694, 0.021675093099474907, -0.016284292563796043, 0.17750558257102966, 0.11488409340381622, -0.18101604282855988, 0.17838957905769348, -0.02818216010928154, -0.11948662996292114, 0.11155470460653305, -0.046665143221616745, -0.15816634893417358, 0.03987736999988556, -0.21350893378257751, -0.040975652635097504, 0.16329827904701233, 0.10540534555912018, 0.023861005902290344, 0.13533736765384674, 0.15398427844047546, 0.2838894724845886, -0.166890949010849]], "biases": [-0.283028781414032, 1.7429591417312622, -0.4075917899608612, 0.4659178555011749, 0.7002023458480835, 0.4522806406021118, -0.43075716495513916, 1.1204050779342651, 0.008756973780691624, -0.3477533161640167, -0.8176655769348145, 0.4368232488632202, -0.7175871133804321, -0.560215950012207, 1.196535587310791, -1.0492455959320068, 0.20524753630161285, 1.2452800273895264, 0.8527204990386963, -0.33992040157318115, 1.2638204097747803, 0.28936344385147095, 0.6749280691146851, -0.7124254703521729]}, "2": {"config": {"units": 12, "activation": "linear"}, "weights": [[0.08390788733959198, -0.10005447268486023, 0.18192270398139954, -0.14100773632526398, -0.09586606174707413, 0.0649222731590271, -0.056535523384809494, 0.8666250109672546, -0.10212922096252441, 0.011026596650481224, 0.28464144468307495, 0.009827766567468643, 0.028379863128066063, 0.17995789647102356, -0.03842850401997566, -0.003441976383328438, 0.06126854196190834, 0.2433500587940216, -0.33986908197402954, 0.020109783858060837, 0.01730416528880596, -0.13247181475162506, 0.01994197629392147, 0.09178119152784348], [0.30209100246429443, -0.10614339262247086, 0.02109335921704769, -0.09697423875331879, -0.00935138389468193, -0.061436090618371964, -0.07913368195295334, 0.8382779955863953, -0.13648609817028046, 0.02482096292078495, 0.09861921519041061, 0.015914186835289, -0.16532330214977264, 0.07560046762228012, -0.06623299419879913, -0.0031557544134557247, -0.028692463412880898, 0.2608761787414551, -0.26445528864860535, 0.019614437595009804, 0.03812340274453163, -0.17233160138130188, 0.07467162609100342, 0.3495345413684845], [0.158148393034935, -0.16082504391670227, 0.07998136430978775, -0.18241867423057556, -0.10970538854598999, -0.002346200169995427, -0.12498356401920319, 0.8023732900619507, -0.09050985425710678, 0.04214879125356674, 0.2008989006280899, 0.020363129675388336, -0.04456363990902901, 0.14544665813446045, -0.06446190178394318, 0.0388106144964695, -0.23991622030735016, 0.23739789426326752, -0.1350916177034378, 0.001380084315314889, 0.03454019874334335, -0.11137627810239792, 0.07517935335636139, 0.21004272997379303], [0.14591571688652039, -0.16735170781612396, 0.05841123312711716, -0.004980053286999464, -0.014453643932938576, -0.06332353502511978, -0.1982506811618805, 0.7230309844017029, -0.12257355451583862, 0.06340016424655914, 0.19883663952350616, 0.00260713673196733, -0.010621177963912487, 0.164414182305336, -0.06803034991025925, 0.05741829052567482, 0.09619840979576111, 0.21316079795360565, -0.2901707887649536, -0.02357865869998932, 0.06429596990346909, -0.22813542187213898, 0.11004475504159927, 0.17778480052947998], [0.13007792830467224, -0.20072250068187714, 0.047377683222293854, -0.1527443826198578, 0.00747664412483573, -0.07049646228551865, -0.16720923781394958, 0.6303057074546814, -0.1088101789355278, 0.10522296279668808, 0.18884000182151794, -0.0357852540910244, 0.10826525837182999, 0.21771828830242157, -0.08195304870605469, 0.011254807934165001, -0.11042562127113342, 0.18899871408939362, -0.12842899560928345, -0.05709952861070633, 0.0996752604842186, -0.11900407820940018, 0.1577606052160263, 0.06543029099702835], [0.007007964886724949, -0.2160670906305313, 0.10018744319677353, -0.12499295175075531, -0.06782038509845734, -0.11594165116548538, -0.17683014273643494, 0.5160166621208191, -0.05460686609148979, 0.12732239067554474, 0.2554899752140045, -0.09259846061468124, 0.21803955733776093, 0.28781938552856445, -0.06403296440839767, 0.06115427240729332, -0.16314594447612762, 0.16185742616653442, -0.058799952268600464, -0.13712170720100403, 0.13782303035259247, -0.10049833357334137, 0.1347792148590088, -0.07928579300642014], [0.17741428315639496, -0.20271967351436615, -0.009840880520641804, 0.1329519897699356, 0.046311307698488235, -0.28004398941993713, -0.17101703584194183, 0.39899906516075134, -0.08292023092508316, 0.16257180273532867, 0.08633926510810852, -0.1450708657503128, 0.13074199855327606, 0.239120215177536, -0.09494194388389587, 0.03101508319377899, 0.1397688388824463, 0.1544099897146225, -0.1800098419189453, -0.20917758345603943, 0.1876981556415558, -0.24772454798221588, 0.14324738085269928, 0.019907571375370026], [0.06751888245344162, -0.2940649390220642, 0.07245030254125595, -0.2615976631641388, -0.08859742432832718, 0.0566454641520977, -0.1809423267841339, 0.29710710048675537, 0.020255785435438156, 0.1967015564441681, 0.13917690515518188, -0.18734504282474518, 0.1638636738061905, 0.29930201172828674, -0.09456559270620346, 0.10880658775568008, 0.07684758305549622, 0.12872646749019623, -0.15833257138729095, -0.18982505798339844, 0.19413349032402039, 0.05840121954679489, 0.0143455620855093, -0.09353708475828171], [0.35475003719329834, -0.32922375202178955, -0.07917427271604538, -0.3762701451778412, 0.05885901674628258, 0.021143605932593346, -0.12848281860351562, 0.16830597817897797, -0.010030198842287064, 0.2462470382452011, -0.13381163775920868, -0.1604621410369873, -0.027393314987421036, 0.20505616068840027, -0.19860589504241943, 0.08077561855316162, -0.07932150363922119, 0.14591233432292938, -0.03630363196134567, -0.10385686904191971, 0.25968030095100403, 0.10807619988918304, 0.007398731540888548, 0.11200129240751266], [0.34390780329704285, -0.3170471787452698, -0.05930343270301819, -0.01060453336685896, 0.08270344138145447, -0.18582485616207123, -0.10963397473096848, 0.09966936707496643, -0.045246824622154236, 0.2526143789291382, -0.1390620768070221, -0.1642700433731079, -0.1028534322977066, 0.1885189712047577, -0.2409099042415619, 0.1868363916873932, 0.22683973610401154, 0.1312115490436554, -0.1574571281671524, -0.11343773454427719, 0.282132089138031, -0.11945804953575134, -0.04789026081562042, 0.13881459832191467], [0.08214958757162094, -0.39414793252944946, 0.12613104283809662, -0.48233288526535034, -0.07059093564748764, 0.15051524341106415, -0.11935931444168091, 0.07074566930532455, 0.021270444616675377, 0.26747405529022217, 0.05828701704740524, -0.16864481568336487, 0.10714239627122879, 0.3225227892398834, -0.24781742691993713, 0.23761814832687378, -0.08489149808883667, 0.10597924888134003, 0.02355082705616951, -0.08222842961549759, 0.2857632637023926, 0.18763193488121033, -0.11453840136528015, -0.1689382940530777], [0.3258846700191498, -0.31602853536605835, -0.015094731003046036, 0.0069652642123401165, -0.016675163060426712, -0.2425818145275116, -0.028640473261475563, 0.03942735865712166, -0.0169009268283844, 0.2725825905799866, -0.13930948078632355, -0.16875529289245605, -0.10715766996145248, 0.20350569486618042, -0.284290075302124, 0.23366430401802063, 0.02797900140285492, 0.11377221345901489, -0.010242180898785591, -0.093702033162117, 0.31789571046829224, -0.15822719037532806, -0.1195991113781929, 0.08802039176225662]], "biases": [-0.6544684767723083, -0.7901941537857056, -0.6731938123703003, -0.6983140110969543, -0.6755722761154175, -0.5211501717567444, -0.5126591920852661, -0.1882346272468567, -0.1837134212255478, -0.05002725496888161, 0.1774166226387024, -0.01559625007212162]}}
# 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
data = []
days = int(input())
for i in range(days):
temps = [float(x) for x in input().split()]
data.append(temps)
for d in data:
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)
# total_correct += correct
# total_incorrect += incorrect
# score = 25 * (total_correct - total_incorrect) / days
# print(total_correct, total_incorrect, score)
# file.close()