layers={"1": {"config": {"units": 24, "activation": "relu"}, "weights": [[0.03189957141876221, 0.018332619220018387, 0.049088504165410995, 0.03335948288440704, -0.002867960836738348, 0.13958866894245148, -0.052634820342063904, -0.03297044336795807, 0.04019324854016304, -0.014312781393527985, 0.06816418468952179, 0.09136354178190231, -0.0041619641706347466, 0.09876274317502975, 0.24045725166797638, 0.16924713551998138, -0.4001951813697815, -0.17116867005825043, 0.131792351603508, 0.3071450889110565, 0.12761788070201874, 0.19162294268608093, 0.2816244065761566, -0.7933405637741089], [-0.16697640717029572, -0.06163831427693367, 0.03808275982737541, 0.020121851935982704, -0.013555246405303478, 0.10716349631547928, 0.13769812881946564, 0.08558294922113419, 0.22461669147014618, 0.10394585877656937, 0.2521507441997528, 0.16723285615444183, 0.28846046328544617, 0.1558038890361786, 0.06890671700239182, 0.329396516084671, 0.3250965476036072, 0.13092124462127686, 0.2339489758014679, 0.02002131938934326, -0.11723403632640839, 0.14049100875854492, -0.1187291219830513, 0.23915578424930573], [0.16354742646217346, 0.02508215606212616, -0.11017654836177826, -0.08595344424247742, 0.07541383057832718, -0.18950213491916656, 0.014597414992749691, 0.08571470528841019, 0.017795756459236145, 0.12302424758672714, -0.138956218957901, -0.05634767562150955, -0.11568216979503632, 0.06789383292198181, -0.10156328231096268, 0.19832216203212738, 0.1872158646583557, 0.08616527915000916, 0.10794563591480255, -0.004837996792048216, 0.10771674662828445, -0.010800138115882874, 0.23308856785297394, 0.03810978680849075], [-0.23702894151210785, -0.1831224262714386, -0.08192192018032074, -0.14173708856105804, -0.17117178440093994, 0.20309965312480927, -0.10627496987581253, 0.14527390897274017, 0.13684362173080444, 0.17536814510822296, 0.032012488692998886, 0.06450600922107697, 0.05789969861507416, -0.0001714321260806173, 0.005789510440081358, -0.10854006558656693, -0.11056870222091675, -0.07698352634906769, -0.03757741302251816, -0.31164517998695374, -0.18854661285877228, 0.1296691596508026, -0.36477744579315186, 0.19325846433639526], [0.07061616331338882, 0.07290960103273392, 0.08176032453775406, 0.03739162161946297, 0.05138763412833214, 0.07622651010751724, -0.003898218274116516, 0.0048371898010373116, -0.012358362786471844, 0.0034728185273706913, -0.02612324245274067, -0.011383440345525742, -0.05550474673509598, -0.03693646192550659, -0.007309330627322197, -0.027269726619124413, -0.02902279980480671, -0.017213497310876846, 0.015393608249723911, 0.09518250077962875, -0.06477546691894531, -0.09186595678329468, 0.04678678885102272, -0.5728254318237305], [0.0423518531024456, -0.013494625687599182, -0.029247058555483818, 0.09736905246973038, -0.03946111723780632, 0.0450880192220211, -0.019515618681907654, 0.003042296739295125, 0.044195547699928284, -0.03225628659129143, -0.027993284165859222, -0.03288959339261055, -0.04345840588212013, -0.007707725744694471, -0.02708490379154682, -0.09122432768344879, -0.09961489588022232, -0.07081867009401321, -0.1180373877286911, -0.30897533893585205, 0.2315051108598709, 0.6373727321624756, -0.35257595777511597, -0.6249746680259705], [-0.1085926741361618, -0.16543890535831451, -0.1622624695301056, -0.17570173740386963, -0.17922039330005646, -0.12754714488983154, -0.08967778831720352, 0.038525935262441635, 0.05524429306387901, 0.07789121568202972, 0.06949969381093979, 0.06464867293834686, 0.060580749064683914, 0.04151775687932968, 0.14806681871414185, 0.12769801914691925, 0.3117002844810486, 0.2713213860988617, 0.25931090116500854, 0.09233137965202332, -0.05486035719513893, -0.08918876200914383, -0.1783839911222458, -0.649692177772522], [-0.10024698078632355, -0.060256361961364746, -0.04594065621495247, -0.04811800643801689, -0.07430821657180786, -0.13440291583538055, -0.07872488349676132, -0.02329266630113125, -0.07106912136077881, -0.0007814285345375538, 0.03642871603369713, 0.023050913587212563, 0.05696428567171097, 0.07450834661722183, -0.014825278893113136, -0.02044491097331047, -0.12298440933227539, -0.12231113016605377, -0.02330477349460125, -0.033796001225709915, 0.06443574279546738, 0.09766045212745667, 0.041537363082170486, 0.06645958125591278], [-0.07021202147006989, -0.08192228525876999, -0.07890261709690094, -0.057084646075963974, -0.010937700979411602, -0.040543604642152786, -0.021689612418413162, 0.03464096412062645, -0.006363493390381336, 0.02149561233818531, 0.011661900207400322, -0.0012277811765670776, 0.03128252178430557, 0.007017781492322683, 0.031005535274744034, -0.016998011618852615, 0.007613528519868851, -0.046625979244709015, -0.09788157790899277, -0.1098267063498497, -0.10617433488368988, -0.1401037871837616, -0.20045162737369537, 0.8292518258094788], [0.0009897297713905573, 0.008999855257570744, -0.03261835128068924, -0.0034470839891582727, 0.049159031361341476, 0.294920951128006, 0.009255774319171906, -0.04449515789747238, -0.09354034066200256, -0.09847522526979446, -0.07654006034135818, -0.07937196642160416, -0.17630836367607117, -0.019233139231801033, -0.21133720874786377, -0.002407306106761098, 0.00856993068009615, 0.4997020363807678, -0.13392899930477142, 0.23449231684207916, -0.08139773458242416, -0.6798466444015503, 0.29807114601135254, 0.16485802829265594], [-0.03492430970072746, -0.0358327254652977, -0.024840805679559708, -0.01514588575810194, 0.02941526100039482, 0.025718485936522484, 0.06726466119289398, 0.13198670744895935, -0.15516476333141327, 0.0574132576584816, -0.06431218981742859, 0.06964520364999771, 0.1547483503818512, -0.10429764539003372, 0.4147287905216217, -0.5532923340797424, 0.10282880067825317, 0.08961524814367294, -0.08784683793783188, 0.103648342192173, 0.0862235575914383, -0.03657121583819389, -0.2953687906265259, 0.05723562464118004], [-0.031245483085513115, -0.012350695207715034, -0.019822832196950912, -0.0125195337459445, -0.025225888937711716, 0.022859416902065277, -0.011520691215991974, -0.0010646661976352334, 0.0015384331345558167, -0.012737282551825047, 0.002740887925028801, 0.009029953740537167, -0.016324585303664207, -0.005407342687249184, -0.012100747786462307, -0.04335291311144829, -0.09597024321556091, -0.11275962740182877, -0.10684043914079666, -0.16242119669914246, -0.17727071046829224, -0.17423105239868164, -0.25472792983055115, 1.129705786705017], [-0.05069069564342499, -0.04024488106369972, -0.03116024285554886, -0.026560183614492416, -0.013404188677668571, -0.01467022392898798, -0.016223693266510963, 0.012754470109939575, -0.0018576272996142507, 0.0032432787120342255, 0.006609354633837938, 0.002028263173997402, -0.00022261867707129568, 0.014193572103977203, 0.0032459876965731382, -0.010459767654538155, -0.009240331128239632, -0.040886711329221725, -0.048211995512247086, -0.06680154800415039, -0.07814609259366989, -0.09052339941263199, -0.13521833717823029, 0.5398120284080505], [0.11389971524477005, 0.043382927775382996, -0.03883235529065132, 0.003753329860046506, 0.1055402010679245, -0.07363040745258331, 0.09965217858552933, 0.09091183543205261, 0.00512496056035161, 0.07478611171245575, -0.11235290765762329, -0.06749513745307922, -0.062981516122818, -0.02792402170598507, -0.09119005501270294, 0.08798060566186905, 0.21922753751277924, 0.17514005303382874, 0.19505611062049866, 0.18559491634368896, 0.25980398058891296, 0.23167355358600616, 0.38038936257362366, 0.12432583421468735], [0.04416881129145622, -0.0009085883502848446, -0.05250762403011322, 0.1488073170185089, -0.10907243192195892, -0.1405031681060791, 0.1252831369638443, 0.08447463810443878, -0.0470740832388401, -0.04369915649294853, -0.0076591577380895615, -0.12097045034170151, -0.051054175943136215, -0.03580700606107712, 0.15450285375118256, 0.15223971009254456, -0.21485061943531036, -0.2037159949541092, -0.02476189285516739, -0.08099840581417084, 0.042992621660232544, -0.2516627907752991, -0.3546573221683502, -0.7649796009063721], [0.024100258946418762, -0.026068609207868576, 0.0796828344464302, -0.027148978784680367, 0.11240577697753906, 0.0005773854209110141, -0.13040784001350403, -0.016385864466428757, 0.02284170500934124, -0.06563442200422287, 0.0471620038151741, -0.014223352074623108, -0.028194818645715714, -0.03607114404439926, -0.09247463941574097, -0.1491091400384903, 0.004453826695680618, 0.026988107711076736, -0.13700105249881744, -0.10529783368110657, -0.1336345076560974, 0.09278617054224014, -0.12259841710329056, 0.09244471043348312], [0.03748057782649994, -0.18610459566116333, 0.08910999447107315, 0.01828891597688198, 0.0345982201397419, -0.05096496641635895, -0.11769881844520569, 0.20338678359985352, 0.0682482197880745, -0.13138368725776672, 0.1648070514202118, -0.12929598987102509, -0.12825265526771545, -0.12432238459587097, -0.01143269520252943, 0.020358890295028687, -0.004737779963761568, 0.050848912447690964, -0.11134027689695358, -0.1487630158662796, -0.20232535898685455, 0.07641730457544327, -0.4743446409702301, -0.5506787896156311], [0.03740328550338745, 0.20063091814517975, 0.3316231966018677, 0.04924953356385231, 0.10164094716310501, -0.05598381161689758, -0.11000089347362518, -0.009309761226177216, -0.02644580602645874, -0.011290167458355427, -0.07774630934000015, -0.07162527740001678, -0.0036325675901025534, -0.038963139057159424, 0.01159409899264574, -0.10486612468957901, -0.17580333352088928, -0.1360214501619339, -0.1657930612564087, -0.003249307395890355, -0.12126749008893967, -0.15655995905399323, 0.3952215313911438, -0.38798660039901733], [-0.09406087547540665, 0.03070491924881935, 0.16303247213363647, 0.10138702392578125, -0.15590955317020416, 0.10310808569192886, -0.09512942284345627, -0.24917684495449066, 0.04193149879574776, -0.21206018328666687, 0.22038990259170532, 0.039275769144296646, 0.1517321765422821, -0.003967937547713518, -0.09062797576189041, 0.07891624420881271, -0.045629046857357025, -0.023349009454250336, 0.1974961757659912, 0.1575251668691635, 0.017154375091195107, 0.3459385633468628, 0.2138081192970276, 0.06189734488725662], [0.10914991796016693, 0.17721542716026306, 0.12942053377628326, 0.08993186801671982, 0.08132247626781464, 0.11337967216968536, -0.025837436318397522, -0.04439033195376396, 0.07956886291503906, 0.10452206432819366, -0.12962597608566284, -0.10061093419790268, 0.07366283237934113, -0.08330123126506805, 0.0166610199958086, -0.2623123824596405, -0.20500710606575012, -0.19500301778316498, -0.25807908177375793, -0.24404364824295044, -0.2044849544763565, -0.12748999893665314, -0.11809127777814865, 0.13770465552806854], [-0.05991845950484276, -0.03048548847436905, -0.01177056785672903, -0.013496626168489456, -0.0628049448132515, -0.03097541444003582, -0.06708591431379318, -0.077192023396492, 0.03300740197300911, -0.021342959254980087, -0.028494490310549736, -0.022196408361196518, -0.06902895867824554, -0.04538027197122574, 0.4547906219959259, 0.00434365589171648, -0.02774408832192421, 0.5040666460990906, -0.48523372411727905, -0.13043326139450073, 0.18059486150741577, 0.04076420143246651, 0.14198996126651764, 0.12290223687887192], [0.036820992827415466, 0.02986859530210495, 0.005593114532530308, 0.053661830723285675, 0.09812702238559723, 0.03748340904712677, 0.12379088252782822, 0.07324963808059692, -0.00702375452965498, 0.030613332986831665, -0.06671825796365738, -0.040025535970926285, -0.012928521260619164, -0.09148212522268295, -0.028574204072356224, -0.06535645574331284, 0.14123867452144623, 0.15775257349014282, 0.15446458756923676, 0.19814029335975647, 0.21782563626766205, 0.24519939720630646, 0.2303152084350586, 0.11465378850698471], [0.01666966639459133, 0.02841811440885067, 0.011207190342247486, -0.004360443912446499, -0.03226977586746216, -0.07502561807632446, -0.08023924380540848, -0.07704365998506546, -0.09154967963695526, -0.02891276590526104, -0.012081138789653778, 0.07654894143342972, 0.04429309442639351, 0.12732447683811188, -0.014791039749979973, -0.058897536247968674, -0.10655108839273453, -0.1375943422317505, -0.10743461549282074, -0.022024037316441536, 0.047359902411699295, -0.010526206344366074, 0.049251798540353775, 0.34567341208457947], [0.02894013002514839, 0.22676508128643036, 0.09045980125665665, -0.0786227360367775, 0.12312940508127213, 0.254029780626297, -0.08554993569850922, -0.2684437334537506, -0.09227430820465088, -0.05919566750526428, -0.23537315428256989, 0.12096954882144928, -0.16756857931613922, 0.10241040587425232, -0.043547261506319046, -0.24637211859226227, -0.10364194214344025, -0.09005545824766159, -0.23436297476291656, -0.2540318965911865, -0.14393973350524902, -0.1390158087015152, -0.4221317172050476, -0.3093065321445465]], "biases": [-1.9500596523284912, 0.23013465106487274, 2.3253564834594727, -1.3103045225143433, 1.2185735702514648, 1.8149385452270508, 0.5523824095726013, 0.5982834696769714, -4.40904426574707, 1.7509597539901733, -1.5024535655975342, 1.9558357000350952, -3.9310359954833984, 0.6228824257850647, 1.8781311511993408, 1.2016780376434326, 1.6013103723526, 0.8576458692550659, 0.6585327386856079, 2.408612012863159, -0.36215969920158386, -0.705827534198761, -0.2634528577327728, 2.1533758640289307]}, "2": {"config": {"units": 12, "activation": "linear"}, "weights": [[0.07393501698970795, 0.04057186096906662, 0.013289215974509716, -0.09603840857744217, 0.27465885877609253, 0.30507391691207886, 0.05638071894645691, -0.10697951912879944, -0.6788526773452759, 0.012981153093278408, 0.08492814004421234, 0.723442018032074, -0.6120872497558594, 0.32028728723526, -0.292492151260376, -0.16471712291240692, -0.14381277561187744, 0.1140606626868248, 0.12322275340557098, -0.09523268043994904, 0.10075599700212479, 0.06571485847234726, 0.03231661766767502, -0.23285458981990814], [0.0858161449432373, 0.04774661734700203, 0.04384034499526024, -0.048756759613752365, 0.23554696142673492, 0.2964034974575043, 0.029564455151557922, -0.15260076522827148, -0.7348366379737854, 0.018585147336125374, 0.0791187658905983, 0.7093236446380615, -0.5368813872337341, 0.22694940865039825, -0.2520555853843689, -0.07672721147537231, -0.18318891525268555, 0.14624856412410736, 0.11101395636796951, -0.1319967657327652, 0.10240891575813293, 0.15774962306022644, 0.05501947179436684, -0.24357753992080688], [0.08952929824590683, 0.05086580291390419, -0.04358378052711487, -0.08626500517129898, 0.23759765923023224, 0.29089951515197754, 0.021826446056365967, -0.034402646124362946, -0.72134929895401, 0.0338604636490345, 0.10800196975469589, 0.6964312791824341, -0.5141463279724121, 0.3995771110057831, -0.3063618838787079, -0.16526362299919128, -0.12727326154708862, 0.11663775146007538, 0.10394575446844101, -0.07470233738422394, 0.09087516367435455, -0.0012012883089482784, -0.0065961843356490135, -0.22989802062511444], [0.09355416148900986, 0.06250876188278198, 0.16407443583011627, 0.023654241114854813, 0.2028314173221588, 0.2774102985858917, -0.023347316309809685, -0.1909688115119934, -0.6951143741607666, 0.047213274985551834, 0.07521146535873413, 0.6449359655380249, -0.5248037576675415, -0.025478990748524666, -0.14872214198112488, 0.12108319997787476, -0.28857937455177307, 0.13235779106616974, 0.11420276015996933, -0.19015544652938843, 0.10306143015623093, 0.37672659754753113, 0.0314890593290329, -0.26204609870910645], [0.10220861434936523, 0.07473545521497726, 0.23446522653102875, -0.003355457214638591, 0.19996479153633118, 0.2459757775068283, -0.06610111147165298, -0.05085090920329094, -0.6195481419563293, 0.06487127393484116, 0.08459525555372238, 0.5899530053138733, -0.5216658711433411, -0.1505173295736313, -0.251765638589859, -0.10910986363887787, -0.14696812629699707, 0.07582686096429825, 0.11700186133384705, -0.13214799761772156, 0.10287783294916153, 0.47176623344421387, -0.025227520614862442, -0.21534015238285065], [0.10312239080667496, 0.09707235544919968, -0.05492594093084335, 0.01068534329533577, 0.2168167233467102, 0.2106424868106842, -0.08681832253932953, 0.01862153224647045, -0.5982778668403625, 0.0674712136387825, 0.13224780559539795, 0.527470052242279, -0.39423128962516785, 0.3600682318210602, -0.16119982302188873, 0.06661622226238251, -0.24536411464214325, 0.011470702476799488, 0.05812292546033859, -0.1581108719110489, 0.10197669267654419, -0.0037582796066999435, -0.1610240340232849, -0.21114972233772278], [0.12525953352451324, 0.12933236360549927, 0.0646231472492218, 0.05926777422428131, 0.1676231175661087, 0.15758904814720154, -0.15233013033866882, 0.021867919713258743, -0.5876366496086121, 0.06665400415658951, 0.14286750555038452, 0.43498674035072327, -0.30672207474708557, 0.15713870525360107, -0.13184206187725067, 0.0977117195725441, -0.23308786749839783, -0.019653191789984703, 0.05320689082145691, -0.18315334618091583, 0.11449131369590759, 0.11197500675916672, -0.1552906632423401, -0.1915467530488968], [0.1621408611536026, 0.16016903519630432, 0.15664993226528168, 0.0016305518802255392, 0.05334749072790146, 0.10102813690900803, -0.18804588913917542, 0.15966467559337616, -0.49538758397102356, 0.055730804800987244, 0.1974124312400818, 0.3485466241836548, -0.3730051517486572, 0.07843495905399323, -0.31618764996528625, -0.294150710105896, 0.02691265381872654, -0.03329231217503548, 0.06625315546989441, -0.08353833109140396, 0.11992641538381577, 0.08123911172151566, -0.11902733892202377, -0.10462549328804016], [0.17161236703395844, 0.19050395488739014, 0.09687785059213638, 0.08719304949045181, 0.010705062188208103, 0.0663963258266449, -0.2026381939649582, 0.04995865374803543, -0.5378705263137817, 0.046977464109659195, 0.22612150013446808, 0.27300310134887695, -0.2694406509399414, 0.20740683376789093, -0.17821243405342102, -0.02413737028837204, -0.10463406890630722, -0.02425045520067215, 0.05548242852091789, -0.15542089939117432, 0.12523804605007172, -0.10970054566860199, -0.060792386531829834, -0.137820765376091], [0.18060040473937988, 0.21296703815460205, 0.15582124888896942, 0.09880196303129196, -0.001374162151478231, 0.03974142298102379, -0.2276008576154709, 0.027005352079868317, -0.5169467329978943, 0.05212985724210739, 0.25691452622413635, 0.2054421752691269, -0.2658592760562897, 0.14961455762386322, -0.1998026967048645, -0.09012362360954285, -0.019836287945508957, -0.055280376225709915, 0.0731070265173912, -0.1202901303768158, 0.12923449277877808, -0.1292916238307953, 0.0522601455450058, -0.14617624878883362], [0.18775194883346558, 0.2256520390510559, 0.25949397683143616, 0.12289979308843613, -0.02020590379834175, 0.01030826848000288, -0.24897648394107819, 0.02027590200304985, -0.5747487545013428, 0.05165913328528404, 0.27024927735328674, 0.1671779453754425, -0.14790678024291992, -0.009122204035520554, -0.1798068732023239, -0.06558919697999954, -0.01867148093879223, -0.06357090175151825, 0.09639352560043335, -0.11905913054943085, 0.1382167786359787, -0.03103255107998848, 0.06777994334697723, -0.14841265976428986], [0.1976080983877182, 0.23572058975696564, 0.26275205612182617, 0.2190217822790146, -0.0956968441605568, -0.0028715215157717466, -0.2489113062620163, -0.15917296707630157, -0.5178332328796387, 0.04446779936552048, 0.2745543122291565, 0.13747936487197876, -0.2305050492286682, -0.026145579293370247, -0.028532320633530617, 0.21325792372226715, -0.18409059941768646, -0.009663660079240799, 0.08602534979581833, -0.23925051093101501, 0.13986720144748688, -0.035810139030218124, 0.07070595026016235, -0.16334165632724762]], "biases": [-1.3033889532089233, -1.237774133682251, -1.389444351196289, -1.3487918376922607, -1.4042989015579224, -1.2737786769866943, -1.0959409475326538, -1.0150678157806396, -0.7995931506156921, -0.762068510055542, -0.8024616837501526, -0.6477070450782776]}}
# 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()