layers={"0": {"config": {"units": 24, "activation": "relu"}, "weights": [[0.22404745221138, -0.1660671979188919, -0.4404568374156952, -0.016933230683207512, 0.14330218732357025, -0.21863046288490295, 0.011266462504863739, 0.16501484811306, -0.08909182995557785, 0.1960720419883728, 0.19477535784244537, -0.21769969165325165, 0.0007618796662427485, -0.014668865129351616, -0.2711581587791443, -0.17219248414039612, 0.015948379412293434, 0.10302788019180298, 0.137115478515625, 0.22332945466041565, 0.1869034618139267, 0.24619589745998383, -0.09942752867937088, -0.8659501671791077], [0.17392712831497192, -0.20795346796512604, 0.32044968008995056, -0.07606038451194763, -0.08111270517110825, -0.004319287370890379, 0.013110206462442875, -0.01686486229300499, -0.051719874143600464, 0.3154850900173187, -0.2233881652355194, 0.1427360624074936, 0.21336935460567474, -0.1424533575773239, 0.02994869463145733, 0.12493258714675903, 0.05415111407637596, 0.12927110493183136, 0.09713989496231079, 0.15206393599510193, -0.07509385049343109, -0.05296044424176216, -0.03005688264966011, -0.05198628455400467], [-0.061489250510931015, 0.22795036435127258, 0.16671542823314667, -0.03976760432124138, -0.3038976490497589, 0.03289957344532013, -0.14770837128162384, -0.18315669894218445, -0.023553913459181786, 0.21464863419532776, 0.12114673107862473, 0.05483287200331688, 0.14011803269386292, 0.10877407342195511, -0.046929944306612015, -0.1430846005678177, 0.05028046667575836, -0.059730127453804016, -0.351965069770813, 0.3034309446811676, 0.28826260566711426, -0.02097080647945404, 0.03205210343003273, -0.0897354930639267], [-0.17831015586853027, -0.07137713581323624, -0.02457345835864544, -0.18307416141033173, -0.15600812435150146, 0.3853785991668701, 0.06489543616771698, 0.17406341433525085, 0.05564741790294647, -0.2071017324924469, 0.08575916290283203, -0.30348968505859375, 0.10637595504522324, 0.0500992052257061, -0.16870416700839996, 0.15279266238212585, 0.12520475685596466, 0.24428091943264008, 0.26350846886634827, 0.025044096633791924, 0.1784333884716034, 0.2868604063987732, 0.20898379385471344, 0.22377453744411469], [-0.06179306283593178, -0.21704359352588654, 0.0395779088139534, -0.008053512312471867, -0.16967399418354034, 0.2834593951702118, 0.23470431566238403, 0.022492168471217155, 0.04843822494149208, 0.1282932460308075, 0.0792449414730072, -0.15288251638412476, -0.1169632226228714, -0.11449775099754333, 0.2705610990524292, 0.4034286439418793, -0.03966844081878662, 0.4367389976978302, 0.17035223543643951, -0.12820616364479065, -0.056320466101169586, -0.24997593462467194, -0.3008057773113251, -0.670470118522644], [0.28961512446403503, -0.17491568624973297, 0.38005825877189636, 0.20767316222190857, -0.1330602914094925, 0.17049381136894226, -0.2272309958934784, -0.163496732711792, -0.014849324710667133, -0.21136733889579773, -0.19909144937992096, 0.2159256488084793, 0.24074587225914001, -0.22114475071430206, 0.1151733323931694, -0.5054639577865601, -0.07425011694431305, -0.18529298901557922, -0.2809367775917053, 0.22361233830451965, -0.218148335814476, 0.21219074726104736, 0.21530386805534363, 0.41999590396881104], [0.05117688700556755, 0.23868350684642792, -0.3039955198764801, 0.043848294764757156, 0.1021123081445694, -0.3148059844970703, 0.07779310643672943, -0.09134344756603241, -0.13670837879180908, 0.3338576853275299, -0.08211087435483932, 0.05309803783893585, -0.25870051980018616, 0.037700265645980835, -0.05621224269270897, -0.15915465354919434, -0.28092554211616516, 0.1519484519958496, -0.03717771917581558, -0.12318845093250275, 0.1535101681947708, -0.20025229454040527, 0.28025075793266296, 0.7043133974075317], [-0.1008545383810997, -0.05404329672455788, -0.05388350784778595, 0.20356382429599762, 0.051067981868982315, 0.01662570983171463, -0.17045752704143524, -0.012479091994464397, -0.03860919922590256, 0.19996263086795807, -0.18105719983577728, 0.06901342421770096, 0.1430729478597641, 0.04223371669650078, 0.03535020723938942, 0.0622437484562397, -0.17548957467079163, -0.12425202131271362, 0.07993527501821518, 0.19083599746227264, 0.28625404834747314, -0.24504917860031128, -0.04029589891433716, 0.6353727579116821], [0.0648539736866951, -0.2886277735233307, 0.14870932698249817, 0.25396689772605896, 0.18444548547267914, -0.13665816187858582, -0.20473754405975342, 0.05907655879855156, 0.22411072254180908, -0.21273955702781677, -0.04972130432724953, 0.2467910796403885, -0.2521332800388336, 0.41615229845046997, -0.21540698409080505, -0.05270160734653473, 0.33195120096206665, -0.16785646975040436, -0.45292773842811584, 0.09129966050386429, -0.3453574478626251, 0.14492152631282806, 0.25091174244880676, -0.2418065369129181], [-0.14489895105361938, 0.10281775146722794, -0.15373475849628448, 0.15258817374706268, -0.05401858314871788, 0.19326411187648773, 0.00236955052241683, 0.18016467988491058, 0.04156043753027916, 0.07436425983905792, 0.1981336772441864, -0.25666680932044983, 0.1450197845697403, -0.16214852035045624, 0.07144425809383392, -0.0753021165728569, 0.06183107942342758, 0.22323377430438995, 0.05899663269519806, 0.12131767719984055, -0.0806298479437828, 0.0926181897521019, 0.0023361530620604753, 0.42573094367980957], [-0.12819993495941162, 0.06417105346918106, 0.21800002455711365, -0.10394779592752457, 0.0036027345340698957, -0.28182557225227356, -0.2668644189834595, -0.22522610425949097, 0.108990877866745, -0.3015028238296509, 0.05232526734471321, 0.15141376852989197, -0.08861487358808517, 0.17844735085964203, 0.2633618414402008, 0.3605790436267853, 0.2944053113460541, -0.10285259038209915, -0.2933250069618225, 0.35296308994293213, 0.07118391990661621, 0.2518766224384308, -0.0899060070514679, 0.22606058418750763], [0.29377931356430054, -0.1525896191596985, -0.21327324211597443, 0.022668352350592613, -0.1268502026796341, -0.2566562294960022, 0.23068170249462128, -0.10255221277475357, 0.27676767110824585, 0.2127797156572342, 0.012822958640754223, -0.12735792994499207, -0.14476048946380615, -0.16025899350643158, -0.06019856780767441, 0.2498299777507782, 0.017899449914693832, 0.4667796790599823, 0.09313075989484787, 0.21556390821933746, -0.05094975605607033, 0.208712637424469, -0.19993261992931366, -0.7480092644691467], [-0.09749448299407959, 0.34486088156700134, 0.17175626754760742, -0.1597433090209961, -0.18918585777282715, 0.1835639923810959, 0.1911129653453827, 0.09286823123693466, -0.18496854603290558, -0.16830182075500488, 0.008621476590633392, -0.10044176131486893, -0.009017492644488811, 0.018328294157981873, 0.19496290385723114, -0.24651871621608734, 0.184567391872406, -0.15910615026950836, -0.2500992715358734, 0.003966063726693392, -0.15744119882583618, 0.18748769164085388, -0.33905768394470215, -0.8261811137199402], [-0.03577152267098427, 0.1182151809334755, -0.04534672945737839, 0.08099887520074844, 0.08850479871034622, -0.08764350414276123, -0.16159917414188385, -0.13948887586593628, -0.11569995433092117, 0.06791597604751587, 0.05791202932596207, -0.05247999355196953, 0.0072526223957538605, 0.17303133010864258, -0.17762631177902222, -0.024147167801856995, -0.21533912420272827, -0.184854194521904, -0.006221441086381674, 0.2575535774230957, -0.03453660383820534, 0.22109007835388184, -0.12139205634593964, -0.6195255517959595], [-0.2851814031600952, 0.20629137754440308, 0.22131562232971191, 0.10899018496274948, -0.17745719850063324, -0.0649079903960228, -0.3553847074508667, -0.5070475339889526, 0.2668644189834595, 0.06277384608983994, -0.14202171564102173, 0.06572015583515167, 0.3667607307434082, 0.24047067761421204, -0.19033077359199524, 0.25760188698768616, 0.06881852447986603, 0.25841212272644043, 0.06814880669116974, 0.01594570465385914, -0.009095597080886364, -0.18792051076889038, -0.17095191776752472, -0.36922407150268555], [0.22794601321220398, 0.14146925508975983, -0.04662569984793663, -0.09973344206809998, 0.2165430635213852, -0.19640348851680756, 0.2306617647409439, 0.09384406358003616, -0.05339974910020828, -0.0764668807387352, -0.11118167638778687, 0.04932737722992897, 0.18522121012210846, -0.20360378921031952, -0.16792409121990204, -0.17792801558971405, -0.22012855112552643, 0.4004639685153961, 0.05678577348589897, 0.08667910844087601, -0.130595400929451, 0.2285979688167572, -0.10764651000499725, -0.39638254046440125], [0.12077749520540237, 0.1027497872710228, 0.03598722442984581, -0.08566717803478241, -0.0230256337672472, 0.13951534032821655, -0.043001171201467514, -0.16756583750247955, 0.204567089676857, -0.2673429250717163, 0.013137687928974628, -0.024364247918128967, 0.16365563869476318, -0.0278276726603508, 0.21107974648475647, 0.16434906423091888, 0.29680463671684265, -0.08878833055496216, -0.5295236110687256, -0.45545482635498047, 0.009675111621618271, 0.015197483822703362, 0.3321908116340637, -0.28857117891311646], [0.29289141297340393, -0.26794925332069397, 0.12799035012722015, 0.015226850286126137, 0.002204540651291609, 0.054551780223846436, -0.2810176908969879, 0.01156570389866829, 0.16577117145061493, 0.10225919634103775, -0.22560393810272217, 0.13648594915866852, 0.02225492149591446, 0.26773837208747864, -0.013450592756271362, -0.31609198451042175, -0.15580791234970093, 0.11525758355855942, -0.17764964699745178, -0.2460453361272812, 0.3195037245750427, -0.007956638000905514, 0.4220717251300812, -0.3227050304412842], [-0.01570822484791279, 0.2024042308330536, -0.3445139527320862, 0.15971393883228302, 0.09907989948987961, -0.29476216435432434, -0.10874853283166885, 0.3993288576602936, 0.00761381397023797, -0.16536912322044373, 0.03013925999403, 0.1707773655653, -0.09153599292039871, 0.15596364438533783, -0.15568073093891144, 0.03830849379301071, 0.06711265444755554, -0.18043552339076996, 0.03689691424369812, -0.06453615427017212, -0.2612500786781311, 0.26634088158607483, -0.10667531937360764, 0.2713729739189148], [0.1130283921957016, -0.13482531905174255, 0.2275191843509674, 0.09512587636709213, -0.01943262852728367, -0.11595979332923889, -0.01378512755036354, 0.14940997958183289, -0.05040603131055832, -0.05640879645943642, -0.3759101629257202, 0.021956823766231537, 0.22334036231040955, -0.0014828621642664075, 0.101161427795887, -0.2211601585149765, -0.16994474828243256, -0.001827541273087263, -0.035390473902225494, -0.06772716343402863, 0.05470255762338638, -0.05547894909977913, -0.30177438259124756, -0.9317821860313416], [0.050683099776506424, 0.27896565198898315, -0.2384856641292572, 0.1425498127937317, -0.3202917277812958, -0.1160498782992363, 0.09969635307788849, 0.2533941864967346, -0.22682175040245056, -0.228498175740242, -0.07874813675880432, 0.18586571514606476, 0.20317688584327698, -0.166275754570961, -0.06862334907054901, 0.05138453468680382, 0.03854098170995712, 0.026865467429161072, 0.3416241407394409, 0.0688285380601883, -0.39618226885795593, -0.1521855741739273, -0.4836895167827606, 0.4301922023296356], [0.19237107038497925, -0.32754945755004883, 0.1095234751701355, -0.10001833736896515, 0.36489537358283997, -0.1887449473142624, 0.3220759332180023, 0.163993239402771, 0.3578951954841614, 0.04140462726354599, -0.26070356369018555, 0.31171944737434387, 0.04110298305749893, 0.1354643851518631, -0.01339619979262352, -0.14540231227874756, 0.24692851305007935, 0.04013988375663757, 0.026538457721471786, -0.2540636956691742, -0.28604596853256226, -0.006666075438261032, 0.2501235604286194, 0.48092061281204224], [0.10202039033174515, -0.25334471464157104, 0.25723379850387573, -0.08275574445724487, 0.08380279690027237, 0.19667430222034454, -0.03176409378647804, 0.14697016775608063, -0.02502802014350891, -0.15280193090438843, -0.1522793471813202, 0.07022783905267715, 0.0562681145966053, -0.2797984778881073, 0.12973561882972717, 0.21246175467967987, 0.01479030679911375, 0.2420191913843155, -0.04182925447821617, -0.083126962184906, -0.26287731528282166, -0.004451531916856766, 0.020497959107160568, 0.6659581661224365], [0.03945406526327133, 0.08388080447912216, 0.08186913281679153, -0.008708002977073193, -0.019064608961343765, -0.006181121338158846, 0.12624065577983856, -0.09555892646312714, 0.15971192717552185, 0.04009873792529106, 0.11566176265478134, 0.013815087266266346, 0.1186450868844986, -0.05768372491002083, 0.11377090960741043, -0.23720553517341614, -0.0866701677441597, -0.020616166293621063, -0.05684101954102516, -0.012945069000124931, 0.09359840303659439, -0.32550084590911865, 0.15632402896881104, 0.1474866420030594]], "biases": [-0.08855739235877991, -0.38576623797416687, 0.38411179184913635, 0.08187960833311081, 0.5990345478057861, -0.7348107695579529, 0.4919675886631012, 0.11535140872001648, 0.4372684359550476, -0.05996004864573479, 0.62623131275177, 0.9131820797920227, 0.1615196168422699, -0.331044465303421, 0.39485645294189453, 0.431612491607666, 0.3139112591743469, 0.2273154854774475, -0.1034354418516159, 0.02646631933748722, 0.4636646509170532, 0.014932186342775822, -0.0886768102645874, -0.051085151731967926]}, "1": {"config": {"units": 12, "activation": "linear"}, "weights": [[-0.28069111704826355, -0.08637822419404984, 0.08939136564731598, 0.13134141266345978, -0.1506144255399704, 0.12535405158996582, 0.3432787358760834, 0.14340835809707642, -0.07010629028081894, 0.1302970051765442, 0.0954279974102974, -0.0795365422964096, -0.16666005551815033, -0.22195057570934296, -0.10460811853408813, -0.12712107598781586, -0.06002941355109215, -0.03176233917474747, 0.13664835691452026, -0.1720958799123764, 0.04262739419937134, 0.07537294179201126, 0.36509108543395996, 0.08655776083469391], [-0.28274059295654297, -0.0717330351471901, 0.04723627120256424, 0.17073938250541687, -0.1755560338497162, 0.1797192543745041, 0.30946487188339233, 0.20338405668735504, -0.053932007402181625, 0.011710496619343758, 0.0847538560628891, -0.1380838304758072, -0.29248932003974915, -0.28548821806907654, -0.10336386412382126, -0.10831679403781891, -0.1076081246137619, -0.14058458805084229, 0.11802560836076736, -0.018673401325941086, 0.05835408344864845, 0.1615341156721115, 0.27843526005744934, 0.08350905030965805], [-0.2998334467411041, -0.045124396681785583, 0.022784607484936714, 0.15849345922470093, -0.20522281527519226, 0.14920587837696075, 0.27041763067245483, 0.26841259002685547, 0.059253111481666565, 0.04708201438188553, 0.04443325102329254, -0.11912117898464203, -0.12549415230751038, -0.13196159899234772, -0.12104413658380508, -0.10208813101053238, -0.20533476769924164, -0.15222501754760742, 0.03541088104248047, -0.24326515197753906, 0.05379867926239967, 0.10054755210876465, 0.30958446860313416, 0.1225588321685791], [-0.29121625423431396, -0.03833885118365288, -0.06682460755109787, -0.011126416735351086, -0.20195969939231873, 0.10822945833206177, 0.2522646188735962, 0.3171056807041168, 0.08168265223503113, 0.3382265269756317, 0.051269423216581345, -0.13184869289398193, -0.07095706462860107, -0.062464840710163116, -0.15376050770282745, -0.030094850808382034, -0.30815449357032776, -0.09965639561414719, -0.03237086161971092, -0.3388170599937439, 0.12550199031829834, 0.08537431061267853, 0.2631138563156128, -0.12699010968208313], [-0.23374517261981964, -0.04619113728404045, -0.13114480674266815, 0.08404509723186493, -0.17115266621112823, 0.12247264385223389, 0.21281705796718597, 0.24813275039196014, -0.028841137886047363, 0.3258117139339447, 0.07419193536043167, -0.2977302670478821, -0.4697723090648651, -0.29027190804481506, -0.1412406861782074, 0.017122607678174973, -0.32172346115112305, -0.21172191202640533, -0.14809522032737732, 0.12381967902183533, 0.11495643854141235, 0.14997915923595428, 0.08031640946865082, -0.05371863394975662], [-0.19825540482997894, 0.15973538160324097, -0.1629248857498169, 0.22552067041397095, -0.12491729855537415, -0.019655516371130943, 0.1825210452079773, 0.07683008164167404, -0.14814530313014984, 0.2469993233680725, -0.0007085761753842235, -0.42834192514419556, 0.06313735246658325, -0.06869956105947495, -0.07773005962371826, -0.016564777120947838, -0.4285508096218109, -0.06419263780117035, 0.005756419617682695, -0.4510246813297272, 0.13580693304538727, -0.016697729006409645, 0.23638421297073364, 0.12121564149856567], [-0.26917678117752075, 0.07821236550807953, 0.09335420280694962, 0.4289097487926483, -0.0702662542462349, -0.10199137777090073, 0.1961784064769745, -0.011002935469150543, -0.15888383984565735, -0.19960834085941315, -0.029449257999658585, -0.4858883321285248, -0.41587063670158386, -0.09971451759338379, -0.12971514463424683, 0.05008593574166298, -0.3984494209289551, -0.31424036622047424, -0.05336616933345795, 0.020811498165130615, 0.08504705131053925, 0.20865686237812042, 0.24453134834766388, 0.18305134773254395], [-0.11582664400339127, 0.272470623254776, -0.14081454277038574, 0.36994272470474243, -0.11087101697921753, -0.07987415790557861, 0.10574159771203995, 0.09215197712182999, -0.23706816136837006, -0.1670171469449997, 0.069083571434021, -0.5799469947814941, -0.19476009905338287, -0.176166832447052, -0.1526004523038864, -0.04008077085018158, -0.3840887248516083, -0.24871988594532013, 0.14328403770923615, -0.17295658588409424, 0.13804234564304352, 0.19375088810920715, -0.004102110397070646, 0.24093852937221527], [-0.0592518113553524, 0.10155252367258072, 0.0636427253484726, 0.028789358213543892, -0.06218939274549484, -0.1342683881521225, 0.12708008289337158, -0.10269393771886826, -0.12778398394584656, 0.3837234079837799, 0.21255263686180115, -0.6097187399864197, -0.03348381444811821, -0.12603649497032166, -0.26744896173477173, -0.12307669967412949, -0.4380134344100952, -0.11257054656744003, 0.014704854227602482, -0.3716728985309601, 0.22725440561771393, 0.21555043756961823, -0.026898887008428574, -0.0911993607878685], [-0.2478385716676712, 0.0831245481967926, 0.05203738808631897, 0.03105819597840309, 0.004689509514719248, -0.16596777737140656, 0.0982683002948761, -0.018430395051836967, -0.19640351831912994, 0.20347149670124054, 0.29982852935791016, -0.5461868643760681, -0.4683856964111328, -0.04104865342378616, -0.44066280126571655, -0.12222770601511002, -0.405257910490036, -0.12023162841796875, -0.13706344366073608, 0.05354343727231026, 0.30028313398361206, 0.287026971578598, -0.07627710700035095, 0.009675231762230396], [-0.1672167181968689, 0.28619250655174255, 0.18062321841716766, 0.08381649106740952, 0.10159065574407578, -0.24475353956222534, 0.021573415026068687, 0.2200741469860077, -0.12709566950798035, -0.09742411226034164, 0.17756125330924988, -0.6167474985122681, -0.2737122178077698, 0.26608869433403015, -0.5596065521240234, -0.07793737202882767, -0.35299089550971985, -0.04662444442510605, 0.13390012085437775, -0.35845106840133667, 0.47542744874954224, 0.19100956618785858, 0.1383947879076004, -0.07434585690498352], [0.007824641652405262, 0.2653788924217224, 0.010522732511162758, -0.06560084968805313, 0.028431054204702377, -0.12925617396831512, 0.055370479822158813, 0.05085049942135811, -0.2630445063114166, 0.2558029890060425, 0.3594701290130615, -0.612259030342102, -0.24485130608081818, -0.24053175747394562, -0.5119799375534058, -0.1374807208776474, -0.34394320845603943, -0.1016228199005127, -0.025509728118777275, -0.10940884053707123, 0.3507597744464874, 0.2754250168800354, -0.18578864634037018, -0.13361378014087677]], "biases": [0.037134457379579544, 0.09465418756008148, 0.1209910660982132, 0.10629084706306458, 0.19218648970127106, 0.2944834530353546, 0.23068386316299438, 0.3641960322856903, 0.22324708104133606, 0.17956162989139557, 0.13178801536560059, 0.1723991334438324]}}
# 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()