serial_no
int64
1
24.2k
cuda_source
stringlengths
11
9.01M
7,001
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <assert.h> #include <sys/time.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/generate.h> #include <thrust/sort.h> #include <thrust/copy.h> #include <cstdlib> #include <vector> #include <ctime> #include <string> #include <vector> #include <iterator> #include <algorithm> using namespace std; #define THREADS 512 #ifdef __cplusplus extern "C" { #endif __global__ void gpu_sort(float *input, int *output, int* step) { int index = blockIdx.x * blockDim.x + threadIdx.x; output[index] = __float2int_rd(input[index] / *step); } int cuda_sort(int number_of_elements, float *a) { const int NUM_BUCKETS = 6; float *d_in; int *d_out; int *out = (int *) malloc(sizeof(float) * number_of_elements); int *d_step; float max_num = *max_element(a, a + number_of_elements); int step = ceil(max_num / number_of_elements); vector<float> buckets[NUM_BUCKETS]; cudaMalloc(&d_in, sizeof(float) * number_of_elements); cudaMalloc(&d_out, sizeof(int) * number_of_elements); cudaMalloc(&d_step, sizeof(int) * 1); cudaMemcpy(d_in, a, sizeof(float) * number_of_elements, cudaMemcpyHostToDevice); cudaMemcpy(d_step, &step, sizeof(int) * 1, cudaMemcpyHostToDevice); gpu_sort<<<number_of_elements/THREADS, THREADS>>>(d_in, d_out, d_step); cudaMemcpy(out, d_out, sizeof(int) * number_of_elements, cudaMemcpyDeviceToHost); for (int i = 0; i < number_of_elements; i++) { buckets[out[i]].push_back(a[i]); } for (int i = 0; i < NUM_BUCKETS; i++) { thrust::device_vector<float> d_vec = buckets[i]; thrust::sort(d_vec.begin(), d_vec.end()); thrust::copy(d_vec.begin(), d_vec.end(), buckets[i].begin()); } int index = 0; for (int i = 0; i < NUM_BUCKETS; i++) { for (vector<float>::iterator it = buckets[i].begin(); it != buckets[i].end(); it++) { a[index] = *it; index++; } } cudaFree(d_in); cudaFree(d_out); cudaFree(d_step); free(out); return 0; } #ifdef __cplusplus } #endif
7,002
float h_A[]= { 0.5438184634512216, 0.8010656946045577, 0.8824710192249834, 0.5387900053045837, 0.5123047402103402, 0.774402175455345, 0.8325373344652109, 0.5320702942410839, 0.7495827960179204, 0.8080465881016776, 0.8021197312089722, 0.600704866283865, 0.7336911448890613, 0.9537346594404958, 0.8700463859928178, 0.5990134478537219, 0.9480775113341886, 0.8196820316187291, 0.9485628829827244, 0.904862166477916, 0.5231370845018628, 0.6404085049752049, 0.5813968776208929, 0.8009636958826953, 0.9060069886237282, 0.9006194124145298, 0.8571926148594341, 0.831118401307233, 0.9579199031104095, 0.8373488785751892, 0.7599797684693415, 0.9582981845536666, 0.9965082664114961, 0.5363111025138229, 0.9208179493239501, 0.5477208088719303, 0.8916135254286017, 0.9053016426716827, 0.6364195302519416, 0.5909693705934207, 0.6791748916670152, 0.8516442202475838, 0.7594297246633772, 0.5849997845452864, 0.9997331500630462, 0.5115193586098297, 0.9340558576112774, 0.55665096429807, 0.7850142790641739, 0.7736980680509576, 0.7845831679075979, 0.9115475935851908, 0.8793571630342274, 0.5062218084751857, 0.6777304011117125, 0.8054573986328715, 0.5045467429759276, 0.9968369826434773, 0.5030984790163642, 0.8755767977665339, 0.5573803903451215, 0.8027362870603119, 0.6214809112077826, 0.6340002756575073, 0.6160886703479405, 0.8882529599279664, 0.7848925327365048, 0.7718543324302232, 0.9980571808814969, 0.5002748206261485, 0.8401299098022526, 0.717310262621367, 0.816107839904219, 0.7408359591240008, 0.9127514478419915, 0.8163254708783223, 0.5327794259598466, 0.7595594319088004, 0.729032231814468, 0.7419148440458457, 0.7858482153396691, 0.5301182119095712, 0.5493027726677686, 0.5861236844439537, 0.9904009316669804, 0.5869375351858324, 0.8825243664315503, 0.7520923221424476, 0.9770650804213638, 0.7539980822998267, 0.6220387445207312, 0.7545384224640598, 0.9066556186992729, 0.9665750365948225, 0.7334142530829175, 0.8693784553437578, 0.6477058247078347, 0.9898060612870434, 0.6514604660874151, 0.6323134195586171, 0.512607516843071, 0.84105008725144, 0.8574877047032372, 0.5104342988712977, 0.5661409481377484, 0.7729658173585504, 0.822802870952534, 0.9813785662749775, 0.9444047592047622, 0.9599277928883767, 0.9034270118231786, 0.5562735148838823, 0.8547520167441274, 0.8557526270708287, 0.5706100360165037, 0.5291907493952961, 0.594999197009443, 0.6994798516828304, 0.5266046087748152, 0.9914192544000228, 0.6414859251732112, 0.6327520089058041, 0.777811415899206, 0.9960493131899342, 0.9388314953258425, 0.9811912578880853, 0.5904915564205417, 0.6210888466419522, 0.9884845617000378, 0.9615740632346934, 0.9140216688271761, 0.5175051090621248, 0.9744899700766134, 0.8281213143410309, 0.6313956019778542, 0.8758474733293051, 0.8833344602364769, 0.8346394931363676, 0.6919882693539264, 0.5767353321758759, 0.7927345361221869, 0.7860616191335863, 0.7884976678283379, 0.5972897081694752, 0.6535299394443028, 0.9484299594268458, 0.5036397498056354, 0.6705469575299258, 0.5311981956489018, 0.5562008983859468, 0.6748176239859582, 0.503448610298941, 0.6799977622488538, 0.6742514743869952, 0.5517473346764865, 0.6636222475903224, 0.9774708713556717, 0.6680671385469394, 0.7590905277484057, 0.9285646236912857, 0.9566859297919873, 0.620179169676651, 0.8782699201703579, 0.6546637822660366, 0.8594365080791091, 0.5949457688951526, 0.6018855944920749, 0.9770081980690348, 0.6121070134992321, 0.9859060374400084, 0.8043535920043496, 0.9608694333374008, 0.666977114784528, 0.6377685130259432, 0.6176830436172049, 0.7035204589166462, 0.7616753538333236, 0.5214365583398883, 0.6205647594658217, 0.9596187119294821, 0.7149125529534349, 0.6265625944731524, 0.9443696350950125, 0.7701925006998813, 0.6593479432734266, 0.9256345410365152, 0.9143736531568479, 0.5770293431140463, 0.9626454677370788, 0.6370820381418281, 0.563487662916238, 0.5860965979003674, 0.6864021972851231, 0.8246652055324081, 0.99180676436685, 0.6318729072716165, 0.558077034992335, 0.9648686240784579, 0.5421484841109665, 0.9757268543009081, 0.618058754441043, 0.8168895246926676, 0.9811944418731628, 0.863297511978018, 0.7687597859997972, 0.8289309655519063, 0.7576655851046508, 0.6609554358144637, 0.6166532754786167, 0.5828207395653509, 0.6670076146751298, 0.7345533335177965, 0.6302322960208008, 0.6893613716087293, 0.5392944066750679, 0.892445319777135, 0.9026002371685902, 0.6693918644320827, 0.9748921348901598, 0.6425787395974409, 0.7308988927754192, 0.6116289856897551, 0.5209189974545272, 0.7145294759948941, 0.7958967975926274, 0.6999851653638035, 0.9411087959363404, 0.6249034529236932, 0.8358426271278516, 0.9090780874774058, 0.5093726549011379, 0.5353473809675907, 0.5857936900787831, 0.6595330487104656, 0.9865733818888132, 0.8905202836527234, 0.7489384910150783, 0.6927067121296424, 0.9320898940829064, 0.7226976990963776, 0.9846656693557956, 0.5162096695494944, 0.681872012689589, 0.9544065351930486, 0.7999352247833604, 0.5947006566474635, 0.5183585186553479, 0.5168605481396724, 0.7482852771044725, 0.9654425609945116, 0.8516662104189185, 0.7913684216749808, 0.8883247185495708, 0.5436772974740535, 0.6266876959219634, 0.7136997058242986, 0.5848105030355064, 0.9102905675468826, 0.9314771067500291, 0.853816881812687, 0.5697840349190468, 0.942793094563629, 0.810499371092621, 0.5924782648053909, 0.647399966582297, 0.5513594051055215, 0.9611812192531491, 0.5296538612613932, 0.6579235053417557, 0.9091541326270921, 0.8086806688539103, 0.8302198575750734, 0.808243503583018, 0.9910494130841742, 0.9233476374986498, 0.5674662700240767, 0.9340307162372121, 0.7309908508617995, 0.6136399901152739, 0.7152689314892952, 0.531666057255892, 0.6054308797500353, 0.9858872041466229, 0.7134961357517775, 0.5324338165631739, 0.8457651001644944, 0.9169077813726811, 0.9887160883827979, 0.5701024735972299, 0.6442480447397105, 0.5633242601466878, 0.6559133889855295, 0.6791579526857827, 0.5924134238143517, 0.950818982187971, 0.7861693721737031, 0.6235408437957999, 0.8885159375537826, 0.7413180169437724, 0.7653422153871007, 0.8740673413525542, 0.8910958734439016, 0.6184339956958071, 0.8651770987417202, 0.9035295308741276, 0.7448254045249973, 0.7580027804068736, 0.6198095476692427, 0.5864621413111845, 0.776282915039288, 0.5280715777127216, 0.6499088206253982, 0.9722120743085623, 0.809524866091303, 0.7970599303263004, 0.9182439505284006, 0.8004965325846338, 0.9997417076673213, 0.9274881207901019, 0.8041105293757849, 0.7570993384535728, 0.9841468652178386, 0.501459302388942, 0.9728977384120209, 0.8198234963052535, 0.5355294054849641, 0.964701707280771, 0.5407185210698948, 0.7139112222166633, 0.9524254016885714, 0.6489193473313488, 0.6976224145347417, 0.8291560832415268, 0.8151398356783789, 0.549653012502856, 0.5297623174348676, 0.7922042009789965, 0.7668853138286424, 0.7388082272345864, 0.7374268787249194, 0.9341232007256167, 0.7348671280010128, 0.5514816057810652, 0.9502358220317865, 0.5707269304360606, 0.9507345913799871, 0.9174047222594428, 0.5663968631421072, 0.9362432488333137, 0.8104565825281946, 0.6705311408370818, 0.7879617789337854, 0.5187744239480803, 0.6643581316486241, 0.8859780046585337, 0.5469109248782977, 0.6446379411505695, 0.6270830116799546, 0.5663526892034112, 0.7642990376388643, 0.791097130778609, 0.6800146828402527, 0.6010223570275477, 0.6761370871337866, 0.6104341598831103, 0.5551813137709044, 0.7744198374377487, 0.6487785709866472, 0.8552845593560487, 0.600466358786209, 0.8450783577618839, 0.5233031204984664, 0.7638203670261232, 0.5710582608378691, 0.9072326876413394, 0.7904463326053339, 0.7501590478260594, 0.513029608206532, 0.7067833360540234, 0.5376135485390987, 0.6980026974559645, 0.8452058163564675, 0.7015825345470974, 0.9250646378471443, 0.6984914436521705, 0.615712137148525, 0.9870537721762879, 0.8653846672700434, 0.8224500526232371, 0.9081576833482288, 0.905632345127279, 0.8025020691159535, 0.628583116021632, 0.781529502201044, 0.6564626524336806, 0.5994811647162785, 0.5661712486832478, 0.7742482274108884, 0.9391986069234063, 0.9887276357566667, 0.8850146529841478, 0.8542829735843496, 0.9254238668167631, 0.5469863666025039, 0.9692319296289136, 0.7897926365648011, 0.976987199590037, 0.5616310843067797, 0.9281679772162883, 0.6119001954898806, 0.939494873183744, 0.7452898425111534, 0.7865765833712974, 0.6847437051611179, 0.8189399657719151, 0.6075399042890368, 0.5851793118465197, 0.5110867715575167, 0.6057329412883428, 0.8445416178278268, 0.6841115810862641, 0.5039916250251166, 0.6711173352863299, 0.8970458350309483, 0.5778456406540866, 0.7356626599430653, 0.9732767226229397, 0.9694633616291475, 0.5340188649004112, 0.6068227603194831, 0.9618144184939916, 0.5806886516902303, 0.97140888224695, 0.6584746301280526, 0.9754576382387352, 0.8025862175778902, 0.700581857821598, 0.6028973771022875, 0.5325883122535254, 0.6402681097236489, 0.8038708401233703, 0.5662242585430023, 0.8456500632189561, 0.7253851033115494, 0.9944899682751758, 0.9139967786283674, 0.8619847574037995, 0.5425564521260453, 0.7442955176823081, 0.6600784972444755, 0.9203710159026429, 0.7059458939130877, 0.6079556594438491, 0.6776654476056991, 0.8827549125917626, 0.5511814479843158, 0.7055195528669327, 0.9399535974797303, 0.5049483653302226, 0.8267200337225782, 0.8519743053913621, 0.7146504662405546, 0.6743470485198959, 0.9701836370552989, 0.6089768002158474, 0.6116387694047157, 0.9477871570243798, 0.5896244189477065, 0.8446906254007346, 0.9896437173584932, 0.6475515390744977, 0.7590079869515636, 0.6094149601008666, 0.7456023767432951, 0.9512040444769188, 0.6084671826260235, 0.5224870531028123, 0.6559502956560427, 0.9370088352552923, 0.8786432916929585, 0.898906186273082, 0.6185182464878154, 0.8520878301952026, 0.961472751205597, 0.8985697976967888, 0.5077065462740624, 0.8774881961306193, 0.5933688302873109, 0.591884988053322, 0.8163008811953929, 0.9417650452528357, 0.5458544687542974, 0.6683410137515075, 0.9179027054483224, 0.8562734715740041, 0.8390842519264909, 0.9255231194033566, 0.896575265141544, 0.9277275191248312, 0.6628541391504474, 0.7326439361164822, 0.5891601670673758, 0.8767670187779166, 0.9299411393565136, 0.7431349955337794, 0.8458508479005449, 0.8154876140783394, 0.8728312789964449, 0.6188463418569562, 0.8229557706672643, 0.9611625132795656, 0.5188744718422078, 0.7446702862523454, 0.5068751995562759, 0.979704186476728, 0.964696289975786, 0.554400504882947, 0.5038522219330973, 0.626042688879124, 0.9557067457679193, 0.9281974837247522, 0.5115439867201483, 0.8344315321332829, 0.8008124452569103, 0.5941825390881346, 0.9332238797166494, 0.9226414984621886, 0.5114009061660201, 0.6642182024946888, 0.5021746383209644, 0.5571870793833722, 0.9349552830873085, 0.9361042887996891, 0.6005560456290081, 0.9802661014675722, 0.9611797418783106, 0.5793089683305003, 0.6878439350548028, 0.7756929084126347, 0.5942774515723677, 0.6047315053419942, 0.6331526915653007, 0.6245237514231857, 0.5179031264491698, 0.8015752714633211, 0.8892185153944722, 0.700356532597036, 0.757564589453597, 0.5974465679663874, 0.6459685473883074, 0.733200040230694, 0.681884086675832, 0.6881491442008703, 0.8964811490516028, 0.9307188434476359, 0.8873384502058639, 0.7541897941960211, 0.9810807472080875, 0.5865981884612876, 0.921953101140198, 0.6730809610110384, 0.6759269058821205, 0.7502818664996888, 0.9137886246993421, 0.639944996846713, 0.7907671044170526, 0.9438534801247166, 0.7696151174551193, 0.6404661565721513, 0.6239211107414067, 0.6327679405354452, 0.6357060016740391, 0.8677350404208339, 0.7661092309758994, 0.7190689875243365, 0.9331079248377006, 0.7709786858790353, 0.7896826424040417, 0.701979530523394, 0.8296772222328509, 0.8133370753427538, 0.8557034402971051, 0.6364237575860849, 0.6597185787522334, 0.781188137520062, 0.5568052866419291, 0.5985258470244574, 0.9857678593929926, 0.7864624507081768, 0.7429056537678006, 0.7024478869012702, 0.8927064435079731, 0.7061258096581919, 0.9234163164710387, 0.5458247137052152, 0.9965089011141537, 0.9766787151590558, 0.8764583945480698, 0.9644715687910295, 0.6630533749989869, 0.6437722656086837, 0.9603934824628504, 0.630576911979978, 0.7069601855030752, 0.6921707418690437, 0.8156548928584719, 0.7151781301375228, 0.6036628770593039, 0.7406868295374094, 0.5274998774671711, 0.7988728028026748, 0.5902598026179354, 0.6396675996833856, 0.66232607974317, 0.6429167589113551, 0.5421813718026743, 0.713714408109594, 0.7694700823330418, 0.7157105209559202, 0.589492628031931, 0.8595145357756762, 0.6023653447767323, 0.6119356927014775, 0.9127163526337712, 0.7570693839586458, 0.8648085246184556, 0.6152051847995739, 0.7335065256282635, 0.9449318773063516, 0.8049941298738181, 0.9105405258498394, 0.7430540485634629, 0.9038994696761277, 0.8370321561960187, 0.6706557672434534, 0.725083992624023, 0.9207130874724057, 0.689855551605276, 0.8027792814066546, 0.6621232018573693, 0.7990997266856392, 0.5796004100680299, 0.6559515910631346, 0.9022983661464271, 0.9245463977912622, 0.8756384947644129, 0.6464031721280539, 0.6652508757822255, 0.5015016997462476, 0.6907349970183787, 0.7140570596705982, 0.624902149577633, 0.5526961433723021, 0.8471610450276706, 0.6749339422213978, 0.9866128419050423, 0.7328179338308576, 0.7467348169622259, 0.5511828791570956, 0.955434674191391, 0.9901410746792738, 0.9362584960868174, 0.5992242378878887, 0.5758348975617131, 0.9326471011856171, 0.6255418921477871, 0.8124722405564591, 0.5692488857224262, 0.5740552372968525, 0.8549776759000616, 0.6616496597680195, 0.996145888840115, 0.7846370152461692, 0.9012711097256023, 0.9420132649198122, 0.620573151753429, 0.9864243470870286, 0.7594957006402565, 0.9913821381909045, 0.716713543337276, 0.9437911639925991, 0.9563789018972606, 0.9831981201314551, 0.5760244298677928, 0.7219956279814965, 0.5830663152890418, 0.5320339966066897, 0.990162602482127, 0.9910454820316821, 0.7955683667523796, 0.8759072692196832, 0.7343049194988569, 0.6627939019305898, 0.7604973179112037, 0.6403850794306325, 0.5482618674469153, 0.6436637324967748, 0.826580574942212, 0.7169209011544498, 0.8323805695181032, 0.6461312680732556, 0.5190635104973506, 0.6576252790208899, 0.9159308951452259, 0.7639196759887175, 0.963814102126272, 0.5256148438634856, 0.9913277495928694, 0.8525984222368221, 0.7806972522616419, 0.640048014469204, 0.9483965975099576, 0.9963431982732684, 0.6148127411136584, 0.5549765303354554, 0.701317448654748, 0.5294243683477131, 0.6264208012575941, 0.5341869384596527, 0.7313562824405693, 0.7274079746851293, 0.699308902738667, 0.8426764988133214, 0.6562965715770676, 0.5998981381879027, 0.6703662928315566, 0.6672798959247389, 0.985063057125629, 0.7325721951289577, 0.8793718076637584, 0.7315468949738704, 0.8297084252176633, 0.8862793067650984, 0.7098642875933109, 0.9931969418912965, 0.5202953374950245, 0.8109219841255217, 0.9930027850957472, 0.7969173009587834, 0.5846825167152918, 0.7684097378613964, 0.9929870828405635, 0.5325285575765023, 0.5858335329932818, 0.7553086779885088, 0.7561344015038423, 0.7267629691052575, 0.7420288656502927, 0.5422248513133603, 0.9599759207594067, 0.916285448883259, 0.5972236405701234, 0.9352044259208778, 0.7252474740732482, 0.9996082765847559, 0.8427721830040369, 0.8094789194045968, 0.9258131830516618, 0.8696206281303742, 0.7031953683022898, 0.6562189798148323, 0.7986690360585307, 0.8025619561977093, 0.6572773898699589, 0.9227320502287226, 0.9019350509011277, 0.9513091966957705, 0.9726233279082743, 0.8188192360756971, 0.8182441850631348, 0.8773537474038007, 0.817104683380834, 0.5575829805659718, 0.9582607207856839, 0.7501453993333731, 0.908222325077295, 0.7835319309664939, 0.6740384176483838, 0.864681497418759, 0.9899532020614351, 0.5677287210689852, 0.6999473376341881, 0.97627340848311, 0.871168273124965, 0.6884864677770834, 0.5502452032458253, 0.6265876767416515, 0.7153438457630816, 0.5028607759436738, 0.5882305959170673, 0.5807586427795021, 0.6450447020419954, 0.7857363633482143, 0.8351962005581179, 0.8257197948414627, 0.5182188238282597, 0.733669220605941, 0.7654719530927694, 0.9845773798308004, 0.9588396943662199, 0.728064817376848, 0.5894539819646253, 0.9620686607690885, 0.9964483805730162, 0.7075792728849948, 0.5406990731447183, 0.7414565748747455, 0.7477597776874467, 0.9869360869322142, 0.6918293960877941, 0.5186327089511865, 0.7684119783511932, 0.7028941778969089, 0.708739608893733, 0.5826303703967508, 0.8961904961997881, 0.7121989765404013, 0.9979066443294191, 0.9044775546964285, 0.6666667194431759, 0.9645138855114779, 0.521265819487794, 0.5770837063217499, 0.8643181889611001, 0.8826723549313906, 0.5485656056910846, 0.9131969476262309, 0.9705257975064067, 0.9912975449635727, 0.5746499514464785, 0.9207029830657429, 0.7027803574395171, 0.6751819776140499, 0.9329755183491479, 0.9079894754582869, 0.89763687659418, 0.6422102383419833, 0.6164851577970911, 0.8387833764782665, 0.6832288506957975, 0.5623342550522767, 0.6144961453602682, 0.9069627630758668, 0.5110543601276849, 0.9815876442003391, 0.7334318669983015, 0.8217083405050525, 0.7118819614670133, 0.6446392700603163, 0.5929713607578382, 0.5712810659651091, 0.7433690790839762, 0.6833928322416378, 0.8295765405080822, 0.8911065024005803, 0.595904465019346, 0.6548272162399937, 0.9497204302809084, 0.5275177720829822, 0.6015658697291343, 0.6712019512221767, 0.6038423514918447, 0.783984096479337, 0.9324714606578068, 0.8665361613027045, 0.8842311095110496, 0.8049511591961417, 0.9205630371823826, 0.5170613119872741, 0.8615385494395955, 0.8448343868796003, 0.6624973081960899, 0.5500095579723672, 0.5611143590864465, 0.5668703996951805, 0.6175832244206663, 0.5309880437408643, 0.7505407209574484, 0.799337503293369, 0.9098359808452923, 0.7038900220289612, 0.7639611973144388, 0.5357433122938646, 0.6693104337701368, 0.9971775233503962, 0.6040936265537309, 0.7122979856039038, 0.65493368602106, 0.658785489916929, 0.7310847544004186, 0.767090551687007, 0.9077009538165026, 0.621026627428015, 0.901033495016281, 0.9414809696578958, 0.916588856637101, 0.5012789592934037, 0.8092350325687577, 0.5110264988498325, 0.7378391549471872, 0.6718491900412202, 0.9683306142968953, 0.8636025919585945, 0.798106474999861, 0.8562853810304277, 0.7874900368637131, 0.5316850848385903, 0.6574603888647068, 0.8625404252623055, 0.7920268338299867, 0.7099997112907415, 0.864773291066242, 0.6397804805275162, 0.5808989842037315, 0.5425690509182485, 0.9743092615580419, 0.6825862414511676, 0.8794386555378648, 0.6088190975624808, 0.9049910606435798, 0.8628121960760053, 0.7340588960524874, 0.6885832928150275, 0.5957525129114094, 0.6274270165569669, 0.9693755460684976, 0.9822183842709047, 0.7957522625472757, 0.7856973625780046, 0.6879421576021585, 0.9296246198055049, 0.8754291840308115, 0.6972989781928634, 0.9972880866000007, 0.8740893472041373, 0.8623915200538148, 0.8537606942437104, 0.7674209232357758, 0.9641758792214968, 0.8571377765995696, 0.9758418090215982, 0.862332659282194, 0.760739593683362, 0.8904318322000576, 0.6486716924760594, 0.8804880399794981, 0.8121683494450938, 0.6453797173766511, 0.5447760228006012, 0.8143663180482562, 0.9109953321351668, 0.7384009722388932, 0.7670833856577943, 0.7084284012424988, 0.9435485422206257, 0.6207464476884732, 0.614957742323732, 0.6599198740894124, 0.8580379486842015, 0.6524695901435784, 0.6712423447383578, 0.6813156794293347, 0.9232394714452563, 0.6486285900258416, 0.6527485543337602, 0.8504935650973584, 0.9046115848543823, 0.8326799696749355, 0.8014995734042253, 0.9960514182831178, 0.6724675311065826, 0.7621998452230749, 0.6926743832561069, 0.6942436018675392, 0.7946067981130576, 0.7470703588394786, 0.8628072339372753, 0.8150003325500359, 0.856786818353285, 0.9569411319163181, 0.8773615981400393, 0.8349445834348133, 0.8201741027714825, 0.586801667852952, 0.599297718597209, 0.6620752202212625, 0.6909065328629396, 0.7424876604810204, 0.7818891690779457, 0.5960897260459703, 0.6380445699901756, 0.8444493312613504, 0.9999767547705057, 0.9264232890860171, 0.7696145645885025, 0.904120343268473, 0.6277579990333773, 0.8308517583495615, 0.6932631803335825, 0.8705637277377385, 0.930292607333546, 0.989688038501132, 0.5545818415259498, 0.7516345063931995, 0.8681640949088814, 0.7574949617939812, 0.9335758607939442, 0.9556035380072709, 0.6933689274902151, 0.6592251670941971, 0.994126539118799, 0.9907699586216367, 0.515199088500492, 0.7666753363164655, 0.7427977017247198, 0.6585923216984226, 0.7088082040849227, 0.8124482015346423, 0.5957494847992864, 0.5943697422763414, 0.9480364135631136, 0.5456191106247212, 0.7672021121475998, 0.5705878980959935, 0.7405749330419047, 0.9041900651313305, 0.5424791331055009, 0.6819816161612267, 0.671810648841675, 0.8033369289042334, 0.9069761275447644, 0.6688261731357771, 0.9967602872468444, 0.6023025290679006, 0.5155844532297683, 0.6945196115923742, 0.7921423140604062, 0.8981516843469928, 0.799295937794081, 0.795809970351826, 0.9141712417039021, 0.8004860044021672, 0.8738565135689741, 0.7996681575857882, 0.6258940871975348, 0.5172783796962019, 0.7436609971913837, 0.995611781818562, 0.8681571824471523, 0.7501004697348475, 0.6117450311565881, 0.806060854204518, 0.9048614421577966, 0.91689040724458, 0.6416906178176255, 0.8285570936475228, 0.683375962555677, 0.5496090069824539, 0.6519693523780037, 0.6865998590576006, 0.7275763588773303, 0.5739868867912816, 0.720801851535612, 0.6664652741040137, 0.8217797972892509, 0.8051896137803436, 0.866553947139604, 0.6362740549639143, 0.64837630027823, 0.6122723328877402, 0.7606026467384407, 0.6464197486852192, 0.8826193266550342, 0.5458658780855374, 0.7356025900030287, 0.6567823747563879, 0.7217353453329091, 0.6778556813774657, 0.8344057145326624, 0.7254087027551954, 0.6368817921443628, 0.9517534986444713, 0.9179700225240506, 0.6995766262262001, 0.6777369645402844, 0.5856501359357604, 0.8606561336435105, 0.8261174066427134, 0.6247913569812288, 0.6686971781234131, 0.8666608205243509, 0.9955954942516543, 0.8823837211124714, 0.5702428698576758, 0.5484335094309706, 0.7919475977824038, 0.5336465079503874, 0.5707005478085779, 0.6987991629435402, 0.56743085817012, 0.55721302960144, 0.6334794605457575, 0.5295040414428767, 0.6397031943040898, 0.5395330726184326, 0.7756154942349083, 0.7243741058121616, 0.860940329989293, 0.5042554386996771, 0.9096894733732371, 0.7018135487077523, 0.7084734184824587, 0.6832261746506452, 0.5164548327235108, 0.9089955419198266, 0.5733578267884197, 0.9097904542909558, 0.6091745036485938, 0.6626114364659119, 0.7970456723962283, 0.8154905656517926, 0.8742202600361593, 0.718432538235216, 0.6700627423370196, 0.7424332470207323, 0.9630284926192837, 0.9814163617642326, 0.5524350842317839, 0.7264187519751548, 0.9070961061023262, 0.86682599046392, 0.7453782142105925, 0.5306969735154599, 0.5575300758711136, 0.769083018296497, 0.7538412639045641, 0.5764463890986176, 0.8164982568390573, 0.8680986770686381, 0.5985949321916827, 0.7890549323750149, 0.9562708202541177, 0.7341412711403781, 0.8151967242657208, 0.9003334062791789, 0.6742325249523546, 0.7338946900847438, 0.9374366947540065, 0.6513820135378228, 0.7298449918424068, 0.6418335431297241, 0.846314670613253, 0.7498197274518679, 0.5534542750858061, 0.7394122138726797, 0.6079313604470563, 0.6729865662803686, 0.8553754489647083, 0.6124675655905902, 0.5368577546298068, 0.5419608906637379, 0.8549658564491881, 0.5482883561922627, 0.8853874694094535, 0.9060409259987772, 0.6031239090397468, 0.6678704932285666, 0.6375408039489399, 0.6500240337614824, 0.9687707131471277, 0.5689214277501012, 0.982596917868348, 0.6706864513284726, 0.7192156664119977, 0.5305176902903349, 0.5675726472200319, 0.8923718209515245, 0.8233194476201375, 0.8834783552543334, 0.5718445749307615, 0.9154610216732213, 0.9841342025032704, 0.818896248919049, 0.9099886784539928, 0.9243156601783247, 0.6983989601867405, 0.6410977068606986, 0.7052106954545453, 0.6830384560844863, 0.9379821185885695, 0.8563068692868887, 0.749164979500753, 0.6242114020565365, 0.8756518707613128, 0.9257568903677692, 0.9854395260104959, 0.8048247787641958, 0.9362442891484635, 0.5666461289323923, 0.9727742084306895, 0.8544657657643258, 0.727315591079892, 0.90257809972821, 0.905230770243038, 0.9176564341481481, 0.5334738152281768, 0.5320184575983726, 0.5301305938458731, 0.747995915959063, 0.5293111490368234, 0.9503500759038586, 0.7540726283349056, 0.8257440550505125, 0.5798073814944023, 0.9338935136657166, 0.5102894261068869, 0.5749225247481504, 0.5416013952764569, 0.5940637575891707, 0.6480224906737639, 0.5013319608453936, 0.6251075269370425, 0.8251626842213593, 0.7566101410715658, 0.5528842258890195, 0.7851350508793395, 0.9508167311320096, 0.8757478237977915, 0.6741171849728897, 0.9654387752519052, 0.641033651465186, 0.8949128975365821, 0.7948339036657803, 0.9453151296761604, 0.7120610928585334, 0.5695948522744767, 0.8239842209222243, 0.568867397586053, 0.5324107019025488, 0.5810548112592878, 0.889312751593363, 0.6897756045666614, 0.8133476589562436, 0.9225392794833422, 0.8655599250215905, 0.6548804879063876, 0.9952029359457393, 0.7413413335434504, 0.6987850101795838, 0.6391850659908397, 0.744436333395727, 0.9185238578727384, 0.6653211273691593, 0.8446423608550218, 0.6365534716704501, 0.6899273852287559, 0.764961197509197, 0.8660312804375423, 0.8167541522209321, 0.7547300150907993, 0.9658403761785899, 0.9697072602468098, 0.5432127278725418, 0.6506784031343174, 0.5350474344866549, 0.9547381824774888, 0.8768477871592963, 0.9850852177843455, 0.856717253348015, 0.7909911208143701, 0.9046228166274806, 0.8859703481399008, 0.7501586646983474, 0.6279776958038327, 0.6389495061383481, 0.6702807670040809, 0.5549571068908878, 0.567972798146112, 0.9262795607324105, 0.8765514054907046, 0.9170564603356517, 0.9602766903304241, 0.7601587244829668, 0.9717092667003272, 0.6400740020409739, 0.8923315117714463, 0.6679972672636262, 0.7915361337514232, 0.6042595702569034, 0.5492338746692398, 0.5735996299184702, 0.9462501848937201, 0.5154138860122197, 0.6096451666965452, 0.8190438610130684, 0.5684661943985314, 0.7719301684908084, 0.7867683287129392, 0.8960270719055514, 0.8854856446969347, 0.696934238867541, 0.7828049557937891, 0.5399536579978593, 0.7870178696396626, 0.9431938641213903, 0.9201630622661309, 0.7027870256398293, 0.802644423701953, 0.6453163699007933, 0.5047433328411044, 0.6800029800574618, 0.9266730459449668, 0.6353527188709813, 0.9383916348613537, 0.7760638054667417, 0.596413126703021, 0.9888338104064928, 0.5066348759461267, 0.9289177893336084, 0.6011498915055296, 0.9232776079715281, 0.9383522760911871, 0.7236460786992612, 0.9930254673230263, 0.8650195269930415, 0.6577975672869594, 0.9407124895669601, 0.5889131944201218, 0.519521137283158, 0.8695699451657488, 0.9447559507601193, 0.7839905680466082, 0.9867004374646147, 0.6025726974436599, 0.524149221123501, 0.5341299690947748, 0.8839261232554918, 0.5109307767736682, 0.9275207254851503, 0.5441625182083848, 0.8542420608510867, 0.9279265356983764, 0.6826222801547874, 0.582760493852631, 0.9743326337503672, 0.7512163886937195, 0.7598140289372266, 0.6868285216574824, 0.5971746539349401, 0.7067803148117685, 0.5860797032647492, 0.58909125490644, 0.9774024346511432, 0.5416224723882495, 0.6533654941991716, 0.9316101966380352, 0.6905792775691727, 0.6046846395332454, 0.7757098635187365, 0.6988474399753242, 0.9142345186418296, 0.9096150170142222, 0.9475860758040502, 0.9840017256572031, 0.8291583698516544, 0.7866331525229886, 0.5628551329856086, 0.9890187867366993, 0.5590528691800956, 0.8525324923611093, 0.6352503387574292, 0.8707794889859888, 0.6371590675482264, 0.5398491894306263, 0.5414067539267762, 0.7949047597090108, 0.9590296603153203, 0.5634350065978171, 0.6151762349928684, 0.99759242413143, 0.6452619866120195, 0.5995129823244627, 0.5473997108963028, 0.6084556724101122, 0.5161322819968139, 0.8274876540224412, 0.9188538664190591, 0.8330270511669131, 0.539937968150628, 0.8360083891491619, 0.8904277351798984, 0.7033591624684494, 0.6710536987421406, 0.8847523216259656, 0.6331793945994735, 0.9995244536858292, 0.9637201421099671, 0.7687173671616452, 0.6615996009409904, 0.622778912278531, 0.653844424479628, 0.8080185527301902, 0.5533691267462191, 0.9768537608066438, 0.9487056308049044, 0.5812197520481699, 0.9706596906788953, 0.9882646443961718, 0.576003589395317, 0.7786872940012423, 0.5938747293317579, 0.9407165565515934, 0.6685686283185588, 0.5368459382436903, 0.5165651092936208, 0.7750762532195252, 0.991435013653153, 0.6305301658726621, 0.6818158472093832, 0.6620633778614127, 0.6101739489258138, 0.5069721817940628, 0.6210760297297668, 0.9019112527589752, 0.8519443033046453, 0.851576005847317, 0.7481217698219667, 0.7871490258419617, 0.5292552047536254, 0.7331093709214344, 0.5097417400833857, 0.7795039332341895, 0.6319672418811384, 0.7608040640773238, 0.9043550855667564, 0.9379411874965411, 0.8870378673920283, 0.9548163704030503, 0.9745197543911095, 0.8000656270967503, 0.6656683276844586, 0.7201028162221728, 0.9390469363223026, 0.6277317193018375, 0.7551989274969924, 0.7426965604204844, 0.5306696624414675, 0.7888821080097315, 0.7571762734491567, 0.9554007741741144, 0.7838273606862343, 0.6751037935084547, 0.678151688751242, 0.8033216321498622, 0.9614422941514706, 0.9890374307292022, 0.5911057846576351, 0.6892657337923003, 0.9887666200422384, 0.7791578407557954, 0.705383891170372, 0.7502188228386474, 0.9489767175422831, 0.6567640927139806, 0.61312128043436, 0.7904244054648187, 0.9725881539412601, 0.5674691817476607, 0.7235399458545462, 0.5184293946628986, 0.6216719808108452, 0.9614956979110125, 0.6551731427049114, 0.6752750017639075, 0.5481389687746613, 0.9693002913842897, 0.9513221144127464, 0.698151297295564, 0.6332701814116808, 0.7755870379354903, 0.5218575890586712, 0.8169751610046577, 0.8937856659537977, 0.5412798585657144, 0.50450097173963, 0.9480541273862502, 0.5551047556259675, 0.927383514208567, 0.6165056876876973, 0.8886543379143773, 0.7231023895487276, 0.9531960981768379, 0.7030041897273327, 0.6272855233200493, 0.6776949355882456, 0.7043070860316848, 0.566144518178461, 0.8250408903321016, 0.8939631983977823, 0.8544287064889741, 0.9266454147911729, 0.8641865984591872, 0.9904184519148251, 0.768304417131069, 0.6660456207674408, 0.5156116939067594, 0.6740554943995545, 0.9556360424010883, 0.736537785182961, 0.8599873430290179, 0.8513354772834996, 0.7326298731528746, 0.6580824151408409, 0.5846841485549721, 0.9717365333961097, 0.6715611097155898, 0.6955942447617876, 0.5291593245293421, 0.6696605870845009, 0.5929541410948488, 0.7899841030713124, 0.6248711035727716, 0.7560823255567364, 0.8405728424090035, 0.5330484249957832, 0.7750803208179136, 0.7972053637842074, 0.6214797875910203, 0.6374610068358899, 0.8672840906897735, 0.610878902372306, 0.9597598603453541, 0.6445698814045062, 0.7152816278358165, 0.8791428071874305, 0.8263097298107943, 0.991079108034452, 0.8219090295848666, 0.6731731410182976, 0.7465234002031911, 0.6491991138072319, 0.5734447215840341, 0.7897020716852373, 0.5797783061239865, 0.7577488953874321, 0.5896324005295965, 0.7267544600025737, 0.6227087170634826, 0.6873238442431953, 0.7051044718322774, 0.7739348409560601, 0.6933332653158037, 0.9893579432364934, 0.8467836576797247, 0.8439002668658028, 0.7705636158163287, 0.60879342834001, 0.9003256989546475, 0.9748114750028969, 0.5279402879981423, 0.5005605464395525, 0.8408310620121466, 0.697119260964105, 0.5194295632610528, 0.7626990027137246, 0.6099281074828103, 0.6505002159899259, 0.998647762234439, 0.9475685946309447, 0.7921307704905196, 0.5602571324950159, 0.9513704344162275, 0.711909931991356, 0.9106993950303204, 0.5986786717651965, 0.7828336520882027, 0.9459644502199254, 0.6271479889150795, 0.6423588854701041, 0.6140881907536321, 0.853089488146562, 0.8016678152320778, 0.9143180971658793, 0.5516055091143162, 0.94698750397441, 0.8609095245407273, 0.5580658568187795, 0.7725529445636125, 0.727132860112564, 0.6067499676390118, 0.6460759012141074, 0.7469199347377542, 0.5016836145410262, 0.7782464338167485, 0.7890181082443455, 0.5939608093026822, 0.8193379322934669, 0.5303095953239771, 0.6492109512258984, 0.5994263517359208, 0.6596463593227524, 0.5929252884184723, 0.9206698424604158, 0.6012915231576001, 0.8383088605593002, 0.7146920728112182, 0.6100967527467357, 0.942277295053269, 0.9951823119088434, 0.6744918687229008, 0.7613765302842166, 0.9905012821630312, 0.9871447255105228, 0.5319559889974448, 0.7610241470803323, 0.9421989866868216, 0.7966160689084314, 0.5081176062619075, 0.8002127137854147, 0.9348601077685046, 0.8324838247942068, 0.8412109393739764, 0.7966926537708707, 0.5477068741061241, 0.7102962135368125, 0.6022008366319016, 0.7066720048569821, 0.8515958058872989, 0.80198910468235, 0.8956862651138694, 0.845926877500889, 0.5120210607981723, 0.6319319289056131, 0.6559978441654588, 0.5792117897074248, 0.8405019030954106, 0.7438013294520429, 0.7193405039525793, 0.8809074164555155, 0.5013583176054248, 0.9675739588025927, 0.5118706497755521, 0.614320131708274, 0.7720649204353963, 0.947215399266055, 0.7571486663828536, 0.8257809827692469, 0.7278140045605982, 0.9208944318151429, 0.8210748382009554, 0.5561983090767588, 0.9975984976015029, 0.7377762448694827, 0.8485561017906791, 0.9722436960108685, 0.5884174654592693, 0.8610193315050025, 0.7998964499017907, 0.5145707065837097, 0.8141798735306118, 0.8494163046361849, 0.614803390857541, 0.8977683045426641, 0.834356665674415, 0.6279972684092747, 0.5110428818887993, 0.6768252756778689, 0.5572103992741284, 0.639874648258014, 0.516903922000937, 0.5704649465574039, 0.6826534623112825, 0.7934326166179135, 0.9526321338292925, 0.6065665113480005, 0.7942705467487694, 0.8638399200562155, 0.7562876692278512, 0.6519969303416648, 0.5612501219428366, 0.777695800656106, 0.7961221845479853, 0.8858742665917461, 0.7961989308627486, 0.9553868743498684, 0.876865345481899, 0.7385793349577594, 0.9129139715399067, 0.9098173002405667, 0.7767333694735483, 0.7182279021414236, 0.8907267448306604, 0.9397751482951479, 0.802491231673143, 0.959873409787955, 0.67287571940961, 0.989054452272593, 0.5282933062984319, 0.5697280028103253, 0.7526676871787972, 0.7047520336960831, 0.8234940576386154, 0.7087516064977399, 0.9366110161828658, 0.8506466355861095, 0.6899407902880152, 0.8687465006376776, 0.7443199078568543, 0.9503753043377973, 0.634273588785436, 0.9648893260871607, 0.9548731215345132, 0.5098451956388736, 0.5532248595268041, 0.7999019005184813, 0.796928237581203, 0.5199461311389835, 0.8021154247532449, 0.8966034015692343, 0.7156534454584462, 0.9929315722067041, 0.944547554752146, 0.8674894585864479, 0.79638503741898, 0.9305866259215686, 0.7525449507587776, 0.8178516464729011, 0.571085302850143, 0.8636543457898823, 0.8965089688307775, 0.5489204727117067, 0.6249280435254796, 0.6935231997783415, 0.5107063645040916, 0.9227478706180401, 0.892792996037095, 0.896712709750157, 0.6534757824073778, 0.8635015969298436, 0.8819684062114725, 0.5176798088177657, 0.6677507742018349, 0.5663000847869819, 0.5515542802287177, 0.8107444109444865, 0.9645918886171383, 0.7687837169147125, 0.942242589363411, 0.725170156270827, 0.7497199177844176, 0.8639594521186387, 0.7808045536855215, 0.9829992924214522, 0.6510338289788051, 0.7233376425559418, 0.5664456425396898, 0.874301966044951, 0.5711845070353152, 0.9479308621723527, 0.6875622515818797, 0.5586028215677079, 0.5464164470445138, 0.8784985820674758, 0.8906299826951236, 0.9209559660771383, 0.6466235890843856, 0.9691272000561011, 0.6974271830738965, 0.5633913728769195, 0.9521720840714514, 0.7084201752052441, 0.8444368084465426, 0.8526247448299074, 0.7953549346411324, 0.6378280589585268, 0.7084920648347999, 0.6529132144187728, 0.6953412790024387, 0.6331138176470275, 0.7766875495442128, 0.7228349232773352, 0.9429111477541037, 0.7051712015217676, 0.5518790051728973, 0.5023845651337193, 0.6807828073796507, 0.8911816501380665, 0.9674141652913699, 0.6343568865135494, 0.722025017370185, 0.6764755491811586, 0.8869847466220357, 0.6767545050381125, 0.9898723976284689, 0.6318686074577464, 0.7128336035179921, 0.5019731272074157, 0.7246595394570667, 0.8005057359280938, 0.5204476427407796, 0.616741477124748, 0.7637684069359194, 0.8631127315170415, 0.566120648886747, 0.8253075032220724, 0.5010916285641256, 0.9253997012349696, 0.674443739092732, 0.7289670296255732, 0.5705606249838981, 0.8693230369003496, 0.8101695487137042, 0.8380141931403926, 0.5496306443310885, 0.9484951335996169, 0.7826371825616878, 0.8191036221795261, 0.7611288552093747, 0.5558680869318964, 0.945743356665194, 0.8210621646105419, 0.9369294132062229, 0.810702037890058, 0.7784077187147684, 0.5745279162073297, 0.7495918517528564, 0.5795334586778291, 0.7108037124353278, 0.942923083123201, 0.9385928036314276, 0.7110385006590048, 0.7107542979668893, 0.9669118700991188, 0.9430213849225887, 0.5200805521702677, 0.8304724524125384, 0.5186083586740201, 0.7916557804111426, 0.5305513282998618, 0.5221365356183727, 0.8493101094610336, 0.8426356255281152, 0.8080489679647811, 0.8055030857821932, 0.8410499597503263, 0.8888343147167128, 0.7011460310810265, 0.793218097751317, 0.9930906878618522, 0.984888368723329, 0.911023229277701, 0.7978528634323516, 0.8479726388629789, 0.5435206986772991, 0.602307834972152, 0.8178815541087008, 0.9861250358457714, 0.7927825345846791, 0.5663080348150501, 0.8948854597577631, 0.6506450670623967, 0.8291518269471543, 0.7303540006220308, 0.6887920810780142, 0.8160993538708503, 0.5207992133541446, 0.6332573976380836, 0.8097644437134295, 0.8568556859521348, 0.5291970106099513, 0.5732875923077481, 0.5393544297952677, 0.8752514318457068, 0.6308182462260099, 0.8126088157766287, 0.6211080984366736, 0.5588642311980105, 0.808881568216999, 0.8603336225702406, 0.9356755942785973, 0.6904359962981867, 0.6383932272046351, 0.5417436694495703, 0.8345107171315052, 0.7209527866203629, 0.7584288162630701, 0.6715619570787179, 0.9606287006906287, 0.789351900786838, 0.8410703814929898, 0.8573845518317385, 0.870849782437945, 0.6752913650222393, 0.8394360645889485, 0.5506044715070104, 0.6068961233501078, 0.6790613050639214, 0.5341640223987117, 0.9767335854735391, 0.9130315066120067, 0.518019639759165, 0.8511854624432, 0.7131198468338189, 0.5566926648238183, 0.7227480349968629, 0.5955100559750925, 0.7196144605884006, 0.763668214131904, 0.6841782562428818, 0.5913794698223902, 0.6878379985530118, 0.9259421077182579, 0.921616769162546, 0.5621757060178125, 0.5970895859232512, 0.8977436966262837, 0.7962007605252615, 0.8512958611551005, 0.7110824542184752, 0.6089162310257479, 0.8505699420846095, 0.566949504140874, 0.5943678764016123, 0.7844439139424092, 0.938094162790111, 0.9205492500528827, 0.9159410968049008, 0.7466113455923239, 0.8986777899902572, 0.7105969118998395, 0.6086198471134203, 0.9168189260677417, 0.7235399841645827, 0.7347288918927843, 0.989401956620547, 0.7624202997421792, 0.9443705595817034, 0.5872772173680503, 0.9129632760958812, 0.7318152932629971, 0.9904956909225311, 0.692511521889217, 0.5659386537541405, 0.5134793145323713, 0.5760351191100659, 0.9582338974563644, 0.7581079920153366, 0.875076158394386, 0.5136351227193264, 0.6970572641896986, 0.9274693647486969, 0.6110385092537652, 0.9403098532957337, 0.9097548115015819, 0.6709730023264651, 0.6787965636745787, 0.9802656555620606, 0.6453097089217508, 0.5429690673397239, 0.5889740474792808, 0.8291608221202134, 0.8772893620193212, 0.5139722777304123, 0.607845378420994, 0.8415231664170149, 0.9710637894935641, 0.9802740281024926, 0.7950140475953438, 0.6503732150203582, 0.9656769224483401, 0.6932790817312358, 0.7407436335804016, 0.524973126014032, 0.5075328949707255, 0.7185473469295947, 0.8442227690720621, 0.8991093771597283, 0.6661183936867053, 0.7464386391352598, 0.6397738014849312, 0.9295481486373522, 0.891201254780981, 0.7478956803538881, 0.6465234090895827, 0.7034443562751986, 0.5078286628345493, 0.8330239714835612, 0.5587916987857111, 0.8754990716546209, 0.8062735985623375, 0.5020236534715854, 0.691273807215623, 0.6913124638416364, 0.5760984568139851, 0.6139130172607927, 0.7958665053106535, 0.98196302225933, 0.8802347364042586, 0.6870825199137607, 0.5913804127654199, 0.6103215961037634, 0.659999568818146, 0.628583167026417, 0.9379498478153685, 0.6402684129591132, 0.9407782711460395, 0.6299054757035483, 0.6772704758941837, 0.6108725612875081, 0.89367297020299, 0.8017474649621601, 0.5886516404447584, 0.7209801628777306, 0.9672903989304062, 0.8313886751930908, 0.6937138984534899, 0.9566817044277114, 0.7789381347897788, 0.7451939394684284, 0.5414648771408859, 0.680871480250528, 0.9288460570183317, 0.7976437319846754, 0.9855298229380951, 0.8727099785667601, 0.9045216528110058, 0.589453592127999, 0.8813610472004658, 0.987606943199196, 0.7145162982721531, 0.8879574986300224, 0.7296613434173473, 0.7217645289985009, 0.6291965805117141, 0.8185685816011297, 0.7318175629586643, 0.9361686326624444, 0.7379994330759175, 0.7031517690562674, 0.6152370724038858, 0.7323387771714285, 0.9342793546913049, 0.8343402718791118, 0.905114595391461, 0.8911694782643604, 0.8083948156451661, 0.8072125284790033, 0.9578121486769335, 0.7425377374094826, 0.5118412675352433, 0.6721520626253958, 0.5945199865908002, 0.7447994882526695, 0.8727442483389156, 0.896820223656015, 0.9057103750250322, 0.8129968708461184, 0.515079600685629, 0.5571068089281184, 0.7173962838923342, 0.5612691669528636, 0.9197770351846346, 0.8193698006477095, 0.9486591735156309, 0.9535135002281204, 0.7881428598826422, 0.5040084166474568, 0.8640277254844062, 0.6692270426010061, 0.7183995552828847, 0.799640508034716, 0.6222959241331849, 0.6950889569966303, 0.5003965227765359, 0.7832144564025083, 0.7651775355766524, 0.9980498865226075, 0.9141322684428511, 0.9569640643683547, 0.9501608603536262, 0.5171780790031302, 0.9043555483461511, 0.5563608071971402, 0.8132417714652511, 0.8075572101338365, 0.5054491431976234, 0.8585447235028635, 0.8121677773172273, 0.6829230339353167, 0.8678253694218799, 0.9774391831681186, 0.7324848217667626, 0.538015502292486, 0.7714276473482722, 0.5753311472172689, 0.6553594129314055, 0.7711726686562381, 0.5617356214449591, 0.9752899057897491, 0.5748971737009345, 0.6875291917058461, 0.9941289444868288, 0.5385214584763602, 0.5963577225944274, 0.5875315411695512, 0.878968769561673, 0.9259218683801209, 0.900526177791962, 0.8648893481611102, 0.6398399766624521, 0.9912139284856724, 0.8377412127208536, 0.5021885789466993, 0.9528911132459105, 0.9823767022135788, 0.7301871685894155, 0.5729163549632081, 0.7784186628056291, 0.5036871919156696, 0.5496232750189027, 0.8119404497994941, 0.5141539888437068, 0.9756933321971137, 0.8876441854466051, 0.8479284316675872, 0.9817001261933439, 0.5080049698464839, 0.5149666308738012, 0.8480000690731058, 0.5696211645635881, 0.8276568281743848, 0.811036342456791, 0.5503386000025987, 0.831460219770421, 0.7706529725802803, 0.732119021832059, 0.948553176434443, 0.8893194559447344, 0.617079103208447, 0.7658240955093816, 0.8222805792509864, 0.7592729703745369, 0.6457337846407043, 0.878195176148191, 0.9052124336134876, 0.5330081764782597, 0.9471438156559425, 0.5857369590983006, 0.9008359607601428, 0.880099154287555, 0.6280816385097034, 0.5086180526444536, 0.7947294212077209, 0.8460574517830026, 0.5556195290363213, 0.7938206746830084, 0.6801957343876197, 0.8442264544137441, 0.7395949244855801, 0.6534611628816795, 0.5986359655607145, 0.8610392202085021, 0.8946623262152533, 0.6987458411537115, 0.6580594022814962, 0.9522596577154205, 0.9063641162100675, 0.8123395056071518, 0.6237205565102276, 0.8866430629745787, 0.5196395797576077, 0.5836675429207756, 0.8475565105411462, 0.9867204085052806, 0.6821797399849163, 0.9852447799075548, 0.57346034710883, 0.7495613935018195, 0.7443032775823442, 0.8343994805240724, 0.5122438329971558, 0.5205291649169739, 0.8933626259676497, 0.6644253105645386, 0.5512333796294429, 0.6157299177784237, 0.8193112867804766, 0.9233480712506328, 0.6075607474579394, 0.6670437456573056, 0.643302013272302, 0.8348387664219188, 0.9618116934892895, 0.7689666552355976, 0.5486543433716728, 0.8250758766899212, 0.8995068500039881, 0.8213834389979908, 0.9900105287181185, 0.8932716971577639, 0.713914841321549, 0.9324345602551984, 0.6549623350334947, 0.9244332015012884, 0.6665801373676852, 0.5323852574898971, 0.6801810412359487, 0.8762442571869414, 0.5088034451344895, 0.7449210134061366, 0.6148060716051347, 0.805374714695291, 0.6192030912512595, 0.7173471718060224, 0.5840560997204771, 0.6927387927446326, 0.5474155909270118, 0.9834487582396196, 0.5471535220477246, 0.7370465268774873, 0.7883145759415184, 0.8626893254236476, 0.631158792820703, 0.8073124032795462, 0.8809929503254741, 0.5554835158477818, 0.9003874181860625, 0.9561557907349242, 0.784143944489242, 0.960105799765123, 0.9717569542032553, 0.5493029297508065, 0.8405460857432879, 0.924483261063191, 0.821149729307124, 0.9869802748208465, 0.9326413632073632, 0.693856897546559, 0.8867548972917402, 0.6473775233825556, 0.6423601035717417, 0.7956260238292014, 0.9598632348069369, 0.527354195131005, 0.7464550554136677, 0.6438660120171225, 0.6663982266814906, 0.5813703281598825, 0.7342672717556817, 0.5320614783966655, 0.9846733691732384, 0.7152270695596021, 0.8124596519539458, 0.7415966945742775, 0.6089000734340595, 0.8987896941513559, 0.6936700730688037, 0.6548249304448981, 0.7186372849908473, 0.562289620095206, 0.9833728663378671, 0.6154826337678605, 0.7423005903387243, 0.9541629313959328, 0.6781513332777364, 0.9085553804014692, 0.7616078959053127, 0.6602177960535026, 0.869131066379141, 0.7711646294240985, 0.9088056962361555, 0.5365560687935602, 0.7494042950712163, 0.5986158703863615, 0.5688551947072541, 0.7304750393542554, 0.5693873895430157, 0.8098094956087927, 0.8039903603938092, 0.5944395221943144, 0.6183585324666159, 0.8450980658443905, 0.7668463904029162, 0.9585686184421583, 0.510270863979212, 0.907580416434659, 0.6768867415275268, 0.6714481657720601, 0.5340136730552079, 0.816282998018474, 0.6657196863929502, 0.7977625332916005, 0.5359585883743467, 0.5067829080967206, 0.5879404480964607, 0.6033732142662201, 0.9255802743786085, 0.9487313566437083, 0.9126382437145965, 0.6584025510241677, 0.6344717950401813, 0.5212243149278901, 0.6289911985686678, 0.7853771161322478, 0.7368116157001458, 0.6124464786908659, 0.6999342810546201, 0.969556113858413, 0.5249808253851356, 0.8967716113714128, 0.5994365558131531, 0.5285584004099384, 0.5083908878553187, 0.6725817201742241, 0.5234052279752497, 0.9782801998476177, 0.5706534452481979, 0.8940321050216324, 0.9860129339906323, 0.8319981776885451, 0.6396514988177415, 0.5245591818022834, 0.6101396141152946, 0.7829256062742453, 0.5503545635694621, 0.9365002341521622, 0.7226498877003213, 0.7857822323819512, 0.7567203092470178, 0.6337976003204132, 0.8736779894554989, 0.5818865704727116, 0.8671292726025156, 0.6172503711795032, 0.8759753594301478, 0.5172703020829328, 0.9941939790287397, 0.9379548599727305, 0.8670357008524023, 0.6918185882753043, 0.5047133349440671, 0.6224029629795721, 0.6070199457787491, 0.7583530131255626, 0.9609018217225627, 0.7093124074782453, 0.5603752645944902, 0.6970434286211428, 0.8023622571460158, 0.7924432127977619, 0.7486737700102608, 0.9544069093157121, 0.7985794414822267, 0.8955902951316661, 0.9958811780164337, 0.5345965053956468, 0.8668556782960803, 0.6004240732480763, 0.5462895071122466, 0.8310766767080118, 0.6720742620469935, 0.8173656169180283, 0.7092408592540659, 0.55167137714892, 0.8185263946070431, 0.7826587369746735, 0.6394252009611605, 0.9809724252903407, 0.9540044251951709, 0.5873153830617927, 0.7407979674975904, 0.645821470819337, 0.7961393422194838, 0.7204923141920087, 0.5451133797418004, 0.8900770828809743, 0.5852868010348857, 0.735999325585747, 0.7449016817397163, 0.9856256453953618, 0.5033996964997363, 0.817280766166396, 0.640507300148075, 0.9528102474462714, 0.6194279572413229, 0.717386301366466, 0.5134913066619105, 0.5703452841722203, 0.646923072145083, 0.639087919096217, 0.9926795275738872, 0.6339192208734711, 0.80622340571007, 0.6182828683062945, 0.5888273901577301, 0.6804856586102295, 0.9265492614599897, 0.9708350041256082, 0.9319100978413477, 0.5488814365041572, 0.6915945842970834, 0.7725205621370118, 0.9124240159807969, 0.8702408872777938, 0.8516540014963419, 0.9184547377570751, 0.649882624236898, 0.9427357987912472, 0.7764117032243893, 0.9234116284177278, 0.9340824114172621, 0.5165736358360424, 0.5671396291201463, 0.9413918345856404, 0.602011196435296, 0.7005852931871303, 0.6412082496364808, 0.9362458767662597, 0.8612750317028077, 0.8935022494734693, 0.6949783394040545, 0.5018736861226532, 0.5864784835754812, 0.6257629386259279, 0.825736313305912, 0.6516015180326145, 0.7630815089777279, 0.5770112487403011, 0.7385953221231724, 0.6968735387475085, 0.8046966799291952, 0.6082855309026964, 0.6166184134565478, 0.5487387865336439, 0.6318539534673783, 0.8270957876930431, 0.7768663687772075, 0.7047489283263451, 0.6328815461677826, 0.5873918341415141, 0.7646290843736896, 0.9223802486262596, 0.7017971672647176, 0.7603435341994882, 0.8469609902150396, 0.7580144983179584, 0.5029615733711374, 0.8983409455144202, 0.801098031751788, 0.84437137147819, 0.5721773541962221, 0.6267532895860801, 0.6452163700005025, 0.7046233041974146, 0.5619172025191224, 0.9990120619843661, 0.799584245965843, 0.5115313073474193, 0.5302988182841535, 0.8526404922139821, 0.8998976952354744, 0.6525461505159909, 0.8971129819740993, 0.5189338299661115, 0.7173693991781745, 0.767304179823197, 0.7672600899545144, 0.9584276374921834, 0.5346388770146182, 0.7309046623124755, 0.540729214431777, 0.5550804780168137, 0.6195782380569701, 0.8660555785809632, 0.8047027500868629, 0.7763445099494444, 0.5512239919774489, 0.6500824280976816, 0.627179354278816, 0.6623499271281847, 0.9994125484722809, 0.8008210112636571, 0.9243711336430556, 0.9431764791855735, 0.9807234320402094, 0.8534902603855696, 0.6207781091099176, 0.8463007856945463, 0.951092951759386, 0.7391224350254174, 0.7015586139439076, 0.9076995005364574, 0.592469986745439, 0.6899634908902261, 0.8137260231159916, 0.9715547009686114, 0.6355542507265937, 0.8505720155247942, 0.8218664876104604, 0.5664765049510623, 0.8859185518553782, 0.6504271295974272, 0.99988992548812, 0.7436756227849557, 0.7261311037642398, 0.6595777472189125, 0.8009979497342705, 0.863298212176915, 0.9997788000883366, 0.5200507390424609, 0.6070430430883146, 0.5440300183880262, 0.5843154416313381, 0.6436285478204635, 0.7739479961908636, 0.8658479857494854, 0.5431939288073666, 0.9389474394934639, 0.7853304108856599, 0.6679880959364823, 0.7560941377323417, 0.5841487010262069, 0.5974664956154138, 0.6981308650149818, 0.8221712290229668, 0.8529167330074577, 0.851197856122305, 0.9126095832022406, 0.8306463132894455, 0.7216641910501601, 0.7284047686811868, 0.6197832767685798, 0.8943934003066929, 0.5234051944690126, 0.6390350734595551, 0.7151286428970276, 0.9595104257709952, 0.6359265965878281, 0.826441040620576, 0.6992604793546138, 0.5183175494249631, 0.6524521582188731, 0.6605984760701077, 0.5286734181511603, 0.5445994434595676, 0.5906676863394877, 0.9059571958090873, 0.7213387959360569, 0.7470264916661045, 0.8313852352036795, 0.8385472590430789, 0.6531799076676815, 0.9594967681538683, 0.8823613801870005, 0.6763754991251324, 0.5050012350945053, 0.8497352518089725, 0.9499417123785303, 0.78216380003302, 0.7257545215134071, 0.8297456332510733, 0.5591946668328998, 0.8224621079085175, 0.5285272308694646, 0.6149375947331355, 0.5025181181215099, 0.5035814730381554, 0.5111657280962516, 0.6575637192008008, 0.5553944773275983, 0.7105867504914181, 0.6138990294288748, 0.6929420854440353, 0.5482144902014471, 0.7108015181962103, 0.6385442760711844, 0.570684377614625, 0.9687261877321713, 0.5457852597165513, 0.6374058856029103, 0.7090928293173138, 0.7139322652443133, 0.8799158453990483, 0.854141026194457, 0.6112257722888386, 0.544617322727839, 0.9605985182445733, 0.5867828500598367, 0.6323548485701325, 0.876067450264097, 0.7160623332385653, 0.5461398113403115, 0.7658095117379088, 0.6579581166870083, 0.8652491920441558, 0.5783646766783368, 0.8145113114426685, 0.9901576612931651, 0.5720515783631626, 0.8758915437230834, 0.8337286759865088, 0.8255134455416042, 0.977698476686574, 0.61138945213157, 0.8454930085573704, 0.6047880904012894, 0.7616131083730524, 0.9190484475182269, 0.8578874042245119, 0.5914541092177341, 0.8336167826654619, 0.9478934332891813, 0.8071314831554051, 0.9649992499829816, 0.9814060874430844, 0.9727979713853034, 0.5462193550246721, 0.5355184848508239, 0.5229807157825732, 0.6975826738660964, 0.7346861149211377, 0.5492193388668722, 0.9609120062087322, 0.6345624868055486, 0.7810707899548102, 0.8914562824443315, 0.730724795852116, 0.7646281599393339, 0.6971361275194393, 0.6643212110853522, 0.8642169754158042, 0.822973180657278, 0.6412249157154307, 0.5202033155470744, 0.5212620765492144, 0.579083773404921, 0.6159187978891043, 0.6402284730239195, 0.5733968140445815, 0.8984743174035292, 0.567795263164597, 0.8099611893931988, 0.9353296107564218, 0.9464155621154384, 0.5736032928323436, 0.6926328477911364, 0.7289185050275688, 0.6995817951660306, 0.7957837144493024, 0.684487186420086, 0.9150848208197204, 0.5473951777059455, 0.7850532561928099, 0.8677815607437429, 0.6347086744023053, 0.999741127428152, 0.6788453427406145, 0.5479836965580327, 0.862031933758878, 0.6679895046210402, 0.5009751567188716, 0.7860897062843871, 0.9751307327351371, 0.9146627846506691, 0.9136677158421873, 0.980205919527911, 0.9151070292785719, 0.7395173748009705, 0.728658118024279, 0.5845624407119046, 0.5992491434163845, 0.7148479242375226, 0.7183513837476736, 0.6168800276541755, 0.8785624240608669, 0.7022205554291518, 0.7517404972592796, 0.8352993385002769, 0.5381949981947621, 0.5933059875908502, 0.547380969078372, 0.6833135162893103, 0.7957912683571631, 0.9223699774245715, 0.6432202829406114, 0.7522388218217171, 0.8248611301406112, 0.882746580320805, 0.8407033146176182, 0.8792189598327133, 0.7778355351831628, 0.6633119703401029, 0.6266841195116644, 0.89179689636585, 0.9410893325011982, 0.5575029306490003, 0.5911092694103339, 0.5291533854677062, 0.9259844774869306, 0.719851124391784, 0.521492273778285, 0.501269199616677, 0.7470830489740108, 0.7353113825664925, 0.6956672627149559, 0.5508511312638581, 0.9075807791582102, 0.8915165054492754, 0.7446999536741525, 0.6607100376283698, 0.5490255514155593, 0.5351950969733685, 0.8121366308523201, 0.5130928593726783, 0.8428175895620121, 0.8609111498718331, 0.5789162460037112, 0.7337041995882319, 0.7969030318434474, 0.9733893219735013, 0.8636964984597739, 0.8943034935010465, 0.6252030824734816, 0.9719208161094428, 0.8267012814280095, 0.5135346333156527, 0.9861408112993651, 0.937518754239016, 0.8591059331536751, 0.9882588521616319, 0.5860302434159651, 0.5446724065700593, 0.5768523784593377, 0.5748792316797469, 0.8540337860703089, 0.935615130037747, 0.5248306007291339, 0.9752347465695643, 0.6302796112844565, 0.7190752895617782, 0.8493433091501904, 0.91034987963052, 0.5051613495812479, 0.6119117399894158, 0.5302834161081746, 0.5213825664148752, 0.7890846117311723, 0.6887515771631293, 0.934198219811135, 0.9926378797558463, 0.6676162431099677, 0.900844038313405, 0.7226859932041125, 0.6207438277598438, 0.6125462243615999, 0.9203193747689955, 0.5127292216527424, 0.8735946478387838, 0.6233819859356036, 0.7098690902591096, 0.976378246261065, 0.7572105822191426, 0.6721992504438976, 0.7394330762157924, 0.7955612877103078, 0.634636230561066, 0.9621231906419865, 0.5046074417558918, 0.7398585605512178, 0.7854088711648538, 0.8316904412133551, 0.7410373066575218, 0.9086482676939375, 0.6674959433057064, 0.6226247499713968, 0.8979307440675767, 0.726584921821951, 0.6415060750922716, 0.732623712208582, 0.7889679414571265, 0.7020355878030937, 0.9287052514241342, 0.6222901576036717, 0.9962880204220488, 0.7169428184418457, 0.5358387515481573, 0.8765697309017932, 0.8326694979264401, 0.7426235093790846, 0.6031574661819139, 0.8516352133158966, 0.6409900856546915, 0.676943317869148, 0.5751071092477203, 0.9036952062420023, 0.9530367469187402, 0.7318225155383278, 0.5439825764654018, 0.9331672215753128, 0.5756298528907454, 0.9992549271481789, 0.6331155885431832, 0.541933663667788, 0.7114266119237788, 0.5716131710546719, 0.8487829017230324, 0.7717343871896845, 0.8340706455723474, 0.9095040152470877, 0.5930412603991171, 0.9391341923742302, 0.6081008924073095, 0.706567128372096, 0.8154769631999803, 0.6894720948200163, 0.6917779734895436, 0.540860526301602, 0.5039327509198436, 0.5381942045587635, 0.5851524386646865, 0.5287391884507718, 0.5992105417630609, 0.9278904836569679, 0.8580393402852642, 0.5221295701403516, 0.9163350735947847, 0.9011424177585129, 0.5344695053883126, 0.8477044274622818, 0.846832757213491, 0.7994282327665911, 0.954806132989096, 0.921910600653534, 0.9855805079078062, 0.6850562190733704, 0.9549943294284091, 0.6703078256339366, 0.5716221364623727, 0.5674084328983864, 0.9843538553331028, 0.7090828619162943, 0.8185861434161247, 0.9390265562240538, 0.7384427137245098, 0.9595878057208115, 0.9885737005528421, 0.5819689271762678, 0.8369201029236124, 0.5034969722392493, 0.9434509372063757, 0.9664149921137422, 0.5173961374875038, 0.9052394595765172, 0.525878932290098, 0.8670086591327383, 0.8197437226285847, 0.7903307097782346, 0.8989511390158624, 0.8195970199583594, 0.9055852818882557, 0.793154794492981, 0.9363447189649345, 0.7686984637606735, 0.9652905521580246, 0.6144530574078447, 0.8757735520413624, 0.8481350349096357, 0.8452527825795744, 0.6009247398454372, 0.6964854151603188, 0.9780752759799702, 0.8842699136261754, 0.806319290878627, 0.5187860887552008, 0.5763763717043502, 0.6305560565029776, 0.9123384659461621, 0.7958090459634191, 0.8618532703322949, 0.9996921603567556, 0.6507197905318587, 0.563987805895839, 0.790569804423347, 0.6108904528934384, 0.8541836023752878, 0.7296538724905759, 0.8515607079438622, 0.7400719597825677, 0.615096467957343, 0.5475588027966292, 0.860828051290865, 0.7683631477868411, 0.9607184743093136, 0.5206525568247676, 0.8754764917985696, 0.6907219513801164, 0.7954868151127239, 0.9877112436166893, 0.727057887307132, 0.8526407911739848, 0.9720349715255343, 0.7858741150538815, 0.9016903542451391, 0.7449875927648717, 0.7019833253145261, 0.9688529328685187, 0.9616129549995212, 0.5394842404712664, 0.9559432349921002, 0.6032654837231068, 0.7707759221669981, 0.7721336013718085, 0.8126591988201672, 0.6966996457155785, 0.5780199074621886, 0.6030679745197798, 0.5352677882953071, 0.9242580739380943, 0.7972891347306481, 0.7490279639336529, 0.5102110227115051, 0.5815800565498614, 0.7930081831427237, 0.5072632543447395, 0.8992592881163577, 0.6209774029277574, 0.5739173150082725, 0.6995285100599132, 0.7168896423853995, 0.8321716140612414, 0.9771804179180774, 0.9392701067912854, 0.9593460218963225, 0.745371146563358, 0.7055369812843594, 0.8013804002087244, 0.5757197766907359, 0.5861208134230373, 0.8006088321027212, 0.6499693540020901, 0.9416414149561299, 0.8880380564017585, 0.797984617458916, 0.9949044067899211, 0.8624948912898427, 0.502214696542973, 0.6185438132609234, 0.6415409160046486, 0.8563642129813989, 0.8549821909032942, 0.5879684550394499, 0.9777990237828451, 0.8592182555911819, 0.9450692378959578, 0.6390809544397877, 0.6574805132323783, 0.760716098235551, 0.8652608929723393, 0.7921908823086744, 0.887786546531071, 0.9906376180547398, 0.9674027535711747, 0.6587700201436617, 0.9746807387135982, 0.5774376650100036, 0.6246686837861126, 0.7812721333812135, 0.9829628823480234, 0.9957814739683338, 0.7246719126703512, 0.9225862262476521, 0.6763864727412157, 0.7812317904648957, 0.5997892720215483, 0.9559054727453313, 0.7407863245473731, 0.6333700968540865, 0.6520806944073048, 0.8969488077565202, 0.7569996033974131, 0.5178987786983339, 0.8509376326098981, 0.6215440942045972, 0.7670716618605509, 0.6596894991234752, 0.629427118514901, 0.5694355792705816, 0.8660885685997941, 0.7073428502207117, 0.9866638872401505, 0.7404915985005341, 0.8546129623145082, 0.7028249254556554, 0.5781801995522924, 0.5653665563132999, 0.6036664154186215, 0.7664491872646393, 0.645005571935986, 0.5789008066873024, 0.7054468764704351, 0.909415018731694, 0.9399579455460284, 0.640114541817995, 0.8016869026915107, 0.6539256477024769, 0.861164042439762, 0.9024667804221267, 0.6801475257179441, 0.5234557227766379, 0.779424201479111, 0.6932641215981288, 0.6742715051541832, 0.7946127691555025, 0.8022917299192325, 0.8361696049576556, 0.8913345533443751, 0.8348698524349871, 0.5133825850689905, 0.6642775605277886, 0.7973031671294735, 0.8372883376766282, 0.6696913936848755, 0.8807854381659121, 0.8833919079624442, 0.895727053891504, 0.9957166760070348, 0.9948447006351888, 0.5170901653768671, 0.5902679022190972, 0.7599862877882306, 0.7871643819382321, 0.6564964273584235, 0.5411496571583045, 0.5530558020223587, 0.7836826124884015, 0.7453814343643537, 0.9841988105409116, 0.7747828488557988, 0.639732701921975, 0.56153056160138, 0.7617723261554818, 0.9711630468480037, 0.5033562818723623, 0.9045855401922962, 0.6435457936646043, 0.6667061841002877, 0.5587266719444585, 0.6878918004435328, 0.8715642029000599, 0.7141072269402938, 0.7365498814014861, 0.9149468226083839, 0.8384581293064546, 0.9285167063101605, 0.5525944577698176, 0.8335976351641243, 0.5983842991286086, 0.5781231102630826, 0.8178636069835663, 0.958762630349085, 0.6574657200347847, 0.7690131275232204, 0.5623536439141539, 0.5388115947609502, 0.5949717563080252, 0.5249133697822329, 0.582087857694673, 0.9057501570005259, 0.8384108151630475, 0.9202088920392191, 0.5662301225185211, 0.741032348642382, 0.8040832711160628, 0.979863537730896, 0.6101322408062613, 0.7118030807212433, 0.5810810378676639, 0.8846552680364175, 0.9702432113249804, 0.6653261561814878, 0.5648980738123215, 0.9108032272620624, 0.8656420196957246, 0.688743862492674, 0.8650028087610842, 0.8782892227450719, 0.6090911944011421, 0.770740256096174, 0.6330411138772181, 0.9243073992659412, 0.7986952946906849, 0.5919251303738272, 0.6034584225965121, 0.5104251118795687, 0.6527684171579631, 0.5784260988480986, 0.8523265849519142, 0.9160192787498085, 0.8498174904625888, 0.9635612413628656, 0.9613289453893141, 0.7116999806745481, 0.959787350909838, 0.8605890152095039, 0.7373196820635486, 0.8067328626445978, 0.9307705999961766, 0.6582143254044395, 0.688185854429903, 0.6086218350946724, 0.8617231270845838, 0.5664238565901962, 0.6336306562508502, 0.7135342369532085, 0.5131728298782721, 0.5650476003022418, 0.7144267696054132, 0.5468920419995293, 0.8922757849213628, 0.8711265868009572, 0.8508034325412615, 0.9345399174587385, 0.5941855813557226, 0.5061086869599078, 0.5144832831523425, 0.7813789541925347, 0.5988708237562574, 0.6591693010364958, 0.8596502285871033, 0.7089974314581553, 0.8457040806179119, 0.9974205014744189, 0.5681804431955845, 0.9556493068740757, 0.754376760188227, 0.9869169813758534, 0.8260566255937415, 0.5905850134388277, 0.5860361995339345, 0.7137363656383209, 0.5003622922573149, 0.8745953777825066, 0.7547041869474171, 0.8681396621919679, 0.9714062413324607, 0.5532449593888962, 0.5924761584294853, 0.7591166413642323, 0.9262259882288517, 0.6230567081723342, 0.9321940105596475, 0.9293395498964244, 0.8714352574467255, 0.7854902753029612, 0.6474764154802686, 0.7446468871503884, 0.7157248757482291, 0.992056414333372, 0.794626690774767, 0.6577870987570382, 0.7688633605257165, 0.5109073593957936, 0.5115316520178808, 0.7823460568508822, 0.6953948212598968, 0.6223978108519431, 0.6740918898830741, 0.8049592992126192, 0.5109537233409776, 0.768782580987094, 0.5248175929520111, 0.649210840881, 0.9027099171333508, 0.6347622087811724, 0.8508820869352595, 0.82452998693393, 0.6682180457161924, 0.5370472323368142, 0.8765792717939376, 0.5896195778832264, 0.7793898211088398, 0.6807852733823342, 0.8857165223247616, 0.9274605980465898, 0.6511664308575558, 0.7247203537557603, 0.6912505397300881, 0.9393355254980494, 0.8081313231432402, 0.5843816136104006, 0.6399028795675135, 0.9647733944503706, 0.5273161907138701, 0.5901230424316388, 0.9997756167957473, 0.9074615300782817, 0.8295317379592371, 0.8890640790222533, 0.9161484640508439, 0.8660617633982506, 0.7237182556330839, 0.6157595132248255, 0.5059912392357926, 0.6130626082896226, 0.7390551120218709, 0.8813783453146987, 0.7263313940525475, 0.83363556814943, 0.6804103459660702, 0.9886456739752657, 0.5530207674968347, 0.5817130062597272, 0.9722352451593517, 0.978449081776865, 0.7161749996370941, 0.5082646277853642, 0.835517512887638, 0.5127626038985116, 0.9513956511660475, 0.8230108295673256, 0.8514346857304692, 0.7957037836149736, 0.595849692797735, 0.8949150618810857, 0.6436756197230573, 0.7304939171776363, 0.6240825754669499, 0.5122827447890486, 0.6642567811389395, 0.7996252504866275, 0.8862694292217697, 0.6672688670783165, 0.9845860668759727, 0.550587924861712, 0.8808075005188265, 0.910828212142671, 0.5358658043758323, 0.8105188059657442, 0.8335859866224695, 0.8725657605916486, 0.7465955055482627, 0.6704578563623917, 0.5348420744351955, 0.6580991127061342, 0.907916936414283, 0.696800276557179, 0.5144366914046526, 0.9187105373057592, 0.7961484308941305, 0.8884978385777516, 0.5390879666119356, 0.9831193953891298, 0.9361129970072164, 0.5471387010268818, 0.7231822685557385, 0.9225027942611189, 0.7887800029645962, 0.6951153983664129, 0.9055391688411003, 0.5492793430697145, 0.6738298726957093, 0.7579079674619827, 0.6899131171904938, 0.762175675723753, 0.7382406313712422, 0.5499912307156201, 0.994361870128678, 0.5562036919604945, 0.612186790740381, 0.8128507737118723, 0.8870443201955249, 0.6756661775613164, 0.9420869531368898, 0.979758524953572, 0.9084163729794392, 0.9662826139216464, 0.6891785878587249, 0.5550612180788157, 0.727567951737653, 0.5864332368349767, 0.8493615985363648, 0.7440259843509813, 0.8909161880686082, 0.6770731808452719, 0.5768760350655104, 0.8821762824960282, 0.9534113288782664, 0.5719554912458469, 0.6405111138368391, 0.5815688513228914, 0.5720771846013748, 0.5661069913889243, 0.874171867966294, 0.6067622053475774, 0.6400581995914898, 0.9572453920408297, 0.7890596547239015, 0.8523936222267319, 0.5897488251542892, 0.7049705855366911, 0.6050440442881696, 0.7822015328732568, 0.7988582986865407, 0.8740624665926989, 0.9031110339199351, 0.5383349573433521, 0.8483899943004449, 0.7856311528965927, 0.8566024755973833, 0.6411501574521672, 0.5497883020093548, 0.7239698576446918, 0.5704226957888965, 0.8878455653263786, 0.9581611087416897, 0.5746125304246391, 0.6071975023273424, 0.8021916191473095, 0.5429859677490123, 0.5019814191392433, 0.9215644202284086, 0.7035696844912549, 0.9478480817180315, 0.9697549402546708, 0.7809100017093495, 0.8775402807596269, 0.9663086297102308, 0.6290660871820688, 0.972080820355328, 0.6695565178023646, 0.5235600661530355, 0.6924685250288365, 0.5069925094472967, 0.5617974329198083, 0.8295447439020485, 0.7829159659617779, 0.725728000818999, 0.8040176687799041, 0.680039085331853, 0.5961711429309517, 0.9396392832696225, 0.9851861920517208, 0.7415686828842671, 0.8896879750740223, 0.5200975747407697, 0.978625438118508, 0.671251795602569, 0.5357581012873944, 0.5366929792993106, 0.5606790981425258, 0.9661760109519401, 0.7514135776988622, 0.9148151180315255, 0.6678140598733199, 0.5474791427424356, 0.8039213948090511, 0.5632496785857346, 0.6369207033669975, 0.8829430227185919, 0.5534056524566731, 0.6869934521988044, 0.858047164101638, 0.8896874167811203, 0.7576406547809769, 0.8025628494620479, 0.6214475193771477, 0.7363191924980745, 0.881206748524121, 0.5141308797628195, 0.7401264748383639, 0.9129887853934573, 0.9389219895425868, 0.7227209733500891, 0.7642212875650378, 0.5538450046770114, 0.634730293771671, 0.9643514330196903, 0.8056138314536632, 0.9542952257895752, 0.6025138813279406, 0.5131569954309658, 0.5815276450177334, 0.5231108781366178, 0.5146314013071396, 0.7751617758661808, 0.5917993769735618, 0.9213521297644345, 0.7495437071643485, 0.8618647179524908, 0.6629861715587367, 0.8683401357671903, 0.7013922054116976, 0.9378898468800285, 0.5238121353355085, 0.8135522097636703, 0.5530814437801919, 0.6277230771809048, 0.9167399160540429, 0.7831460146510434, 0.9212635562300012, 0.6276229839250705, 0.6730969350731308, 0.5206421543401765, 0.5814161844553729, 0.849072880771317, 0.9248451946197416, 0.8715056427527914, 0.6844965560384219, 0.5166790059766799, 0.5387678716815376, 0.6755488703887809, 0.634627422101314, 0.771838289283509, 0.5971236913393523, 0.8596496145631629, 0.6300834227940637, 0.7774044077658417, 0.596991282738253, 0.7514523460685416, 0.648753340733798, 0.901928658956858, 0.5116358288094888, 0.646440955710157, 0.8109014058448893, 0.7191458453745763, 0.7843027889717488, 0.7537498195574557, 0.729733532407081, 0.5051628745937855, 0.9183660586948441, 0.9829234226256259, 0.7986008874248918, 0.5985195822692633, 0.8468420292264507, 0.7301097653335816, 0.9125579155154893, 0.5492226451987652, 0.9153515137280207, 0.861406861179594, 0.9024858571720766, 0.5874879244590389, 0.7519113807739175, 0.8388383007520952, 0.6733568539886232, 0.8844261341640716, 0.8122712163528725, 0.8001660329673754, 0.6079309753074615, 0.9600831083985466, 0.9201116837142522, 0.9320689214398996, 0.6781239469028345, 0.9740178359499556, 0.7602259437509794, 0.8512695437307871, 0.8117998215671982, 0.5903040884762486, 0.725655124242613, 0.5392381829603776, 0.8051339598963196, 0.9346972941430427, 0.5217101514413426, 0.8240189338386394, 0.7377032366452366, 0.6740953195101368, 0.8796813775770744, 0.5878321441675508, 0.9931218349628694, 0.9663618658190962, 0.6820673467693161, 0.5494535972593972, 0.5009355156088648, 0.6027687266686448, 0.5157131701214632, 0.5325356440919007, 0.696869013881108, 0.6534844903753683, 0.971670425320369, 0.9567698811276706, 0.5741235067857151, 0.6283362823078014, 0.7631114543525577, 0.7222677948246493, 0.8655754718240642, 0.5640834415307681, 0.7826820175551163, 0.523491230524467, 0.7945184909365464, 0.6318543283772753, 0.7010243982480007, 0.9209106032244747, 0.7241075124366128, 0.5101760142540155, 0.5813507233701534, 0.5131012107245119, 0.6948711152129973, 0.7440757868440198, 0.8903069718537323, 0.8843713187906124, 0.8502611676149825, 0.7723748671689096, 0.9170577982704904, 0.8951317428689192, 0.5208132451971959, 0.6605796435001371, 0.7530269841465126, 0.9768882831206391, 0.5180626458184772, 0.8367734287838514, 0.9340194529675446, 0.6968990134838033, 0.7463107739225867, 0.5994268134193323, 0.7801801975995362, 0.7951300125522959, 0.6852590589825951, 0.5977941641844999, 0.8997818123976863, 0.6341383537979975, 0.8551002210896879, 0.8604022006971612, 0.608171918111712, 0.8578186566024821, 0.8828301589993961, 0.7915056988279767, 0.9227878162973613, 0.9004372549911882, 0.7405002628398876, 0.8424637358647908, 0.5725228076522526, 0.6314791637274414, 0.6330655021118738, 0.7434744655970529, 0.6067836505785311, 0.9537199223186228, 0.7077092955037312, 0.539859011614532, 0.7912474350921144, 0.6829139403493263, 0.59076765903373, 0.7538925648399404, 0.7794424909702798, 0.5139311543040181, 0.8440851539369153, 0.7631674711700541, 0.7512870411479073, 0.697107158605774, 0.9258460389964642, 0.6802018923245703, 0.8837306838917407, 0.8047447532312753, 0.7471128555292891, 0.6097267584695563, 0.9349551948259096, 0.5196988119599237, 0.6546951109566161, 0.9517302524274285, 0.9333587213395651, 0.5307503420732448, 0.5537068164794935, 0.9072269537249296, 0.9994244976722308, 0.6364272616773923, 0.9431290239812659, 0.7464464376070874, 0.6757854424509881, 0.7248734149653595, 0.6427222984530225, 0.6446199486880407, 0.5501787229397079, 0.7170189496335235, 0.6806519345066255, 0.5456454312170026, 0.8982233961359329, 0.5763636969637304, 0.8389728379280619, 0.8170962816172173, 0.9039095085783799, 0.9570760506359952, 0.8555112561910011, 0.7776477448112824, 0.6480686703659473, 0.6095073337945953, 0.5439177387329629, 0.5827386785051907, 0.6984863111237949, 0.6094695200789404, 0.7991532532585519, 0.8257834340012351, 0.624260586059254, 0.9654278269547466, 0.6422401703087176, 0.7179687792291318, 0.773629545417335, 0.6069404005367025, 0.5019419819676507, 0.7109983244901682, 0.5922366461674187, 0.6213120764760578, 0.8274158990263939, 0.7470360129621278, 0.9682490223468923, 0.5060298827389237, 0.8130263651863495, 0.9361047772060708, 0.7141361302224611, 0.9614919119208271, 0.8133780692658108, 0.7957652364054072, 0.9587844310891562, 0.5012641388486292, 0.6702546874871884, 0.7181930687804783, 0.5475934937062197, 0.9077485052515553, 0.7374460110517034, 0.6129968859438502, 0.5443614489265335, 0.9099787509932014, 0.9391862466153359, 0.5160831519423501, 0.5331030680234368, 0.6085196876559023, 0.9197478080407717, 0.7244533574986316, 0.918211230571183, 0.9158318184146945, 0.6543816655014331, 0.7706778631692723, 0.577700034431827, 0.7829113440321709, 0.7805265530678182, 0.9088245054816273, 0.7427476498400686, 0.5642549070989611, 0.5909072029942044, 0.8210401716592791, 0.7605893176881235, 0.7898522286215739, 0.5002443280508269, 0.7998164346722306, 0.5031208065116746, 0.7189835494943358, 0.5209853689483345, 0.8327012692982496, 0.733069578371917, 0.669348650236681, 0.5692986107557922, 0.5379397234883584, 0.7618418567864398, 0.5378059536607276, 0.6028181826790269, 0.9134732317630603, 0.9094500028735376, 0.7043526357923042, 0.842477274637077, 0.8906544497229134, 0.8912739704458903, 0.5512579677833914, 0.5015515943915518, 0.7291920234612446, 0.6186554319806441, 0.9430172598086162, 0.9940499177012042, 0.9665825243626791, 0.8663018620595794, 0.661630195515889, 0.7028530592935762, 0.6657016405420964, 0.7918253341734601, 0.5841974142759857, 0.9327487805057022, 0.5777508081229914, 0.5384001768266955, 0.6365111959692462, 0.7444817874284205, 0.5775985197460395, 0.656793501415812, 0.7178845356169077, 0.5388813123015783, 0.58663633108008, 0.5435289747744156, 0.8339488087317906, 0.7523073121418233, 0.8959880103419473, 0.5862534648691164, 0.5514651070520683, 0.9004076904890856, 0.9857706831506984, 0.7041905781637753, 0.5595618270326488, 0.6209836989939796, 0.6716868711345212, 0.7058231438495384, 0.6596217667570321, 0.7759060807651815, 0.6000906129188173, 0.9638965567892306, 0.7602843611799145, 0.9697523313434477, 0.7735144862639944, 0.8079650809460769, 0.7220302343135171, 0.6167934330420328, 0.990842266852065, 0.9818820202803378, 0.9439116886068247, 0.6435100557144364, 0.8083906151097667, 0.811367871074948, 0.8643625864850405, 0.568645091650043, 0.7868528250931204, 0.716429908148722, 0.7192356449602161, 0.5685922272570378, 0.53307681432899, 0.8642362934427, 0.7670753516896072, 0.5323375688921302, 0.5023807968190674, 0.6040210260305032, 0.5871623914916063, 0.7981979291839811, 0.6323842145962274, 0.8343377148298038, 0.8360760987991576, 0.8011266687807099, 0.8462982901638997, 0.510974355772057, 0.5502975891623563, 0.5092891614162098, 0.8662195090196088, 0.9105362086083051, 0.7603925325028458, 0.9811249781012019, 0.6345170773859661, 0.6437361618629099, 0.6258681116833386, 0.5659055650276492, 0.9722716406279829, 0.6543305703073876, 0.9784884065618973, 0.731956412345895, 0.6498872510227904, 0.5377598283232983, 0.9599350308520167, 0.7671576499703711, 0.8557437023684127, 0.9913697472911666, 0.5620005293446777, 0.6546384653074127, 0.7407924522069609, 0.8719753274645448, 0.7433981367047274, 0.943000843659443, 0.6863540185796304, 0.8158702594836582, 0.564654423375825, 0.5825008018300442, 0.6349646271630278, 0.8117608913923497, 0.9863572724218606, 0.5057063234836041, 0.5642542073075931, 0.703192659872173, 0.6848277667365472, 0.5027924941147315, 0.8826041873581509, 0.9622484957788582, 0.5154399620522981, 0.6512038889575615, 0.6034470764485517, 0.5868456860372102, 0.9532254128770455, 0.7155635535367, 0.8674537168688475, 0.8689976300544805, 0.8395840645772581, 0.6519823014133669, 0.6458394854771017, 0.8807111188588518, 0.8597984944080699, 0.5105267936468991, 0.9041482641825292, 0.673071772030878, 0.9853506557143974, 0.9563462651937849, 0.7553651933919601, 0.8609276788269911, 0.9377626414624485, 0.7085466284270665, 0.5380609658993194, 0.5769745521584884, 0.6429605596537553, 0.9334196877338132, 0.869088071009021, 0.5542867725126206, 0.5455441431086399, 0.7570592776023679, 0.6878771981104476, 0.7621718695392916, 0.614451220168083, 0.6581920491010849, 0.8272860389205738, 0.7434338643209233, 0.9029543272848838, 0.5191237817550972, 0.9630139430938769, 0.6320146278171783, 0.7601143809898432, 0.631166448693699, 0.9039925869488541, 0.9312671005564059, 0.5272340043910331, 0.5648191757202156, 0.8391213165719387, 0.8387788545650197, 0.9465786665551431, 0.9825894335533958, 0.6326625255882465, 0.8029180954086288, 0.700707325872816, 0.7510416624408316, 0.6310311956092708, 0.8879844406367409, 0.7312010525640519, 0.8989405844791931, 0.5585854227338884, 0.847225732368021, 0.7481424254250224, 0.9791703007689456, 0.9598962947617715, 0.6445894694988271, 0.6496382979637148, 0.9824097972378415, 0.8935136060082973, 0.9939411099323159, 0.733476911427903, 0.8047376005025575, 0.5764847468151562, 0.6165566480948672, 0.5949417701539313, 0.8337463507559204, 0.8272948332596655, 0.6918534516230359, 0.7154287644891182, 0.5076534689746579, 0.5225962597505889, 0.5019272349744031, 0.8777200472843862, 0.8803956415827006, 0.5810659590361672, 0.8051677870967955, 0.8624209072485816, 0.7638489381677288, 0.8789637509304913, 0.8276066589854281, 0.5985337551656449, 0.9398740070720621, 0.8790382813592004, 0.8451332168992234, 0.7172739999246001, 0.6961510419265475, 0.6444858030798932, 0.6220246580250515, 0.8587530544344959, 0.5547575462456029, 0.8011903912421043, 0.9814082846891556, 0.656145445228412, 0.6071879477425018, 0.8682163452611386, 0.645756128779672, 0.6769684558318505, 0.6407917410938773, 0.6661696902348953, 0.8235575818993683, 0.6824954378659567, 0.984719436148437, 0.9250791135430787, 0.5055508921635106, 0.8358966952075072, 0.7109597404908453, 0.9445886973105612, 0.7127243210169325, 0.983269324261185, 0.6483290172360278, 0.7347045891274089, 0.7436270874561357, 0.5327360502664017, 0.9406991798503702, 0.745515694575565, 0.5851884047983056, 0.7759557396650584, 0.9242300216431869, 0.5840984598664918, 0.8605077956492089, 0.5129066947519557, 0.6248026304739389, 0.9682174377173124, 0.6093862358177483, 0.6262438325951727, 0.732235663491267, 0.9411330784095528, 0.530133167183949, 0.8085113407679164, 0.8519850023861705, 0.896132822019554, 0.568725968403115, 0.8842677052572654, 0.7181975232914759, 0.8781823406506252, 0.7691582263482172, 0.73742814763066, 0.5682678725466824, 0.70575748895728, 0.6255342690622463, 0.640550963243602, 0.7544101698188146, 0.9029575065116929, 0.7069512920810126, 0.9884234312899312, 0.6306705772879855, 0.8999776980443249, 0.6089953512226542, 0.8322821067338019, 0.7016457796365709, 0.7336008102018577, 0.7552803097090752, 0.5658690972066217, 0.5335195632385039, 0.5877143093919522, 0.9964911585615266, 0.9925443072572506, 0.5064442454823401, 0.6010399303929763, 0.7618083952743788, 0.8439823322818492, 0.5627690533920193, 0.8003476642577758, 0.5833527568930527, 0.995159463359353, 0.5854222910006013, 0.6511806088798664, 0.6693227833075349, 0.7878387699785636, 0.7376232559583626, 0.7508077697936417, 0.9310794058342956, 0.7641011133592995, 0.8106256917993575, 0.9167239379453358, 0.5204339485053051, 0.8668812789280864, 0.6107754335343549, 0.5688135504768568, 0.9752073914413845, 0.7254165539578459, 0.6217923723681764, 0.9644738475385858, 0.5815951639822664, 0.6720820681977172, 0.7532693538471105, 0.7902234421068473, 0.90593766169042, 0.979417526812945, 0.5705767367676875, 0.9650463239283835, 0.9893699558940685, 0.5964458696671714, 0.5492346574453109, 0.555014433865212, 0.6191865546849065, 0.8709421716792447, 0.6488992324293807, 0.8278939438694104, 0.8584300688697333, 0.7536339446333064, 0.8963859167375023, 0.60481588547373, 0.6914747348951836, 0.606890056376906, 0.6322607171832318, 0.6239830634886994, 0.9455535561162123, 0.6395081361723072, 0.840345502322708, 0.7503837351951737, 0.6488785683139052, 0.6491280645967958, 0.827244709595983, 0.8656410201176725, 0.8360242313397803, 0.8519397053554809, 0.6569373986980087, 0.515726088528587, 0.6096142040054935, 0.7870532402826746, 0.6852292997211741, 0.985837365772729, 0.6215269403417252, 0.7557640865149651, 0.8116420715679502, 0.5886047879695563, 0.6399940502226789, 0.89516494751656, 0.6462497169888969, 0.9021322029991294, 0.8397751962506956, 0.8549283948300388, 0.8896965888577313, 0.9994969368386342, 0.5916296344042289, 0.7775156984939253, 0.6003573354951599, 0.9259017358177601, 0.9615079942983011, 0.6101688209895156, 0.6564179139307196, 0.598913782855286, 0.6852404691377147, 0.5014372620172367, 0.5642948454225768, 0.9103628134784024, 0.5072645106653464, 0.5657497770533899, 0.7983225088464792, 0.908868241190633, 0.5370940469656222, 0.6169916226874252, 0.506056953163279, 0.9728844123592698, 0.9959790299691772, 0.8497527687244444, 0.7255995268338282, 0.5473304254679923, 0.7056402290819346, 0.6292037478506631, 0.6036343255150762, 0.8119116775336417, 0.5429842268218109, 0.8132441895298507, 0.8637732011408539, 0.6146850832840969, 0.9056968601348566, 0.6610574043288621, 0.8377478133386879, 0.6257353394598137, 0.5924969685778869, 0.9093226884823584, 0.8726298047258036, 0.81771380720074, 0.5108569456798902, 0.8623561545994842, 0.5528440486116122, 0.9464192988688546, 0.8264275923019755, 0.8943992348648319, 0.8602593151780197, 0.6031692386170923, 0.9489049376282899, 0.6558637988066535, 0.7257244270531142, 0.5750791795733836, 0.854922552708781, 0.5724905691978543, 0.5030070833518728, 0.9760314747369323, 0.7803537336542061, 0.7915113996090328, 0.5450196976333284, 0.7282309375117361, 0.9373406292964664, 0.6730173219872442, 0.8272957832889152, 0.8475779987358586, 0.9031479597647556, 0.5959877046387367, 0.6397626479457883, 0.7488557979484289, 0.9864023936378087, 0.7173899494517606, 0.888936644954238, 0.8261597549387008, 0.8501015911517744, 0.7363226370131633, 0.6005838279232183, 0.6925718411867585, 0.6517207657015536, 0.7706284510446493, 0.5636173544212161, 0.8356897758729365, 0.9908470590094897, 0.6541101257711683, 0.6584076362569351, 0.7599856988827247, 0.8147050292478689, 0.7473419278169247, 0.504804801869275, 0.6105894426769705, 0.9181291487998058, 0.5537831064452882, 0.8170643262948748, 0.7162482235995039, 0.9886240612054089, 0.5110565216379024, 0.6427440019284822, 0.7885560773598256, 0.8462827460434599, 0.7509084706639908, 0.6789381963034197, 0.8075960520901302, 0.5624759563169894, 0.9559097142755835, 0.6865887939502742, 0.7375761952646871, 0.612539887725102, 0.9580255063718415, 0.5064951333400114, 0.531525607823324, 0.8714071109326916, 0.7495542900938645, 0.825662137079809, 0.8132807100666197, 0.6049316803583269, 0.9548343671651307, 0.5051716964384148, 0.5904295753546908, 0.5981130694374869, 0.8653840638436197, 0.5984891241184532, 0.7761846925148379, 0.6017809935508605, 0.853549807848049, 0.6634772153156158, 0.5987773419003931, 0.6376695449774898, 0.6888129437733983, 0.5603616018780817, 0.9278431345043496, 0.7430999477771376, 0.5246332795537713, 0.9206335323498558, 0.8488387259310788, 0.5177309805226812, 0.654713858476472, 0.6705154066900063, 0.7777695443340952, 0.8528402314011359, 0.7642924764067486, 0.9606450798603361, 0.673423898835038, 0.5916216063582496, 0.9544295314473207, 0.954819337313531, 0.5211693153607136, 0.8887009830417434, 0.53651261258855, 0.5840124969262872, 0.6626737139846071, 0.5230313549368064, 0.6594159445108357, 0.6870273083953902, 0.9387351441113834, 0.6773068980224695, 0.5025777860339243, 0.8308608655586804, 0.9828655219858631, 0.7497076233960563, 0.6004591345003433, 0.7995774433551759, 0.5434085349982047, 0.946219868156104, 0.9419488138649653, 0.7511572955582928, 0.9552647286328394, 0.8091352732659876, 0.8233880358735957, 0.5470478267800705, 0.7259033626681706, 0.9224905972563757, 0.8215423866879663, 0.8367365728915322, 0.701117896027582, 0.9197523237748839, 0.9094048134741793, 0.6479275221023179, 0.6044405518316216, 0.7516892608389328, 0.8196944477266224, 0.8038110528484421, 0.9013215167651474, 0.9202342265121138, 0.8884549802637272, 0.6330590318784393, 0.5323650801217068, 0.6938097055870052, 0.7938716325561505, 0.9065872387540936, 0.84753757823935, 0.9601809369591503, 0.9212978008159873, 0.7675381660336724, 0.8779723433397808, 0.6489232494299608, 0.5282668786090474, 0.6104126324744239, 0.8692281150510452, 0.8132776370837072, 0.7388103885132251, 0.703183950059729, 0.6471262178549831, 0.8614143632523463, 0.8585846667562134, 0.830712528718088, 0.9339916394948523, 0.7090503368231682, 0.8911105439630655, 0.7889950593780457, 0.9626343216883517, 0.6629274180484475, 0.8700078390201028, 0.948979469319337, 0.5314851147518904, 0.7068583395676591, 0.6686263214618018, 0.7517881534367319, 0.810168710402029, 0.5066683947336268, 0.64989222435833, 0.8100073382598915, 0.5963341173233585, 0.6280293291361276, 0.9253648851733247, 0.6798870310418081, 0.9827578896356045, 0.6064304220372696, 0.7594582688052676, 0.5036513497561357, 0.6863147622046138, 0.5873763047088736, 0.6881890582890196, 0.6455151383995051, 0.9573840709657251, 0.5785935111104532, 0.7897870193206045, 0.6191443061075595, 0.7535314275483938, 0.8371593066504684, 0.7593783401542077, 0.6093572186333034, 0.9847876835454383, 0.5105650623227629, 0.8077999414943847, 0.8458683993199201, 0.7767419398993092, 0.7347664272782725, 0.6999791393810377, 0.9133639774101612, 0.5677366513176303, 0.8374838896484318, 0.899390430032428, 0.8119294739495841, 0.8379520011537234, 0.9973937317848933, 0.6375323462410245, 0.6327014839015073, 0.7979648384759352, 0.7315163411681528, 0.9744138848842039, 0.898644368768119, 0.9238177058550975, 0.6256757870986276, 0.7322375545878754, 0.9683908247121904, 0.7098550007238671, 0.8608250263455677, 0.8178925520538638, 0.636344019703265, 0.6144226915983587, 0.7936450832531458, 0.6555517429318792, 0.6494045865054234, 0.6925161590475499, 0.6052960230471978, 0.6622836320317244, 0.8678539497733395, 0.7807440005184705, 0.758913639220721, 0.8269163742200724, 0.8296188441556303, 0.8822794654831986, 0.7187177160159532, 0.8986250355899204, 0.9065553630985991, 0.9545976459143686, 0.867153676641671, 0.8521943259526299, 0.8801566942021576, 0.6529403054728264, 0.8051939705661937, 0.9123517802992367, 0.6914721389351413, 0.8096694329770933, 0.8723346673835364, 0.90626221346268, 0.9685309993780812, 0.924710385555727, 0.865728160034549, 0.7033337364197353, 0.7837724236726786, 0.695709407409502, 0.5189658312699226, 0.8504046267756563, 0.5692892016366738, 0.9945399681915932, 0.699215394536081, 0.6082943607025211, 0.65387672566277, 0.627918350773786, 0.8643230697775048, 0.9087007462318417, 0.8185472183087601, 0.8058808103933623, 0.8789374138020575, 0.9104419583928858, 0.8195165648715328, 0.6468881923158305, 0.7293621512594028, 0.8233784122061543, 0.5765175664347029, 0.5581808140587793, 0.6967296837610508, 0.6945323315344021, 0.7454126796412497, 0.8509599339219298, 0.5881278816469291, 0.505284663537753, 0.6921431996538607, 0.5956727662837595, 0.5532398346116323, 0.7333162400771185, 0.5709937837287382, 0.8999232170080149, 0.9877657127403636, 0.5196232965413228, 0.7714731603456395, 0.8244790830184874, 0.6649020776853606, 0.8556878682025264, 0.7533365684011504, 0.9123087658837592, 0.8293757372088452, 0.589759596739486, 0.6149811137782624, 0.6700518719892272, 0.6739837724353882, 0.9626851270734134, 0.983293963549243, 0.8522695393942038, 0.5991723484984433, 0.7295288001112301, 0.8462919188749246, 0.741259400016663, 0.8735727296582121, 0.7106538761599366, 0.7943751420901353, 0.5550614768159168, 0.9207852779909111, 0.6509652652026348, 0.6163546756535403, 0.5285827218925498, 0.5720847531832052, 0.7716168859926427, 0.8480824192897927, 0.8453715645456137, 0.5207355561396709, 0.5473672592782781, 0.9993084567175854, 0.7200731458134129, 0.7573368388093092, 0.928573362115726, 0.7369625776801781, 0.7869840309505785, 0.887230773346164, 0.7794092798316894, 0.6403035093521214, 0.5610026339160135, 0.6066807519579412, 0.8633303734051267, 0.6042702945777755, 0.5191695449451548, 0.9373166415851883, 0.9908403221896981, 0.9124658889334527, 0.8392243121535534, 0.8896221112747409, 0.8874720737625665, 0.667311620996227, 0.9407949926943453, 0.5191353662751103, 0.9698950255820211, 0.7040107400412206, 0.6344695108496734, 0.8891936198298386, 0.6112805784776272, 0.8663412325185186, 0.8801539193230663, 0.5581357017973567, 0.6234653541294666, 0.5139083150453949, 0.8670385287339422, 0.6149594903667885, 0.5816480767766172, 0.6918812454820991, 0.8927797824458006, 0.6432287444195803, 0.5852068313467454, 0.7601511091678962, 0.8600213486287491, 0.9444383602322752, 0.5628225204946058, 0.7447521724938346, 0.5474134013336285, 0.7487600792961704, 0.9160958156581893, 0.8884410568251169, 0.6884708185874356, 0.6029489280769067, 0.804142967544466, 0.7289763763345651, 0.6786549966171881, 0.8978951772671178, 0.9236484725142623, 0.9091636006834841, 0.5376267059041278, 0.8205002735204864, 0.7637229819968374, 0.646325746788429, 0.974961061020478, 0.9158501239850737, 0.8847142161361419, 0.6936386623017738, 0.7196608064453478, 0.8428604887915115, 0.6497534359260033, 0.9109329301132538, 0.5070847205074644, 0.5004248827966973, 0.7766019836009908, 0.9270903711228551, 0.9615517313729486, 0.9916603907138595, 0.5133342535235541, 0.7532926052140212, 0.7159820228138578, 0.6824964594774869, 0.5272042782951656, 0.9343391314006273, 0.5816057508031804, 0.5492175274966788, 0.7895903267325906, 0.8672968885352994, 0.6983515263492974, 0.8952534801293488, 0.8121932030500669, 0.7435603517592642, 0.9750717633525854, 0.8070091758412657, 0.6373970142918203, 0.540217494917437, 0.9192672066974927, 0.9295568181067508, 0.5542487579919382, 0.8087122421576391, 0.8471476819793784, 0.7990868549027488, 0.9438330225500774, 0.6963369785439262, 0.587429970961834, 0.7036477552603118, 0.7157199656574094, 0.9633070382656209, 0.9543742801547052, 0.9056140356040991, 0.8436264997878062, 0.5005694253352996, 0.7777532361606059, 0.6253877525048144, 0.5882977700891712, 0.9243521462244539, 0.580746406747275, 0.7278554122374569, 0.5688819314789623, 0.7443259226523748, 0.9837484330497972, 0.8516339947656746, 0.8654631746812375, 0.8684024206840553, 0.8125910638321081, 0.5819590744917127, 0.6246188486785396, 0.8879590885816396, 0.9079932023894417, 0.9319723444239794, 0.6285710597279983, 0.5330888583543547, 0.511760843258107, 0.6864809427694237, 0.8838240315345242, 0.5267501234451177, 0.667142510945901, 0.6189704718834311, 0.75624467934352, 0.6645192530732854, 0.8285746649467567, 0.5766749116256977, 0.6385918901224971, 0.78299743621168, 0.8293967217803871, 0.635328984681851, 0.6024301755264844, 0.63854321016406, 0.7415135073846422, 0.7800853230869405, 0.9117591899921496, 0.9798528977934509, 0.658673398519259, 0.7735355782009325, 0.5942306217039408, 0.7063932790730842, 0.9089717472236966, 0.6149750659817625, 0.9199942892789267, 0.9284438012273079, 0.8548714007042464, 0.8386794120905331, 0.9551513020328215, 0.8307507902026604, 0.7402245139269528, 0.5479889023385571, 0.8330091650536465, 0.9493376091247565, 0.886046214223954, 0.8649236052445208, 0.8713762292094216, 0.6460853990677584, 0.6102540310308394, 0.7308626576152464, 0.6321690188763737, 0.795101546852303, 0.8208752677058908, 0.9227072079734111, 0.8660406257233291, 0.74927009570284, 0.8599533011373466, 0.5617490205349644, 0.753720061642039, 0.9712578651920273, 0.903345902372914, 0.7077400370496085, 0.7686885946766112, 0.8258959476965846, 0.7390201459279159, 0.9967054980934782, 0.5176393674039207, 0.750227695159098, 0.5506534629879529, 0.5031379396931703, 0.8961322478512255, 0.6029678091505004, 0.6847675125563111, 0.6398627383507978, 0.6829983735669984, 0.7231587602260099, 0.8555465559254543, 0.7690392953343754, 0.5704118930176412, 0.8614547870287482, 0.8334116198098314, 0.5539631095481546, 0.5281955394411179, 0.719278042398481, 0.9056371611356642, 0.6999105149449708, 0.5118789871087255, 0.6357373736906978, 0.8836425228649623, 0.5638947291155398, 0.9452344695914654, 0.7502500048058762, 0.6212759364585603, 0.8423113669264825, 0.7611546026174281, 0.5093794638453754, 0.6173957366633793, 0.8361179794041658, 0.7593958683181833, 0.8680704095226071, 0.7224091468504003, 0.8183994996038275, 0.8992279637923577, 0.7475297270256457, 0.6622899816255687, 0.7813413262826169, 0.5346286161612535, 0.8561171826118733, 0.8439885014981172, 0.8464260378032804, 0.6406634583312949, 0.9057524228992531, 0.8338733804842902, 0.6551243167841867, 0.828801122992843, 0.7676359682465841, 0.5812742286387731, 0.6054979114158603, 0.9259591136812428, 0.7047583555534254, 0.8986201627692216, 0.6300138808812921, 0.676445357664316, 0.5472604598440279, 0.9753623179560279, 0.7111160680152211, 0.694370091702911, 0.5842893580848624, 0.861575276776124, 0.5279173867643172, 0.7701736641642447, 0.6374356701393595, 0.8837444050916387, 0.7495676606269823, 0.9483210244528832, 0.7675923205441565, 0.9815448067513645, 0.9722332757395891, 0.8782546850455637, 0.7446324761282954, 0.6155820488973309, 0.5917042639725987, 0.968053445636958, 0.7279085475634429, 0.7528020821334218, 0.8456411148875451, 0.6244217977201323, 0.6013529067810458, 0.9032648419904796, 0.7309053853873206, 0.9935757430392582, 0.9915463246319267, 0.6272643774912587, 0.8664882178982136, 0.676005748423969, 0.6139395229223419, 0.8060789859817301, 0.985452729192629, 0.7370171806662479, 0.9620486601356721, 0.7020814777694976, 0.7784047560414229, 0.9652585798332265, 0.7517819124593432, 0.5362579769182947, 0.9355990202000078, 0.5962313643960456, 0.8552045455792752, 0.9596261961905435, 0.8425998823381122, 0.8840077925457901, 0.9701444232917792, 0.8315070937425882, 0.8103271895754176, 0.7955879653061757, 0.7863671769398307, 0.9830559450321177, 0.5392516434449254, 0.8953122842988523, 0.9130212969828793, 0.8854752308060458, 0.825593089319442, 0.9241690094184081, 0.5818445348353682, 0.8647515117362743, 0.968045210188946, 0.6463686476851941, 0.7137744332146938, 0.7596962826665006, 0.8933883124136135, 0.5587042118240655, 0.9991370777243601, 0.7812640308463866, 0.8796630423953147, 0.9788226852178592, 0.50784714075419, 0.592746318629285, 0.653881781848894, 0.5442943216411366, 0.9023465806345357, 0.533335705319504, 0.9278890689569119, 0.6705841675504274, 0.5447340044580664, 0.5160189507583288, 0.6833136513756327, 0.6997426042384056, 0.9547991967825428, 0.779694365931547, 0.6083260535658724, 0.9876377758140009, 0.9564916970788918, 0.6393516905097993, 0.9948856265026791, 0.6891663435311308, 0.8223923084641599, 0.6294804504841888, 0.7226826917139191, 0.7604645123146935, 0.6572741048271242, 0.6555212906869432, 0.5748580563549761, 0.5949992252565864, 0.5784544428435836, 0.6149040319845535, 0.9416723524741042, 0.8074758519373242, 0.6674692732920824, 0.5501453708484146, 0.5289061794470495, 0.5628630481597329, 0.6658420351120993, 0.752072114388936, 0.8042100229020877, 0.9093933523203446, 0.5881337421218846, 0.6987762872481036, 0.8721552923471605, 0.7830782813273665, 0.903733587378307, 0.59481451558484, 0.8060731804743465, 0.9351647375022287, 0.9167953180484367, 0.5133093678399911, 0.9001028385381189, 0.7962862658433963, 0.9001193115450024, 0.7662013819755804, 0.6981004516989767, 0.945905004497565, 0.7499222299876712, 0.8247504767830911, 0.5304668012080825, 0.9026856335898386, 0.8527279530161023, 0.7236904468105401, 0.7613413140460152, 0.5257197306068868, 0.6589235444316217, 0.9960864050042771, 0.7810416474606809, 0.882639704752546, 0.55282789863828, 0.7074138888334114, 0.698689263423723, 0.8221064026959023, 0.9009606682546801, 0.5306704249114016, 0.665406747461869, 0.6454814629109391, 0.5073758518959945, 0.9798588457068611, 0.9570930480039581, 0.6084484275270663, 0.5437276446037996, 0.6481855283787394, 0.5283764857310453, 0.8220719371201317, 0.6987497005803172, 0.6610878059863087, 0.9819164716736242, 0.645451728195831, 0.5481920130990715, 0.8063572316690885, 0.6178112541623744, 0.5383589364251395, 0.5105233758296606, 0.9923360923462561, 0.7934620443646605, 0.8325001740337321, 0.8279086712930916, 0.7543585213440318, 0.7274119895665285, 0.7560987114222941, 0.8106198918459696, 0.9751422512941106, 0.9863799601468386, 0.9105391200293912, 0.7734676339781903, 0.7044328219452912, 0.9053593933980058, 0.9128618076921492, 0.585948749185881, 0.6864377851485894, 0.5181795035538768, 0.5097486322497915, 0.5993325828312692, 0.9762633015047725, 0.6853451937776592, 0.8019927831613782, 0.8390158335851726, 0.8702033952653155, 0.8128133097838508, 0.5311096724274476, 0.656514220972674, 0.5925784238107961, 0.8273505956702605, 0.8775483602455358, 0.8956604465748104, 0.9175619993450279, 0.9794242565414668, 0.5246179288137531, 0.5296388298632931, 0.5653583273233962, 0.9397050897698782, 0.5650309766910566, 0.7900032752422816, 0.8051125980672069, 0.9924424738300098, 0.7192265441945045, 0.7207806485423227, 0.916463958002165, 0.9230681550824207, 0.8254910893773966, 0.7935930116563402, 0.6377384295202404, 0.7347438826142761, 0.6841790070464302, 0.717998732110559, 0.6946076482045869, 0.9535153955203588, 0.5942129705160455, 0.9474179865549814, 0.8440698885552522, 0.6508922865105019, 0.7631806437088835, 0.654001118269409, 0.93380202538125, 0.6744774198265531, 0.8031042373494406, 0.8875673664383763, 0.6086596327146492, 0.8183853258039944, 0.507071801826898, 0.5765069895820236, 0.5596803132756735, 0.7785084455457678, 0.9561196995600962, 0.6508031729830963, 0.9380830326564649, 0.7110642885346891, 0.6036575874254098, 0.5027626736060512, 0.9538876564158411, 0.8845178415385687, 0.8662338151025832, 0.9971956594315569, 0.9710826153799432, 0.9563283083587366, 0.536959985819206, 0.8264743179667065, 0.666833192663153, 0.6282110694961811, 0.7422324640731806, 0.6718960132727572, 0.9012349270228763, 0.9129106420418316, 0.9874271639323884, 0.6418173290852287, 0.640218644703427, 0.6943099084591497, 0.5688825838804251, 0.6133176493071479, 0.5972157206706763, 0.7908784845213102, 0.8848052049894233, 0.9104750229536858, 0.8085602382153791, 0.6729951496238584, 0.9674308176564518, 0.7655366509717585, 0.7537277057226435, 0.5562227799324437, 0.7519080707548548, 0.9736549397325611, 0.8815913143947638, 0.869360200970791, 0.7552164551595955, 0.6886347682275247, 0.9596053029824031, 0.9271612505299411, 0.7407736905666993, 0.9741686647606501, 0.9607566749315342, 0.5958491346565936, 0.520869190926798, 0.6191380927602865, 0.943433020549111, 0.9501861302817481, 0.6374765994248264, 0.6061131763454382, 0.892614874332506, 0.7676648926332359, 0.9403915642532015, 0.7176384029328037, 0.9831697837491153, 0.6328107659791847, 0.5939277714028003, 0.9673031890212999, 0.5715232968562436, 0.565879697423975, 0.9404362929707586, 0.5743118648417123, 0.897975280706603, 0.6166810558349378, 0.9529696070047247, 0.9188606391789506, 0.9565881038199615, 0.5414884293037477, 0.5428675998224197, 0.6737104209380029, 0.6586123241401638, 0.9905709475260972, 0.710118553610473, 0.9913297922220851, 0.7225391360521695, 0.5201501774502904, 0.7204044656792468, 0.7937597465914203, 0.8971125456503983, 0.9429902746277925, 0.8677269988315679, 0.5974252804002379, 0.8372302505030991, 0.9744990755781238, 0.591108844553017, 0.5756241424351843, 0.6302498576123443, 0.747970209495835, 0.7977597121597705, 0.6648312689909187, 0.8011178802107626, 0.6481682028538089, 0.9601030663705429, 0.7548818792574348, 0.8387648459358578, 0.5215317384084808, 0.6022899505548533, 0.619399329951226, 0.5178033153378739, 0.8606109410656378, 0.6937520704106281, 0.576836184073463, 0.9444900401971662, 0.6942162189504665, 0.5552049915422232, 0.5086662562024236, 0.9399344639066725, 0.6194614834400075, 0.526033091659146, 0.820152290595278, 0.6295143379804597, 0.7214608934030309, 0.5359383302608822, 0.7061264386474504, 0.6087861360115043, 0.8418432259634582, 0.9726336080576954, 0.8404672865139732, 0.7110999689730451, 0.8516452893819542, 0.5708653123305637, 0.6526600697311062, 0.8471011022052546, 0.5788442552435025, 0.6808506506172409, 0.5605650000177117, 0.7049589493803488, 0.6564216839894871, 0.60941383668304, 0.7854012246048118, 0.9769415444090286, 0.5890314536901033, 0.6100787922734161, 0.9751005695333992, 0.6828172836082882, 0.8607894718605273, 0.9737592432940707, 0.6267167476657782, 0.8045420973543085, 0.6181272406442893, 0.881085174825029, 0.7965987840694317, 0.6330347669291256, 0.5106187684646442, 0.796948828544431, 0.9194304138142279, 0.5734668497295394, 0.8820816886835479, 0.7125179382725568, 0.9867702910134541, 0.5394587949601063, 0.7732156705244227, 0.9123500513511538, 0.5100705927997295, 0.8498849221684548, 0.6022874200605763, 0.8701139831508015, 0.9630347930241929, 0.7733598153108012, 0.7378698932889931, 0.7529178027733174, 0.7240966937251003, 0.7023712291922342, 0.5317579613131638, 0.8959745964278074, 0.66077372358783, 0.9528751383515688, 0.6767584461493714, 0.884085064977831, 0.902514139568829, 0.9838243183367844, 0.5759882802657295, 0.5008950287612725, 0.7452907562113875, 0.5881175531352649, 0.8446954846194076, 0.5598915518941265, 0.6977211656385757, 0.9820546100608051, 0.6567631513613281, 0.8864985095755386, 0.8705386555728639, 0.5960179107461208, 0.9071450794976345, 0.9649343373164965, 0.7687363884064922, 0.7670442787853742, 0.9151017834788389, 0.7508909431481423, 0.8826052483110778, 0.6418747082337708, 0.6905180528562829, 0.8865511937572637, 0.585151509502902, 0.7051371319872497, 0.7348950157995671, 0.5723497260273607, 0.5365433541796414, 0.7512118665367074, 0.6178670102371915, 0.9914671901720175, 0.9998291541410695, 0.9121389454159124, 0.5316477152456773, 0.8133545766462796, 0.7879842278630258, 0.6796894665700646, 0.9106204460368144, 0.6571517501680313, 0.5706286226787727, 0.9127851317154392, 0.8380098994414649, 0.9334900983714576, 0.596344608134975, 0.7971670016003416, 0.6185702380923113, 0.6685710733092347, 0.700419530120122, 0.8836268207922553, 0.6317216157102641, 0.8605343030198283, 0.563334748265945, 0.5230851491128692, 0.8677622012404581, 0.5468120805509992, 0.8536390493912499, 0.5260249099995089, 0.6096914838937606, 0.7983407656248906, 0.6345899696502427, 0.5499186872517328, 0.9912346843625389, 0.7038484449922062, 0.7410490833673544, 0.8415886665834706, 0.5112911333150715, 0.9059639024133148, 0.8120480872117951, 0.7704383021508259, 0.8066032595967937, 0.5136741662304454, 0.6563484036381566, 0.6106917990234608, 0.6088855735135817, 0.5077107700358857, 0.9774621673857244, 0.5009015381320774, 0.693568818159301, 0.5412306922520157, 0.6394878496149949, 0.5022508167838848, 0.6213383399422086, 0.5357592748717593, 0.9701205941679006, 0.7061280776100352, 0.862871523580971, 0.7760425456193678, 0.5685655693382077, 0.9807306399303085, 0.5618962177266076, 0.9525756364540525, 0.5573691675886054, 0.8175120026768579, 0.7616728127836181, 0.5020946335967584, 0.8004980328707811, 0.5304530415319195, 0.8050044649709107, 0.7167248446253474, 0.9253134657245083, 0.6567355495508915, 0.6959645820772938, 0.6636631510634794, 0.6284865474630928, 0.7440707938418605, 0.6667707830353262, 0.5532368027806329, 0.840066199738666, 0.7298401578003961, 0.8696719985609465, 0.526436427463506, 0.5026169627549999, 0.522065319123387, 0.5866504213669781, 0.668141588555997, 0.616670698827031, 0.8960789799489304, 0.8088344068423754, 0.8554669235462532, 0.6455588841270361, 0.8339369659505756, 0.9718628272651522, 0.5163275726513963, 0.8510214081205432, 0.888010778723608, 0.9391180153168406, 0.7539242278106406, 0.6592851727693885, 0.9849858179090576, 0.846654345760262, 0.9640924332920283, 0.550026366847953, 0.9911584881795497, 0.8376424656183011, 0.9241523918922756, 0.6982999788749111, 0.5600966101651528, 0.9070847446449992, 0.6452299781405153, 0.925035276394587, 0.6030700003883555, 0.5264566507786816, 0.9292882843476082, 0.6711692181272202, 0.9459217950328415, 0.8926414314839095, 0.6118681031937275, 0.8155320346728803, 0.680788245700843, 0.7220221762044507, 0.8090409107823299, 0.8205929181425313, 0.9082329753679512, 0.9292223369386037, 0.768771799488402, 0.7960475599778898, 0.6182926060004336, 0.7688484809119723, 0.6647580766845254, 0.6822075199679125, 0.9563018820667888, 0.7515929215065494, 0.7926864700818302, 0.8120435807742756, 0.8416245899942489, 0.9104818785393702, 0.8664910555905556, 0.6787122585960712, 0.9234889538570417, 0.9969091775745107, 0.9705292886883601, 0.5900878148983153, 0.5587040031645253, 0.5567192006925434, 0.6795391615670858, 0.7091576302158075, 0.642111663352045, 0.7325048703045238, 0.7466861528599551, 0.7580284756097497, 0.9115357879929893, 0.5508004409434926, 0.5688328720596592, 0.6206898324010273, 0.56575470639773, 0.741745388116822, 0.6694560406174326, 0.6299916936423662, 0.69180591021952, 0.7149970120465013, 0.9592647698920864, 0.8258449732553499, 0.5685830068566762, 0.7098353933175487, 0.5116140790031287, 0.5923988325807723, 0.6630942819559293, 0.5549697969048314, 0.9388235364969763, 0.887802177080111, 0.5616376338741232, 0.6645435156060202, 0.6837087367061612, 0.6223119643315524, 0.6139947704526961, 0.709631836886377, 0.9315271041141416, 0.9598651539580851, 0.5312647863760447, 0.7893013071389853, 0.50287731996337, 0.9763557825032549, 0.612103439514331, 0.5846422383344381, 0.6761493144445967, 0.5835495235568224, 0.6086583081654395, 0.6353214301865766, 0.9313259956081285, 0.6379432458114438, 0.6746923468659523, 0.5248839797388534, 0.9531034955350519, 0.9791260533051341, 0.5910286170051812, 0.828157875853884, 0.9234635686370487, 0.6734762615138739, 0.80574895364029, 0.821755005888063, 0.5065362839038142, 0.9408873964216362, 0.9647967338041455, 0.8634035099084327, 0.7382116549019302, 0.7490188010654981, 0.7358529802524156, 0.9828488076754447, 0.6979003906215924, 0.7232620029193133, 0.8826829574671525, 0.7506094272768746, 0.5687582665684375, 0.7910973294391122, 0.8204969928072539, 0.897543820294189, 0.7661305430411134, 0.8122767785483084, 0.8193083501081984, 0.7639047518105846, 0.869017985830614, 0.649348728725244, 0.5138376526481037, 0.8333659919142693, 0.5348582933130108, 0.6817049544745746, 0.8026169077286027, 0.6486196779536227, 0.5917129058578836, 0.7941161364141528, 0.5905336887460528, 0.5982991132315991, 0.6916732574561748, 0.9984931703206607, 0.98522196349735, 0.577378727975445, 0.5977561127651512, 0.7413367849144887, 0.9848826261273983, 0.6145003913919154, 0.5073179328745101, 0.8571021701868914, 0.778640985890872, 0.7293569957271826, 0.7332518878672711, 0.5784069481925669, 0.7212428056809466, 0.550927381848958, 0.9120724418138411, 0.8023761149870332, 0.6418818046862462, 0.7936662314701046, 0.7575842256041933, 0.722262158959206, 0.9055447771197349, 0.7394461854454436, 0.9361832341287137, 0.8240185797788113, 0.8864188635327261, 0.8257160198556337, 0.6128521207189577, 0.6767579909015577, 0.645654052657569, 0.8525538726753721, 0.9991178501803442, 0.5875642125304972, 0.5934461648341142, 0.8187719294909404, 0.5680293594834698, 0.6326989311164379, 0.8557724420741049, 0.6565234957782813, 0.8043801820618917, 0.7916737082085448, 0.5221317333788018, 0.5665160360887869, 0.9491514313047498, 0.7350048161192951, 0.6978611255785647, 0.5856742791469796, 0.8783235614624834, 0.5102124754955111, 0.6562827998835815, 0.5850695291840838, 0.5175687765435332, 0.70230112917712, 0.6078615329069021, 0.8643029615405158, 0.677647221152827, 0.591880398681518, 0.6431537990827019, 0.6163439957280469, 0.9082048978169444, 0.7246256869135244, 0.6301152377521988, 0.9882613898016838, 0.8307370167211714, 0.5345185680511477, 0.7760130178429853, 0.6503315562727127, 0.9109824782258966, 0.8120523885246773, 0.9928657807553785, 0.8662706400160527, 0.6195381077669762, 0.6523255674798352, 0.9685381410819908, 0.7563137706846319, 0.6812535572151368, 0.7196298272018528, 0.5186091852603003, 0.5898039602436147, 0.9203002319346845, 0.8039338491253329, 0.5897246979895623, 0.7114507704927646, 0.6562867140330086, 0.7562293042071706, 0.8800919600772344, 0.6420097500631627, 0.6322573472089932, 0.8466023294867759, 0.9985480474823123, 0.8029069286203824, 0.9884198472177674, 0.7648091513921285, 0.5425411416101977, 0.9306834858117643, 0.6513439676627607, 0.9916029232207002, 0.9597032393870468, 0.8013887780976383, 0.9820044140251617, 0.9697787539191349, 0.5618708581590023, 0.8424021278848282, 0.6067090433666062, 0.6474303602649123, 0.9060677766321057, 0.9222988349022017, 0.5068155834594261, 0.7225069080384283, 0.6895279367828846, 0.6308172616071492, 0.6363172840309914, 0.9190201001069633, 0.5877635793056935, 0.982993589599065, 0.5730642357375378, 0.8127288076294751, 0.9280616885281798, 0.7046318276451409, 0.5612528484534215, 0.9679543732311993, 0.7331751437959149, 0.7764877673068715, 0.9191742657253303, 0.8838717648318823, 0.5592807423080193, 0.8619144444425173, 0.8386771279590737, 0.9061727709385174, 0.7876679481507898, 0.8975696860818463, 0.784258649278291, 0.583460267904917, 0.6497247417797237, 0.5260617098709486, 0.687071635825182, 0.7944555868710603, 0.6713370622849791, 0.5791454234073448, 0.6348933203494713, 0.5230717060875636, 0.7664301213069571, 0.5694809145663577, 0.7426949854147655, 0.8482056033164482, 0.7665382008646493, 0.7676479179056932, 0.6066539163157395, 0.8352016090959351, 0.7164999624527103, 0.8425054749968806, 0.6629152626368204, 0.7237479813474821, 0.9285676032302242, 0.8976706860163342, 0.858062401507462, 0.633501041519259, 0.8007714770827505, 0.9901457032683795, 0.5495370342255899, 0.7983208146784967, 0.5658195449420313, 0.618919071447583, 0.5437490795228782, 0.7480590927813839, 0.5931457754385161, 0.7814124371343362, 0.5573830056478752, 0.7481150364985851, 0.7550897628438138, 0.6596394560466856, 0.957151876625484, 0.9075997050744993, 0.6799851770743197, 0.9779750366899427, 0.6394623093735938, 0.8059704491098469, 0.7611048180444545, 0.8232677416347303, 0.7375953869105265, 0.8497388795103809, 0.7139423454083824, 0.9195204423416741, 0.582098212209192, 0.8887861314454137, 0.5549062119801245, 0.5981539035687133, 0.6829408387405451, 0.778642221911372, 0.8469345879666059, 0.7541124728056237, 0.6624084129643806, 0.5432372320880857, 0.8300910194640182, 0.5064532852270395, 0.6091371080564754, 0.8781371305406455, 0.5308064336866158, 0.5152065761952471, 0.9474711136721923, 0.5009416006896977, 0.8862138048688657, 0.8494444163891277, 0.6222081131443515, 0.8799569334537034, 0.905421739559379, 0.6697471795277871, 0.8511408627290551, 0.6059431989369173, 0.6007048430914516, 0.7047616275290121, 0.7649041876034894, 0.8990973316375594, 0.9167445953936357, 0.6172930681987463, 0.5027110990732402, 0.69422028365699, 0.8684392743470182, 0.998915340698213, 0.5286019129510746, 0.8811083233237202, 0.5812178778215938, 0.6025807543461288, 0.6294401211692737, 0.9686462483350029, 0.6368286557064821, 0.8856124569052413, 0.8926495207945437, 0.5358973563162732, 0.9681105688933253, 0.5077190014342643, 0.5168835225605031, 0.6965496474588531, 0.6346647198444049, 0.5648282627450323, 0.9570134589261234, 0.6860340122029249, 0.9191725917893727, 0.6318975839570649, 0.8899732211125291, 0.7622481120923779, 0.891327280999999, 0.6486129779311778, 0.7653605039664905, 0.6323412530914321, 0.6293010328101496, 0.7359419231297111, 0.969470677629086, 0.7148365180655329, 0.6002753168219102, 0.69691778165535, 0.5901309094483054, 0.6179492040733491, 0.7800728586218615, 0.7069809446072994, 0.9401227894759017, 0.6209571730756992, 0.8737377062353979, 0.890593818366255, 0.9233087101755986, 0.794049283825689, 0.8205929045697253, 0.9289300017221117, 0.6048005648149394, 0.7604422086949814, 0.9020853966828954, 0.677499283982683, 0.8714560273428269, 0.5120067620503912, 0.5274227248525067, 0.6483400825524464, 0.6240958893794883, 0.8566050216398589, 0.8876335190675351, 0.6561619646076601, 0.9640460785730253, 0.8891823494436458, 0.5093335554347269, 0.9080247179784435, 0.576570397340805, 0.8906904104969773, 0.8500393379616298, 0.9491314259281298, 0.9721371258414417, 0.7898174940631801, 0.6975606341275786, 0.7948531714140648, 0.915175986989536, 0.5784022974357621, 0.5065321457372515, 0.6519026792074301, 0.5577040213686809, 0.9448227011236201, 0.9348540838521571, 0.7554752183740592, 0.6928315840832444, 0.9730755963508927, 0.7494179102255794, 0.6944126422043182, 0.7805438675355048, 0.9597724368882192, 0.6682621214910256, 0.7246084959281223, 0.7559372094800261, 0.7718863855526845, 0.6655220345526596, 0.6542295089197816, 0.6628085353054881, 0.868952179150164, 0.7019935908086767, 0.7204445559401731, 0.8965578096342623, 0.6204894132302885, 0.9113423983845563, 0.8667431244052982, 0.7724745640764102, 0.9589362712178628, 0.5233655084331914, 0.9292255574361349, 0.9750080850971217, 0.8793676534316384, 0.5558327020004947, 0.8895823858375482, 0.9472198148798143, 0.6980828755236098, 0.6166789784652615, 0.6841164936147967, 0.5701058268446397, 0.7034007171900712, 0.5625394458445088, 0.909479868750162, 0.7477628756839066, 0.9569023501109485, 0.5553175109756137, 0.9338557415340101, 0.8448045316186281, 0.7850969963265879, 0.9048984656968857, 0.6987261802166065, 0.7768585243707335, 0.939144174328036, 0.6727920998841173, 0.9133376685271691, 0.9034316101477082, 0.7442843406003243, 0.8214085017246209, 0.8751527613045214, 0.675101355225928, 0.7431548596499022, 0.8225977885979352, 0.7247634523517441, 0.6182100804698056, 0.5397319973959223, 0.9410680089533763, 0.893082150694021, 0.5109972217950239, 0.725827199512972, 0.8980337827543825, 0.7723803182347119, 0.6687968175369925, 0.7157177985567604, 0.787003696415716, 0.5414990773465349, 0.9528125665155136, 0.9293854331136917, 0.7300228700166744, 0.6970042732992541, 0.6878680361747749, 0.7933346636703853, 0.8588061389984492, 0.8808126870907341, 0.6283182147495998, 0.9280870283461022, 0.9161434152419258, 0.6941485326014925, 0.5693823430146581, 0.6580495275262597, 0.893926290755732, 0.5505202805067202, 0.6877930218624276, 0.8689957473397935, 0.6318320549422975, 0.8310791145718971, 0.5163080788589267, 0.5322009744421811, 0.7514034378945753, 0.7006693661110819, 0.8799487354529669, 0.5805771955923414, 0.621512586613792, 0.875139263184938, 0.8216047284831403, 0.7017281838540154, 0.817574243362708, 0.5165164379535956, 0.7444919728177248, 0.7546263619878335, 0.7648472501960575, 0.9811309690995862, 0.6389568000585539, 0.6502208027314704, 0.6843144557143822, 0.8661818736561704, 0.6621820799742993, 0.8722120483898541, 0.7602490957314283, 0.628068408988732, 0.845277048011767, 0.658191380013346, 0.9441157647597892, 0.9397589292888295, 0.8106210136232916, 0.7069588087840839, 0.5756013098627197, 0.9871672445316899, 0.9999921751040448, 0.8186048001399999, 0.800186360756183, 0.6363370620007115, 0.5061976403577106, 0.6271563518112505, 0.8488114768738593, 0.628817868496027, 0.9967446761157857, 0.6711634011804684, 0.8073226612210807, 0.679216209558165, 0.6080744003568582, 0.8571599462797758, 0.8833514858137929, 0.7906243996293687, 0.6269771225066414, 0.6889361258832378, 0.5681113217396652, 0.7448061936405951, 0.924695743157543, 0.656345507196938, 0.6318154267834732, 0.5407940681418785, 0.5027613456017564, 0.5561763506245672, 0.7592920728815326, 0.6975601658435047, 0.9272199234860432, 0.6567670157400038, 0.5310870662255083, 0.6765797938845053, 0.5803547105555893, 0.9161855381914464, 0.9647783823267977, 0.7601754865254879, 0.5197677708101798, 0.6620790706004347, 0.5794868414417822, 0.6238278388037845, 0.7942231654910914, 0.9914974546945785, 0.9415891383023804, 0.6453995409474361, 0.7382474120269973, 0.6915446097246594, 0.7636719271129171, 0.933496716665434, 0.9139080311723972, 0.5109883134545257, 0.9630606900409422, 0.7005500861962517, 0.7110390481285992, 0.6942542332467314, 0.8984474262680657, 0.6566657363229003, 0.925970666510991, 0.6558237797288881, 0.645007263455788, 0.7530618090572729, 0.5443637294207906, 0.5842530762201623, 0.6927592066184591, 0.5936304421435068, 0.937107962113157, 0.9809918423578947, 0.6633009977176991, 0.6693239352433205, 0.7767998672413954, 0.8555761910670243, 0.8082422068695173, 0.6144797925080668, 0.7765719960520904, 0.8504984053738065, 0.5931072156452468, 0.5599239550448661, 0.652435565866242, 0.8418403186769652, 0.718206115538403, 0.9069448652387488, 0.7513777097829935, 0.9398754874638573, 0.6185715172669054, 0.5394409770347517, 0.754804400782005, 0.9943047553249726, 0.6212656608699068, 0.85923273209849, 0.8075459779543334, 0.5671213188287119, 0.8867997972222461, 0.8799989780434025, 0.9696032282093611, 0.6457781808728846, 0.8259500436738202, 0.9416354702430896, 0.8502524798910448, 0.9301715491042295, 0.5360612389201609, 0.9801382405365959, 0.5847183164508276, 0.6663081706785609, 0.9573856273608157, 0.7793831930727152, 0.7163426061567728, 0.5327612573121696, 0.6556922009548374, 0.8291639001340615, 0.9461968910705636, 0.9963460061849897, 0.7925721311922257, 0.7620334738003209, 0.6211235011292049, 0.9919182300559648, 0.7365135607706972, 0.8906530195350936, 0.9903017196133548, 0.9404156784555981, 0.9707114565861955, 0.5365086728495465, 0.8581631858188545, 0.8255002906808804, 0.836313772874308, 0.661141556312512, 0.8166650867321994, 0.5402331732760179, 0.6371729761239247, 0.773339201640548, 0.8146105555958636, 0.6136473239212564, 0.5010624825301409, 0.6182164220675639, 0.9479706354342612, 0.9703629756323344, 0.7731420360950378, 0.9332637989177828, 0.6303066464961288, 0.8650493032640125, 0.7492026719484182, 0.5834080974804718, 0.7574339553692518, 0.5228669635919574, 0.9502720134035381, 0.5705019829579825, 0.8566232994854723, 0.5587365003654334, 0.8884055651862586, 0.5533586603592853, 0.6862771210380207, 0.65248953016435, 0.8703152820932738, 0.7442362956413422, 0.8067691308500988, 0.7231948092494597, 0.6048318998604425, 0.5445720452612302, 0.8871898879453581, 0.8672318661181966, 0.7738094982442066, 0.9379865164155506, 0.7722451516375166, 0.7647826646333513, 0.7138982734701773, 0.8694004354174782, 0.5129151380596664, 0.887843876320489, 0.6904221926768277, 0.5087196087915311, 0.9495840247837148, 0.7324345637245759, 0.8541753297154464, 0.6210881632591023, 0.7564588969435441, 0.9151817642416065, 0.5628496355909058, 0.8854881320629697, 0.6872593561019913, 0.7719995003192796, 0.6234201554237325, 0.8680757418025915, 0.7584849253963066, 0.5459746159347261, 0.8785253329486982, 0.7932437492254598, 0.8744220252584571, 0.6763162556544011, 0.7067377702158004, 0.7064099111859847, 0.9566883321551324, 0.5704735253432174, 0.6707189915338294, 0.9402189121593167, 0.5365397154955333, 0.7879185212074828, 0.5043406665750975, 0.7243479729960709, 0.7521542947143293, 0.5572163946451121, 0.9210028547179471, 0.9567454082218829, 0.7006332438533855, 0.6980024148841042, 0.942071049087644, 0.9934804303204061, 0.9596278273691529, 0.9746628855841912, 0.7223059464186069, 0.9187264698947406, 0.9829706753454421, 0.8026144660596553, 0.6214761921769474, 0.9801284719171675, 0.8727001081214281, 0.9106019853538407, 0.8795632353256051, 0.9858046803613312, 0.5200645274158366, 0.9046422805182053, 0.923010780686773, 0.8108791522797341, 0.7029268026842126, 0.783921153626044, 0.5044053531068003, 0.977742442689659, 0.8322579030468527, 0.9984053460273777, 0.9757113160562827, 0.9802854744637881, 0.7968989231092038, 0.9295741414709573, 0.6945330519225985, 0.5216262738508735, 0.8780325232606724, 0.6005458809241446, 0.5194807410222093, 0.5303252298976382, 0.5088782434039355, 0.8097544985121707, 0.5423376760903826, 0.75761903558814, 0.984792501703179, 0.7405953374256232, 0.7989061664055892, 0.94527149916059, 0.8912163162142082, 0.6752573908786835, 0.6557242296950103, 0.7024775764271566, 0.8922132519138852, 0.6550341498879264, 0.6492357513830834, 0.5675638438752286, 0.8297535688904436, 0.9437350772324472, 0.8830122088635535, 0.6518273968023038, 0.7837334916241538, 0.6521794255724722, 0.7214522116942614, 0.6966741135330923, 0.6523204926274269, 0.7791432180368363, 0.5967896299338393, 0.5580800561476391, 0.7542248650353314, 0.7956949279925379, 0.9313751483929436, 0.8310444862574398, 0.6975166843256294, 0.8664560644272888, 0.859348189729088, 0.530071430374029, 0.7530903622092145, 0.6542608421475515, 0.7637185243011111, 0.6783732483605819, 0.9786030056015402, 0.913535990671491, 0.9086001332492668, 0.6866537117960979, 0.8926071190063702, 0.512052438264009, 0.7373889197996267, 0.9359365143076884, 0.7022034644232777, 0.9032123249198143, 0.9959804240882748, 0.5830986343032518, 0.9797086607267436, 0.7738607860899123, 0.921367028691165, 0.9421367106140113, 0.9692556776297814, 0.6871064261091598, 0.7078040499316789, 0.5046585974917654, 0.8756803694245772, 0.770763959922343, 0.5544005635455294, 0.519564942703649, 0.7102619146477194, 0.6051200346908606, 0.5663271990766787, 0.9457344411643523, 0.8612092846079711, 0.8057145222248769, 0.5787322968010089, 0.6949302173281959, 0.5441936386963826, 0.6232136924074929, 0.7367614011289171, 0.9228308145714581, 0.9465514766041051, 0.5943344395209067, 0.8414719451549663, 0.8537607383399723, 0.9143241754760225, 0.6046435985050027, 0.5242982203437343, 0.9301433781590482, 0.8926440286565789, 0.5407700369932108, 0.817149793612286, 0.5652489882315167, 0.561131945191359, 0.7773533435507802, 0.7274104822946306, 0.6310827796815608, 0.8131951858947833, 0.8324091539383461, 0.9914891799851655, 0.5202783992647686, 0.7411032705409771, 0.8693166807466435, 0.620340246582413, 0.8152304117582045, 0.5879136689150601, 0.9870035026435281, 0.9987608770727228, 0.9828343586254586, 0.6414346614967148, 0.5785349928745468, 0.9874059328309114, 0.6118434268127665, 0.9551208559505237, 0.6711959771799567, 0.6148696195483498, 0.9199738347244738, 0.6556492977733425, 0.5482387721513684, 0.8284187386988981, 0.7803885326113928, 0.9131910016123939, 0.575862327976511, 0.9650004956426446, 0.6272450195060073, 0.8877729211044089, 0.9556787924813832, 0.8062886285497071, 0.9681285160751794, 0.7720996077702771, 0.5118153457486134, 0.6680850430879777, 0.7590887942342772, 0.9742443562029279, 0.726142982676953, 0.9058368957303333, 0.5937956306682373, 0.7502723438612351, 0.9811973980199411, 0.5224542815372196, 0.9980647138442325, 0.8520469036744274, 0.7181874194814548, 0.6292402812493585, 0.761104846622975, 0.8569285322276222, 0.6945846592538947, 0.846870230288123, 0.5053069152805314, 0.66223072853253, 0.9557856246752601, 0.9261801131256892, 0.6981992592131105, 0.9612581982795467, 0.5088354128952731, 0.867426517129057, 0.7414178580274589, 0.6771889543036607, 0.7414008415583617, 0.8931085537427568, 0.57451935366462, 0.7000997410481571, 0.733859206887434, 0.7760451264575035, 0.7052792455633599, 0.8506551974428542, 0.7425697174843937, 0.7091942184184832, 0.8830727212159777, 0.6987137076266386, 0.5183444246431896, 0.6674414119467307, 0.9894593360527852, 0.8725938370624879, 0.6063028620463649, 0.942203496090496, 0.9042634730310964, 0.5427886847360137, 0.6567383481907727, 0.7452065011761921, 0.7004034879306957, 0.5468458948139305, 0.7081476739728754, 0.672433880592716, 0.9403985618683173, 0.9667414097679604, 0.7100397205284028, 0.9723014002508326, 0.8573615081310062, 0.5088895888209704, 0.5057604829670832, 0.862217919460069, 0.6128113073969277, 0.9929157065449279, 0.784636812222602, 0.9939742072164297, 0.9720781058093518, 0.549254924584794, 0.7436412111506305, 0.9298735364365096, 0.7309954379262029, 0.6743290722766361, 0.9353995050324126, 0.9926139720262765, 0.5487143366575541, 0.5277301165805223, 0.7122551476351019, 0.8667744156408315, 0.8288189485553676, 0.5866339820727194, 0.7679186526206467, 0.9600673861850577, 0.9056831537895416, 0.9141856981918691, 0.723936321884761, 0.6219253227929412, 0.5982415965512661, 0.7414663079509407, 0.962127997684726, 0.9715611085948138, 0.8240731848252211, 0.5698013822610761, 0.9796933511778458, 0.9865773387419458, 0.9839244429040608, 0.5542662807184244, 0.6110215991726948, 0.6128924668251847, 0.9639479288200767, 0.9863031582509996, 0.660679414092562, 0.7923488168247614, 0.6291067165612518, 0.6490044447147737, 0.5133567387930631, 0.9450883019110684, 0.5687043433023984, 0.6544122892938238, 0.8067653775818722, 0.8291799319609205, 0.9065388693634087, 0.8589176083916263, 0.9857955688643922, 0.8615445458197384, 0.6989023153196939, 0.8599730689114983, 0.7301422815726601, 0.7109751130696729, 0.5540036449452479, 0.6390204691109133, 0.679304095741878, 0.6304684945691553, 0.5629251612870891, 0.6463035689650662, 0.5499544672297922, 0.8745206338850695, 0.8042452430013938, 0.8204681383026275, 0.7439112921637252, 0.6293185160843626, 0.9182048397604249, 0.7190478735392287, 0.5440875839317962, 0.6619616031377067, 0.7975994033521325, 0.7980739630820097, 0.7916385701243478, 0.9648454453084165, 0.5651753463974025, 0.649237717808676, 0.7603063392325471, 0.7570965987546614, 0.6177919643731914, 0.754150801868743, 0.9054828426391082, 0.8192992494498583, 0.7998467418635828, 0.5901023766435353, 0.7754682575067499, 0.8377662694155843, 0.9184819763327856, 0.9943039357801717, 0.7067230304942058, 0.7365832336706121, 0.8526856104042477, 0.8199608627515604, 0.8333863694866213, 0.7364529102211672, 0.6958087302323905, 0.8772881237174314, 0.5889192749765517, 0.6318357455886601, 0.878634228407221, 0.7169536156381819, 0.6230204994585574, 0.7906953544045787, 0.8073065514734702, 0.9144472558941962, 0.8499820226218704, 0.9963953495070693, 0.7061042064217165, 0.5677393914827248, 0.9033201327741323, 0.5306667095551856, 0.5838373325846111, 0.8604176104608212, 0.8284298421012382, 0.8080925515082753, 0.5660761272959274, 0.5618191831482323, 0.5735121745710701, 0.5450235435736959, 0.5815884221446574, 0.5986005186390944, 0.6837901213184272, 0.9442409521406013, 0.5228049834275155, 0.7694325518797007, 0.7768411993206783, 0.7818512118288432, 0.7565018754605041, 0.6057958477336498, 0.904814881326194, 0.7965182319579247, 0.7534159617472614, 0.7173945298629827, 0.8356039010197494, 0.5521959347683433, 0.83990938468038, 0.6357711402054471, 0.7004055073927327, 0.5713827085910319, 0.9719212700791056, 0.6155306315497725, 0.9748843414080277, 0.626450594184925, 0.7931767026089305, 0.8423589270817986, 0.652598693339633, 0.5263986328912647, 0.6439717637760687, 0.518788654122935, 0.5267318987669115, 0.6647748819507823, 0.572647362067487, 0.8548478505953158, 0.8542736924388401, 0.5891287363293553, 0.9197420296189571, 0.9619142106750163, 0.8777140151917862, 0.6780704373793247, 0.7344384342769994, 0.8464345788103622, 0.6353612471025324, 0.7067896498423176, 0.9742651795112665, 0.6088350799438709, 0.8691350837037772, 0.6829240016702763, 0.9597477875835884, 0.5141886033675791, 0.7841317924166321, 0.7921221516329908, 0.8698605027379923, 0.9691150480173164, 0.9814311372438786, 0.8015927181383449, 0.5529310172129267, 0.7613969977403316, 0.6275864856310778, 0.6769284049234449, 0.8567372838903411, 0.7857511901984822, 0.6472763588443329, 0.9504956453094522, 0.5628272827966304, 0.9969772151401937, 0.7738229269862757, 0.9272070426826249, 0.8878816114663988, 0.6501516539896437, 0.5507559202594451, 0.9664362210588395, 0.927544608051118, 0.9013216802261048, 0.7787801806220304, 0.5930477754234501, 0.7100814015207162, 0.6074660718238956, 0.7488298584724844, 0.6595494660369979, 0.6042064551507735, 0.7146608380273178, 0.5445445942511791, 0.6219849830011908, 0.5244681989388018, 0.5595806417700522, 0.6539625204224093, 0.5848834424358998, 0.7014652332945588, 0.7246796596680767, 0.7895690282223427, 0.6626655184667104, 0.726795455829661, 0.9491997786721051, 0.6645318069501985, 0.7663734943325832, 0.9733543853514295, 0.5603586625513615, 0.54105644732212, 0.6695385578035458, 0.5130613660594341, 0.8251866772165461, 0.5653310807357796, 0.6443088055273498, 0.5442075667651891, 0.8345558634283288, 0.8159377112902728, 0.8437284755041377, 0.6924145431969462, 0.7344124257568726, 0.9444835489978781, 0.621135698440102, 0.7516177683756476, 0.5900447374362086, 0.8854153379662046, 0.945175386042777, 0.8953483703186897, 0.9014469961936475, 0.7354641746398041, 0.6538836817015607, 0.7066725004747005, 0.870566455761419, 0.5932148534597175, 0.8191837705565927, 0.7196247362972212, 0.8990703605578754, 0.7841447281786738, 0.8503697482744021, 0.7051388242932466, 0.9286552582215042, 0.8489903009394204, 0.7953905771836385, 0.8744398164580869, 0.6409236083363012, 0.9221586379095135, 0.9044602627851961, 0.7337833985329818, 0.8689713289204273, 0.8832606057862457, 0.7804431319590448, 0.6304961578703945, 0.6147462863359681, 0.6823028732362857, 0.684519875058226, 0.897704036428106, 0.7106988206945681, 0.5737785753517328, 0.8990140741349, 0.8624064530246135, 0.5061828901607816, 0.7586134242816522, 0.7671840123286751, 0.5739732882475591, 0.855109659762221, 0.7012222788480831, 0.8720117556533629, 0.5853689564801918, 0.9423544908433115, 0.6186931115682885, 0.5140480886531548, 0.5020994859254202, 0.9032116376506353, 0.6114855223947453, 0.8153595470052128, 0.8174226819975734, 0.7309743053527725, 0.7648643376047274, 0.7940109994685233, 0.7897419505047407, 0.5727104858968438, 0.5985143853029449, 0.5413836771030687, 0.5679428838379603, 0.5168504738055428, 0.5172130189326759, 0.7167494116122854, 0.9779376883247, 0.8423329288540897, 0.8203440746428647, 0.9231572672660598, 0.9265776254421876, 0.9079474315747431, 0.5832409756717309, 0.7486353491185662, 0.5470255328449605, 0.8383562838231097, 0.8778059924929296, 0.9888995782229204, 0.6839047050776024, 0.9745271899989681, 0.7306236043323535, 0.9978527453324151, 0.9562431681682884, 0.9950510103379, 0.9576643252829102, 0.533073965274335, 0.8181004700830194, 0.7976529155450869, 0.7654080402362633, 0.6611165179988965, 0.8648695860283337, 0.9670771100808884, 0.6368544101706333, 0.6914371250028646, 0.6841349821751129, 0.7506690321621683, 0.668377591073003, 0.7666654350020716, 0.7829119274400169, 0.9452083017368407, 0.8911839485558621, 0.9801459748812101, 0.640756949427951, 0.5390696618288198, 0.5814050319699635, 0.5375390133873147, 0.5096362509274533, 0.6287916964889264, 0.5603468659920556, 0.6670986476308809, 0.7664467317480463, 0.954841150261083, 0.8449633672273988, 0.9187844093468004, 0.8902281724726377, 0.5910091854408526, 0.7593051195296487, 0.747916073326192, 0.9162090216983301, 0.7266024084360407, 0.7059829155789814, 0.8533500146349343, 0.9596746600018283, 0.9659408469894223, 0.7529159231908057, 0.7353885665884143, 0.8231069460225047, 0.8577540832265591, 0.9561106117065714, 0.5149534875916082, 0.828469144066907, 0.608517513246746, 0.8957754761440773, 0.662647062864093, 0.9962525915166262, 0.5426872530946301, 0.8123049120853747, 0.8195249301163388, 0.7024304849314202, 0.6216990063235814, 0.6621451771033855, 0.5545821501918764, 0.5988379450691508, 0.9217546319680898, 0.9841488252039644, 0.9428861555076524, 0.8453316950903416, 0.5190615737551381, 0.6910088799855929, 0.7222790184132417, 0.6914513723014101, 0.7767522038764001, 0.8389864157091049, 0.8649398997988773, 0.5805637867110136, 0.957215805598224, 0.6454939420162706, 0.5177860220385003, 0.5817121447150103, 0.7793864016955485, 0.6841819088453711, 0.6360111462592355, 0.6197408936893221, 0.9949998540021123, 0.6036881607511013, 0.8247144830199433, 0.7402187842764498, 0.9745494419438676, 0.9966421387627914, 0.5741238753772718, 0.6642854610711373, 0.5418487741178353, 0.8993174915984831, 0.6925611259200604, 0.6596850380496637, 0.5194225325338802, 0.7611671221885072, 0.5630662363116162, 0.9530642824781306, 0.7965441416452277, 0.8849070730504933, 0.641457753026307, 0.7030316181717708, 0.7140914509787708, 0.9390200661954775, 0.6573013174317028, 0.6949674349790207, 0.6675927592643465, 0.6365393626497442, 0.8669824035182865, 0.8490055932983092, 0.5969752332441711, 0.885874556165636, 0.5740902132747114, 0.5460807423955896, 0.5863102756411741, 0.5691852498313295, 0.8407273011970138, 0.9861349379358851, 0.7251001394182846, 0.5264259654012703, 0.5517842603285774, 0.5783846688226586, 0.7759450443199857, 0.6752652954153046, 0.6759594638599389, 0.8697616487283695, 0.7975245869873808, 0.8144685455846845, 0.5411714025293181, 0.6396989346780471, 0.9359852899721529, 0.8180908564730011, 0.6001861489240061, 0.9270962775465619, 0.5975196426301602, 0.6577495427569375, 0.7230411542570406, 0.5126488344842351, 0.8086858386961154, 0.8236293927215278, 0.6024931666551745, 0.6384871083860564, 0.983776195256459, 0.6754611925912015, 0.5251309046369308, 0.6763385208593127, 0.9445578520457514, 0.502269116801581, 0.874000674216242, 0.6355413996490541, 0.9108355786085249, 0.60278237345219, 0.6574306741285887, 0.754869723504928, 0.6810156432116139, 0.9108861238900409, 0.937346560149239, 0.561788370770256, 0.5247293523641929, 0.6625132903432973, 0.6676758484375311, 0.5403374390340737, 0.6615677765837027, 0.883413064539305, 0.56761630923913, 0.6516595840177988, 0.6377933241308338, 0.7727216415904474, 0.661416292456422, 0.985392733718488, 0.6390528880885538, 0.5003797851523801, 0.7382881286274183, 0.7070019603734714, 0.9219121005956632, 0.6448407519382157, 0.7795039389411882, 0.69923994878819, 0.8696146441356456, 0.7712025209386546, 0.570682685645436, 0.8250331926842891, 0.9771301840817264, 0.7469933981823216, 0.6278578728503927, 0.5877907555023838, 0.9500698768231082, 0.6106978191273215, 0.8598878585961065, 0.548271436215446, 0.7196392753910805, 0.64136402896057, 0.9947171649003212, 0.7319735640863466, 0.8768887537704706, 0.5609815422456857, 0.6662816341709825, 0.7143468761999863, 0.9806741096132403, 0.5461503136621901, 0.9321133155836625, 0.6337112929071471, 0.6777307183774741, 0.9064429778472912, 0.5656977183034386, 0.940659623143704, 0.6989880287349373, 0.9775154793201981, 0.6791044064744642, 0.6224064854826754, 0.9328038254729787, 0.8587905589879832, 0.6751842794921823, 0.9093968071023384, 0.5059150131275474, 0.8161971610265486, 0.7488656067220791, 0.8651288590182172, 0.5727115429071641, 0.9499760113054134, 0.6665162405711722, 0.8970175606208344, 0.6612870659268557, 0.760906817856148, 0.809746603743536, 0.6119654805802502, 0.5284930537618187, 0.626522906714993, 0.8194691970733194, 0.7416355994025738, 0.9847077925378813, 0.9680588514036107, 0.9306482980233068, 0.7207368498126896, 0.6003960449222714, 0.547993310237062, 0.6517610635329019, 0.8446897760758472, 0.5230445796091757, 0.825843965719691, 0.7320833601633204, 0.6431227962569661, 0.5452063770031573, 0.8724589405714627, 0.8663186144950171, 0.5031158565544258, 0.9458648497663281, 0.8781440691692175, 0.9166552195862654, 0.9850593791888677, 0.9666053421015055, 0.7504266253375074, 0.9039739925025656, 0.9719512939955668, 0.8269689894031035, 0.6849769855342283, 0.503781559384537, 0.6952074070978351, 0.9984680781679258, 0.6222809083000522, 0.7058434317026168, 0.588457515175101, 0.9231471916243208, 0.9009482727872593, 0.5810763483512282, 0.9127260728042705, 0.5016800871870271, 0.7645850696328309, 0.8932043944981758, 0.5108765710324548, 0.5473437250009587, 0.7621702589080528, 0.9280875377561957, 0.5196036352130188, 0.8803143061766334, 0.747582516002808, 0.636735590960821, 0.869037959676063, 0.9921206665708197, 0.683029840152326, 0.6099065824307235, 0.854768690199589, 0.8044222604251821, 0.8094172892586058, 0.8730871836740419, 0.6717263032876396, 0.8524381107683703, 0.5346260130148186, 0.7785767739358507, 0.8208830421625022, 0.5285317819082112, 0.5838747077044197, 0.9706121947487909, 0.8215349878665918, 0.8244598381915971, 0.5770577859169854, 0.9805748180013509, 0.5032105119068966, 0.5215156656982488, 0.8889130951225235, 0.7196407049102049, 0.5776731032307171, 0.8699535846149631, 0.8033873807882975, 0.9629954106180487, 0.7787000492781588, 0.800992054956524, 0.9536966263194351, 0.9566879297943645, 0.963091197003982, 0.8711921887557825, 0.9292852277207626, 0.9528715102980216, 0.8150458286741197, 0.8517037017934022, 0.5899817747394946, 0.642546958759036, 0.7920472315216867, 0.8831859491691292, 0.9433415048414717, 0.9721129979991174, 0.5180147478480515, 0.5455890522260305, 0.506981742649373, 0.924391409152366, 0.6273243439213283, 0.923028588178857, 0.9812387431741205, 0.7458202735781398, 0.5760892086148725, 0.9635851617504838, 0.6795558908664434, 0.8926189375290214, 0.9649761976971565, 0.5409726676814066, 0.5139942994282453, 0.5502780921167245, 0.8133570980509466, 0.6823706892442807, 0.8081211780176879, 0.8729915564096764, 0.7991942749371197, 0.7387725639178186, 0.5520025008501299, 0.5805126144841197, 0.8334312564017814, 0.8012402114664483, 0.5648012872780649, 0.7964176016484965, 0.6936923796346701, 0.9933799912547636, 0.7292936859409804, 0.707719960080553, 0.9684862909674122, 0.5394025237460289, 0.8048697450496103, 0.7255613051069951, 0.6325896822099932, 0.9546474332339075, 0.710808515574086, 0.6718645005185038, 0.817510368229412, 0.5118453015005273, 0.8174198518624125, 0.9377590480630518, 0.8758436801380415, 0.7276226180445856, 0.7219666037932755, 0.7403668846463879, 0.6829363981915382, 0.863928013255431, 0.8249683056525597, 0.9288866695257141, 0.7793163831991925, 0.6813056273491533, 0.8778884892527594, 0.598737562978972, 0.7120889700985811, 0.6279473065491699, 0.8721763476679372, 0.5011254175788236, 0.6407953690369409, 0.5279272521693217, 0.8308565614774887, 0.8459352164505807, 0.596154189959383, 0.6678758684458628, 0.6898174397945633, 0.6879664098060615, 0.683934785328668, 0.8902558578285442, 0.8714408652026628, 0.8104375163900661, 0.5238577468972824, 0.6012503688476953, 0.729902179958501, 0.5842741686268489, 0.9288645819396122, 0.8086710292406429, 0.9928294204698602, 0.6199988099605072, 0.9822947437443146, 0.6920164773342585, 0.840444550313425, 0.6128089314800319, 0.6381450929756628, 0.9088412280883313, 0.9625980626350481, 0.9796570748748467, 0.8195847526949287, 0.819477058042814, 0.6794770551389124, 0.6757555068883672, 0.5069640778601634, 0.517317466893898, 0.5338961889869283, 0.8290137182593994, 0.6492240827208862, 0.9847565826675888, 0.7219586390180999, 0.6168070424903118, 0.732233885079476, 0.7929814121342931, 0.912420784057093, 0.5474393584386605, 0.7345958173564351, 0.8105507867721247, 0.7200337890849757, 0.8472864918762721, 0.8250466874506336, 0.6013614423562075, 0.6709994927807619, 0.5255387785425145, 0.9971243615467814, 0.9238588909269455, 0.8245987723394872, 0.6236465379287316, 0.6985668524157171, 0.7381046387400347, 0.7300677793550148, 0.9295380903234899, 0.5589151963776, 0.6180918033652205, 0.7090131050920481, 0.9598622167806502, 0.900782000137303, 0.616019962779152, 0.5589893824508867, 0.7856928158552734, 0.5499060082177059, 0.7830095693506318, 0.8382170439677199, 0.7618771306718679, 0.5928920959519012, 0.7192117040597126, 0.9527606497033343, 0.869582003234276, 0.8257134909371586, 0.8161601958933495, 0.8980878838580062, 0.7662839958954881, 0.9394652453195523, 0.5238775125617898, 0.876093085346679, 0.6948287488820715, 0.8397766650091583, 0.8745062012689759, 0.6324131663323818, 0.9215305472898445, 0.5107174863368602, 0.6306585662006092, 0.6229092014168798, 0.8298266372406407, 0.5906806701441887, 0.9069699096461867, 0.8598180473592774, 0.7164227995128865, 0.8269571822422213, 0.8009272139189509, 0.7171631277804313, 0.5878960963582613, 0.7099372291194846, 0.8293063402854657, 0.8342269320670201, 0.7027434794765446, 0.6836559314917483, 0.6470455177670558, 0.7107644476136945, 0.7695587538650563, 0.5533059608679671, 0.9568485866944496, 0.9481370230814623, 0.8729308911885462, 0.7348806324003493, 0.537831989715445, 0.9133233996327588, 0.8663655629218785, 0.9367978152469263, 0.6524140787680462, 0.5020887225785267, 0.7390528060939532, 0.6994180523573089, 0.9014257156997898, 0.7076253131532805, 0.6769747731843936, 0.7993162884992229, 0.8799182260138225, 0.6141913248068981, 0.8890978487393253, 0.5184204276861761, 0.8290579910609641, 0.947462284308683, 0.8529092071420104, 0.6311339736292445, 0.7313609051802435, 0.9681599782841839, 0.8407635196283654, 0.8385186766905889, 0.6422613236428525, 0.5393398570073684, 0.8454093522918359, 0.9538501558840298, 0.6789840357387686, 0.6375195497582098, 0.9217607361385491, 0.744588409724495, 0.5542889294169713, 0.583518233337323, 0.6024757833922383, 0.9814191037949493, 0.5379114185580854, 0.8289440187846899, 0.6963832074854072, 0.6026834530204452, 0.5650448292952976, 0.7879175312983249, 0.7977791127443574, 0.7982282020066092, 0.7492378576623069, 0.5812235844338325, 0.5887108406564008, 0.9517073805162475, 0.6822455241079204, 0.6398121393492417, 0.6840673687032823, 0.902536027443873, 0.6757835903321426, 0.6410992403536045, 0.8046764680213883, 0.6824012935896948, 0.9717640289878802, 0.881828125562709, 0.583674359737594, 0.7230922205106172, 0.706657016118402, 0.7208513372981504, 0.5219669644059235, 0.5632863789455069, 0.7989110285694846, 0.7739025230792955, 0.9555777778453703, 0.5240076117142436, 0.6695857256123711, 0.5895825683460608, 0.6972734932490201, 0.8499002138944807, 0.5724731252174068, 0.642067058494461, 0.6855378127580993, 0.6948837884567878, 0.6041613788368438, 0.6885700162808461, 0.8584922943784437, 0.9288171554815527, 0.5464332039389952, 0.833386396609967, 0.8959154956033328, 0.899448373176464, 0.6452861156970335, 0.9874689810575157, 0.6381040967825555, 0.9134137313984061, 0.8274330579382752, 0.5341167620660163, 0.6085371815304772, 0.8562045666435704, 0.904203915274225, 0.6782169814540745, 0.8665960020836949, 0.9340241381835948, 0.8893547343789487, 0.7569141201734588, 0.7740898211237035, 0.9676589279699197, 0.807211236199396, 0.6606302922561302, 0.9579844725757294, 0.7843460134233112, 0.6441995989333347, 0.6132607744332673, 0.7356634565937692, 0.6093637282887385, 0.7728735989912222, 0.7374450604830374, 0.7618892856481139, 0.5684006163839448, 0.7262677335858614, 0.9514790127631341, 0.9678527440235436, 0.986304249963726, 0.9385209057647013, 0.5336496812527797, 0.949182105069547, 0.6765201190234433, 0.8068971390079757, 0.8509178369920487, 0.624849534632115, 0.5254168665904286, 0.6319953399371026, 0.9265896924353434, 0.8974042068466135, 0.9521729763396045, 0.7145059126131247, 0.9283591875978681, 0.8177765773055918, 0.8334957435463355, 0.8466576013976099, 0.7467928235490122, 0.5539888732871765, 0.5295170317581707, 0.7604204903246063, 0.5852354039735956, 0.7016937732158335, 0.9207084316074852, 0.9802418249584258, 0.8196037006354054, 0.9879489164968458, 0.6655074590360694, 0.7393192858277459, 0.6771811718251054, 0.7368712940042406, 0.8234649307150509, 0.8129341887314229, 0.8835166682168922, 0.6686765004065147, 0.6749351020956684, 0.8628773103350549, 0.7073263860532147, 0.6003444022138241, 0.912146004328704, 0.536410304784299, 0.8051775171459388, 0.5288050315075224, 0.7930105941648549, 0.8296465801496365, 0.6005979069668486, 0.8336293260377138, 0.8132183420505483, 0.8460612676054787, 0.5991064879055951, 0.6076598248447734, 0.865946496082777, 0.9453251656664902, 0.7276448766325906, 0.7027841139381339, 0.8023728706448359, 0.8831317390181623, 0.673278621007221, 0.7794866082433778, 0.6088133326759062, 0.7767352707945463, 0.654510558281949, 0.760937651487579, 0.5806949256624785, 0.5020338947465006, 0.5540785507855739, 0.7706512791899702, 0.919488582072941, 0.9843489869790978, 0.7016913355318889, 0.5788381799136755, 0.7605563220009264, 0.6957540984861041, 0.6995617825600697, 0.6674000871456583, 0.7973861460662037, 0.5525939972204146, 0.9405866263281891, 0.8183352882425365, 0.8511856828297812, 0.727526084645464, 0.5455644508825147, 0.8906770623056869, 0.9067753996375494, 0.8476196822882487, 0.7586005612371434, 0.6799144721284145, 0.695485454438761, 0.9518725502176492, 0.6449714367040231, 0.7667639009906162, 0.5035484999017061, 0.5912717700391628, 0.95460898524498, 0.881248757139208, 0.8876275049329474, 0.6482752294911184, 0.6968252899187226, 0.948630602296614, 0.9050677650028406, 0.5150230450517944, 0.8686864080271743, 0.6440730233910872, 0.6465061505863109, 0.9895779454619781, 0.7004710538017372, 0.9888840539840345, 0.7525919827896121, 0.7254938437554062, 0.6751381671613226, 0.5199378896157436, 0.8205488880262768, 0.7602379222708957, 0.9013430407181544, 0.8051455443066656, 0.859797310569058, 0.5270464114384485, 0.6538620879373671, 0.760107342890294, 0.7574929978112417, 0.8028333931237748, 0.5722075864464804, 0.6792083003378035, 0.577786769056094, 0.6015800063399158, 0.5466664397121486, 0.7360942003796133, 0.6972605528935101, 0.9768928424936738, 0.9837276512886847, 0.7233627211353727, 0.8833505457579456, 0.6095138497630535, 0.8012529465787835, 0.7936402600927457, 0.6427654848603919, 0.9269196939663464, 0.8554245972676895, 0.9860973516872169, 0.8136454698306681, 0.8133681136954918, 0.7269322774945282, 0.7199883952078846, 0.8742895638727475, 0.9889003899819935, 0.6929762932265832, 0.8992139693226264, 0.6385796847697598, 0.909792982646037, 0.8054916675837234, 0.858331190307508, 0.5064528090759229, 0.5256858703332432, 0.8812881222364852, 0.6190707795822035, 0.6605335466931685, 0.5877849728585018, 0.5609027938608673, 0.5499711621287953, 0.9397192350903123, 0.5850595415170254, 0.5150358879840147, 0.6776610606632836, 0.8389675391369631, 0.5370759592395548, 0.8828977416882335, 0.6494875616517437, 0.6702052401784899, 0.981377529243769, 0.8619655460186177, 0.7800424344048105, 0.7606588447274742, 0.7718328214405776, 0.5051991234584552, 0.8823919807787622, 0.6780982050610046, 0.9564421875993576, 0.9431484330003932, 0.5293250340752714, 0.7127400278274784, 0.6656155365037546, 0.5160371864648624, 0.8482674976931635, 0.8504807213716092, 0.7785595331711976, 0.8418389002523312, 0.9549174131680974, 0.8766418532533475, 0.6355304787067, 0.9743756367948089, 0.9481094950483777, 0.9961485598170738, 0.8290291089869863, 0.7164014040792143, 0.948980757656387, 0.8329832447904217, 0.6048871850084669, 0.6426023276699631, 0.9142857628983183, 0.716074271241666, 0.7714442721774524, 0.7359991913038999, 0.7082490216721055, 0.7972047710794876, 0.5366914096914335, 0.7620873723533654, 0.8393816994683632, 0.6123301517322799, 0.9980013168557913, 0.9992312141466488, 0.8729095487809991, 0.6292193411558549, 0.7008244202826615, 0.794709090906992, 0.7788485572725832, 0.7959029774911828, 0.8639771109237733, 0.547599381549571, 0.8554777441091181, 0.977483367829197, 0.9881393017809134, 0.7940883347066278, 0.8723262196267436, 0.9056337406914947, 0.8951326672601541, 0.9127606936981207, 0.6580500880390086, 0.996471842544854, 0.7706650036514714, 0.657589725319344, 0.9535799317176379, 0.904188569851686, 0.6037171262106029, 0.934854647143447, 0.6298605347427322, 0.8948746197946272, 0.7958280241646917, 0.7040053270125142, 0.5176420630242784, 0.5924556029120894, 0.5565374282582092, 0.6842222246646963, 0.8546412409306896, 0.9187884603509908, 0.564651335117809, 0.8559067355551375, 0.5336729634140918, 0.8925476338461555, 0.7838203589772471, 0.5578430618447905, 0.9108245003714573, 0.8087930622447508, 0.5756580750693885, 0.6799562970455766, 0.6025060973725024, 0.744741704702062, 0.5840153630341423, 0.7528023707125273, 0.8234798327824463, 0.9448748699783918, 0.8502854807445961, 0.827770620065263, 0.8849283032729536, 0.8801643362382756, 0.9018816594047887, 0.597267145606071, 0.9743477969296299, 0.6099154664195885, 0.5151083463626123, 0.806072790386186, 0.8144025818785661, 0.6999590566730196, 0.9302960220671641, 0.9004450076206364, 0.7077085585839422, 0.5723589575721002, 0.928342460681599, 0.7842404275239927, 0.8523023127969644, 0.8152991015156562, 0.9094831553575891, 0.9279970844583821, 0.9237170695450316, 0.8867874314783932, 0.6292323746388921, 0.5960328018924381, 0.9588167660623674, 0.761293596582364, 0.7022974768717455, 0.9306698112770722, 0.8569146366261036, 0.6391053826898313, 0.9080317555175352, 0.5399781460193358, 0.674855211013706, 0.6182798723260117, 0.7202930357675645, 0.963225314242383, 0.6712352174766543, 0.6577568571859629, 0.8829231213435631, 0.9995262960159916, 0.8803949198224308, 0.9983925171685804, 0.5795198675884776, 0.7042250427962291, 0.6099507492618705, 0.7812676082306258, 0.7736206864236217, 0.5354234438503795, 0.6100772922573838, 0.8603717992666464, 0.8720621040991146, 0.9090948702288058, 0.594356959812993, 0.8765425564778663, 0.7842151858793027, 0.8556645599057944, 0.8645954200841492, 0.7445950225225515, 0.7635418683584977, 0.7975072472231313, 0.7188700245697862, 0.862203345637305, 0.6236923051110701, 0.5300195123915402, 0.6828423448998269, 0.5233642993409677, 0.9438930615606003, 0.665989484823927, 0.8620716526066505, 0.8224531352413951, 0.7562994768029452, 0.8516801884197605, 0.6490047614717729, 0.7960512212540996, 0.7541360748762986, 0.5165189936249714, 0.5139102688150736, 0.7981852100225053, 0.6298699078600023, 0.5205780721352399, 0.8936203315128901, 0.8662238668980426, 0.5610459614240855, 0.8673901886321931, 0.5677010417860345, 0.6405836648854878, 0.9058636388973516, 0.7636396689951684, 0.7701974180413633, 0.7510436982911448, 0.7236723576277801, 0.5044839992983623, 0.5351040402418508, 0.8384176384441553, 0.7869602538573406, 0.8154305566114156, 0.9473964049604309, 0.9604400322245067, 0.6819574646794279, 0.7683812732491976, 0.7841553531964729, 0.9727877280576038, 0.7081903322109978, 0.5344808049093303, 0.6634218380047494, 0.6555767875648553, 0.7497561219440373, 0.9058478836965262, 0.6135498302747086, 0.5389709395234736, 0.9123264382818007, 0.7041556864207429, 0.5652584041141023, 0.8849357861393601, 0.9710357933076649, 0.9367182133636014, 0.626504877976144, 0.8252751490316557, 0.665610348286258, 0.5373102982464959, 0.6172626677904145, 0.733879221049081, 0.653222555097559, 0.5679342695169207, 0.8792579849773707, 0.5744530872436107, 0.9685904199886266, 0.7326345078080678, 0.8479123570065958, 0.9233624385046602, 0.8417970327594277, 0.5481823135632155, 0.6546798848429263, 0.9723156589263264, 0.6833718836242505, 0.5142106804013542, 0.8644409942216704, 0.9799043822854764, 0.5303765199911097, 0.7031102856168787, 0.5910668419425751, 0.9717673532034782, 0.6170251140313934, 0.8580581954047668, 0.9553889903295849, 0.8810572069770337, 0.5390351217831935, 0.5742231045029258, 0.5920722147799338, 0.7398715377259284, 0.8747273108015514, 0.5661773707003415, 0.9237855877860662, 0.5225631864231713, 0.990804428191725, 0.5286017729059446, 0.9781767991951191, 0.8929914006672073, 0.6958358519271477, 0.8828064309675813, 0.5065537670481927, 0.8579228332613842, 0.7971196184981187, 0.5983169909843606, 0.805706970782152, 0.9374066938450174, 0.5464350632317381, 0.783178181026956, 0.6736909584662405, 0.8916626906632285, 0.5034448348923123, 0.8419607663290363, 0.5661889018304415, 0.8764869336680309, 0.986460168240753, 0.8987482772880611, 0.7393225809627795, 0.5133920625466775, 0.9207782955851533, 0.5045163613822972, 0.6440871378108697, 0.5840311616694778, 0.8560761759429655, 0.8558117742816651, 0.9397728917878657, 0.9040977183616138, 0.7472930587379276, 0.6988048967424579, 0.6988191635070113, 0.92739643816824, 0.815050583996284, 0.9456579467414419, 0.5480033548445555, 0.5663804781053743, 0.5166620393177901, 0.6211611197722215, 0.5846801885938345, 0.8395441971614626, 0.7346560265435158, 0.6940544500925465, 0.8670178415891805, 0.8326411435090559, 0.8533946165551994, 0.7356858720212947, 0.6147549009113886, 0.5460416818951713, 0.761646711263086, 0.9862498837426359, 0.6991422458589194, 0.9468927640363808, 0.8101226680847635, 0.9452031968695072, 0.9805980216475412, 0.5915865423071835, 0.945326893754335, 0.7184677799809484, 0.6054229194679897, 0.5822638559954239, 0.5021026374814597, 0.9186951023248344, 0.7368445129305875, 0.8693966964204556, 0.5081795748661901, 0.8784861028196637, 0.7311266927876685, 0.578726784504505, 0.9579280142697926, 0.7210524664663404, 0.6397721761292109, 0.6817153457092693, 0.6867994217346567, 0.9483536517998361, 0.7164814902775366, 0.5096220394992333, 0.7506307836000263, 0.8364105556892087, 0.9121417059462535, 0.7235646119748007, 0.6411057725244684, 0.577161445672429, 0.9245220251249664, 0.8434672201889977, 0.6184736276714307, 0.9110813697998883, 0.6443508636097224, 0.842503918584143, 0.6431045650428594, 0.7127275135748995, 0.6348459973071897, 0.7899120066782827, 0.5034391846537778, 0.561208571830139, 0.6063857832775197, 0.5549328624546482, 0.7443318115949291, 0.5474547055724427, 0.6516412067920139, 0.9138270181969448, 0.7886504065150068, 0.7763890564151646, 0.6981805604671938, 0.5369943247856583, 0.6331548592393768, 0.5399229507783821, 0.5665162572291274, 0.9942233688518924, 0.750344247379235, 0.5835139394622507, 0.7252057655164951, 0.9230855979179906, 0.7842263930278133, 0.6754812416765477, 0.9376928420928445, 0.9675023482043157, 0.5567677900098748, 0.9827817143606041, 0.7280711444096919, 0.9245252216655458, 0.7329154480861721, 0.6780024598559033, 0.598045184116834, 0.8978723813844367, 0.8925052242382208, 0.5341850693002961, 0.7800982524175583, 0.6605280020860824, 0.6739854714657906, 0.8722187281023281, 0.7155555188218417, 0.8686956457331989, 0.798859003594133, 0.756819403761118, 0.7705308459474565, 0.6951032716291933, 0.8273083703812181, 0.9090973331980687, 0.5412417951649764, 0.540228106947813, 0.7130839255198103, 0.8414028891206848, 0.6034853284486463, 0.5922156488584313, 0.8932378340377775, 0.6308833089960144, 0.8627430094677186, 0.5694273666719252, 0.6791186961703854, 0.5345946757307593, 0.9984199821673074, 0.6465057431766739, 0.9987307042357054, 0.5444316490404086, 0.7097656725358505, 0.7488219967451073, 0.773807306990697, 0.9440140404686987, 0.9627114534223535, 0.7466865892862404, 0.8930576691170957, 0.5978337094577404, 0.6750210271837547, 0.9184558901813114, 0.5954261629003104, 0.5902947101213865, 0.8329485445587209, 0.7397641666802592, 0.5133046443379748, 0.7599591049348312, 0.6669903174348256, 0.6200943975776436, 0.5006181296503247, 0.7219254352028627, 0.814635212985588, 0.8206303840835178, 0.9219142566235983, 0.5432622738920072, 0.6692750729585271, 0.8100777031574193, 0.9188609101013221, 0.7564899020012243, 0.8905741330079873, 0.8475127358456389, 0.7856946302638869, 0.775770070677015, 0.9246107650344445, 0.9630601572609329, 0.7316100413416167, 0.7355630865919213, 0.6395313502111626, 0.5927033721917008, 0.68437074659034, 0.6717707972812705, 0.676960161810818, 0.8784017390835157, 0.6967852860741713, 0.6410745157404005, 0.8237700914626517, 0.8548322784411112, 0.5519335884313625, 0.712441828661865, 0.6063043239930408, 0.9850386632547666, 0.976330515189819, 0.8918885813489041, 0.581820225729919, 0.6094472942583156, 0.842695572513682, 0.6045495855087302, 0.9802679944074175, 0.9646923366598017, 0.9949037133754735, 0.9760037866964517, 0.6304668774060248, 0.7878550079046482, 0.8908655709335405, 0.5032668240239113, 0.5638989378024519, 0.646764033395803, 0.5440709320923294, 0.5100314431173585, 0.97314427754265, 0.7658984139163392, 0.527823131202488, 0.5735980847341429, 0.6497860282661458, 0.7967600340130079, 0.5529582392835276, 0.5855923469889511, 0.6488803562316267, 0.8393294498840023, 0.9866172585363743, 0.7947354111399905, 0.9668891648374434, 0.8229926679416664, 0.7543116263480729, 0.8347269353396636, 0.5901446238986384, 0.7121818518038266, 0.5665873223776208, 0.9510777755857518, 0.6813765920751974, 0.6670623838231309, 0.83159400691757, 0.5506368345522556, 0.808896796136672, 0.8600561633113474, 0.9892957039975943, 0.6200931667596632, 0.5279876258591227, 0.7407322571801509, 0.8868647532279441, 0.5356148246548096, 0.9679160156853922, 0.9704390615283336, 0.5741492418611212, 0.5040639625150001, 0.76353137701725, 0.9136344447119865, 0.5260602509197444, 0.728518264792001, 0.811496270929076, 0.6233647839581675, 0.774201723696562, 0.8349164161040987, 0.9331671025554202, 0.9130710563347118, 0.7729867271051142, 0.7206505924349629, 0.5289219523415509, 0.5828930532644432, 0.531234830648416, 0.885834094679141, 0.5298689054900634, 0.9864728624879666, 0.6002894627496131, 0.632944021297438, 0.9798146639426251, 0.9370259341176443, 0.8145203132875624, 0.9997146820443679, 0.8802366709655994, 0.5350923151680019, 0.6619438683650607, 0.8771207215981922, 0.7964473701857069, 0.5509060034032391, 0.8623838466522925, 0.5280841777474831, 0.8302628502867261, 0.5175758105366155, 0.7238902363618089, 0.6494457604822703, 0.8525377812390778, 0.9663829988970938, 0.9236584640856633, 0.517896293885385, 0.5869677163894733, 0.7572509187579584, 0.9858937032552779, 0.8551822426687726, 0.7108667661526633, 0.7306429504262177, 0.9888668212924011, 0.5366335907589683, 0.8338193844921968, 0.5043448402154473, 0.5865148815312267, 0.7168372022263982, 0.5506984590864066, 0.5914608072993117, 0.9939783361101532, 0.607067108778377, 0.9246205890732312, 0.6625839898397623, 0.8372484827344644, 0.748521877132153, 0.945003959126341, 0.6229752622588272, 0.5730491615882134, 0.7252242919256161, 0.684154015096577, 0.9850372681972399, 0.5464468615877345, 0.8822784915058359, 0.6361405019194908, 0.7613772805123141, 0.9335989861816189, 0.8457243057589522, 0.5755072788652182, 0.5781899460528634, 0.6517624470129191, 0.6916262749948227, 0.6194448053129474, 0.8881363076748159, 0.8328805685285583, 0.562865919188977, 0.6547765951561209, 0.6854895332509594, 0.6330144875381016, 0.5735304006748296, 0.6615835654522004, 0.5712324173992644, 0.5604200277657534, 0.7504676348706458, 0.9825533739990922, 0.745421453843029, 0.5609979264401986, 0.7828382369314799, 0.8841383479243858, 0.6589912345471443, 0.8213368801424071, 0.9116996007210837, 0.9319431389035013, 0.5870714792293112, 0.5086156109259865, 0.6911442790028337, 0.9294812156254609, 0.5393771462713375, 0.6957539450375192, 0.5435890832627177, 0.8207729576088265, 0.9841484633718844, 0.889553077702755, 0.9750160395081096, 0.7789964972636991, 0.9252362295747545, 0.7846458306499635, 0.9624675358122271, 0.6828001970974704, 0.8241862484208411, 0.7966167420467973, 0.7320193768649441, 0.6425394322639626, 0.5777474626755728, 0.8336105474218248, 0.722985844136435, 0.6772856289141114, 0.6947096496463174, 0.7561378998395492, 0.9556556181342426, 0.948071778757297, 0.8426895955950948, 0.8458294617137816, 0.5063528838149713, 0.8936806935776631, 0.9621185607744662, 0.6589997089084294, 0.7601897115349185, 0.6083292534892681, 0.9496098806590045, 0.8999895796051958, 0.5765624253771887, 0.9101962987151619, 0.9978909644814926, 0.6973399868515604, 0.7704896690377124, 0.9873488320538296, 0.5698394529199742, 0.504701509041451, 0.9117528315016201, 0.5763151318959083, 0.7641564220712791, 0.6573601654593196, 0.5731509437073435, 0.8569145604908839, 0.5360835446910726, 0.6581004936376362, 0.8102112389781617, 0.8447204074474688, 0.8670489040738303, 0.7602423459566776, 0.8571969640443371, 0.8591701326307339, 0.5117368653254089, 0.9323529800294892, 0.8371735754842818, 0.8494804200961041, 0.7635395321035718, 0.64559716678255, 0.7141198278475767, 0.5757149751270898, 0.5173421829260025, 0.6389967984626339, 0.6891547757738279, 0.600946059387256, 0.5580246640705503, 0.8923648043063424, 0.9514563768220163, 0.5601386855222531, 0.8036802474798136, 0.5710317970552696, 0.9820542345462526, 0.9902774043605311, 0.9966872818675321, 0.9305627070475784, 0.879906660698207, 0.6450450893911905, 0.5301400220688051, 0.7108260830200923, 0.9714907062578727, 0.8662699982520838, 0.5919200151579826, 0.9921216252292753, 0.9075880012233373, 0.5571436209416419, 0.9394830677254056, 0.8911436176274865, 0.6594171826624406, 0.5161627110223143, 0.5130592145796906, 0.5703228263006976, 0.8701008055820323, 0.6700671813356608, 0.9663795522358767, 0.9527241353255523, 0.899519577878804, 0.918630507498496, 0.6830329993129832, 0.931841163187189, 0.8015044791447241, 0.5014764709630561, 0.8201413374542381, 0.5678943238461405, 0.5588564033482171, 0.8973239200389573, 0.9169507427668055, 0.9411984069788204, 0.9725562280339581, 0.9205855521424924, 0.6855737997172057, 0.748593853290098, 0.5992244838193557, 0.9332205359157457, 0.9560684814942668, 0.836068777771126, 0.8551915679372605, 0.5093461296919629, 0.9493798958581804, 0.7262128919929672, 0.7933845530224682, 0.7610862138492367, 0.8047708136401897, 0.8943008598229241, 0.5267632330470401, 0.8937280580388764, 0.9810716741844071, 0.9312316957980145, 0.5805991435453883, 0.7890079777035764, 0.5117277736430127, 0.6282934665451032, 0.85139080620455, 0.9019678174259923, 0.6657351720107423, 0.8938553016866251, 0.7049272510137965, 0.6945258126199875, 0.7059004043081514, 0.948380855211584, 0.7340481987303709, 0.8072899936226041, 0.5303114769910644, 0.6287347153849733, 0.9259324957518256, 0.6866869628358692, 0.8522376808335832, 0.9433349225997907, 0.536768906812531, 0.6728519657226076, 0.5962947453550325, 0.9680743811895324, 0.744929197612963, 0.6971645058654783, 0.827487948718874, 0.6856604461930043, 0.8704248319582895, 0.9334908365821672, 0.8181832273843567, 0.9700596280479364, 0.5059385436375874, 0.7355751573033961, 0.7223328785900888, 0.8879199183629283, 0.5347494124216221, 0.5934536816729961, 0.6136843455875587, 0.8591005952887524, 0.9277130298174368, 0.7523574535243682, 0.6656097687712634, 0.5335033697451163, 0.6842680345847576, 0.655663136574846, 0.70011151082936, 0.8232554373591787, 0.5238589754628635, 0.6087584929293838, 0.6671869912965014, 0.8326315274192555, 0.7742522006995398, 0.5537325555913691, 0.6521677321159023, 0.8798882539709205, 0.6123717559836921, 0.6785882746447292, 0.6272136612164513, 0.7108376770456418, 0.5612283812147231, 0.5286908330270621, 0.8174457586816279, 0.9483731787971118, 0.7146986518232825, 0.6502243687157461, 0.894469539266534, 0.7610446548889434, 0.7571074913371985, 0.566666058304849, 0.9858373722096225, 0.8537798456337438, 0.6009319231477132, 0.6483273880846498, 0.7931666150383769, 0.6956628123125412, 0.8205889280341463, 0.5849850753609784, 0.9073114761157679, 0.9814813302393595, 0.9728601091200219, 0.5670806630777886, 0.6496301894396791, 0.9496731681943046, 0.9671755345698368, 0.5702348021296628, 0.719099464483768, 0.6875936259374582, 0.7648749266987953, 0.784476898972434, 0.5159285021869449, 0.6749864148889266, 0.7395632867409405, 0.615981983622429, 0.8867270979332728, 0.7059014910186373, 0.978321332622076, 0.9417923959352313, 0.7993406420340441, 0.8366386584072216, 0.9307715648527777, 0.5600726531490496, 0.5880712138456711, 0.5983951307666675, 0.9329420873739579, 0.6313555150453772, 0.7308095510198824, 0.8662665963725709, 0.8592224358545895, 0.6213131387786593, 0.7032184133874146, 0.6306652472950449, 0.9171143427680186, 0.7291515664186743, 0.9496966981682013, 0.9005014459096883, 0.5666668961476145, 0.9727405492732739, 0.5568850457214509, 0.5565551153415367, 0.9440694835015183, 0.6244858724175646, 0.5368556543277295, 0.513145714406933, 0.912105700057132, 0.7919698871281347, 0.7994373862972356, 0.972454608847255, 0.8935914926490842, 0.8468213984749802, 0.8669093382512558, 0.6400949686931103, 0.9229053697378172, 0.742045771609395, 0.7422542829232779, 0.8477715420291292, 0.8614467872582942, 0.7415355161074333, 0.8109302814744042, 0.6260644300392744, 0.5161925282440927, 0.8294058354551457, 0.7838947292718765, 0.7385919194510293, 0.9200826689916561, 0.6245270788422322, 0.9123180684430294, 0.5727362444707718, 0.6882400061882945, 0.7044029992600586, 0.6596914595965843, 0.762253931319705, 0.6142888300516005, 0.5305089161892004, 0.9537811911126, 0.5742082437664799, 0.7241598196325172, 0.9924386367897722, 0.5027207323759416, 0.9688364773618959, 0.9617240002612781, 0.8710980653903008, 0.58137732130497, 0.9720301185670266, 0.848065534477027, 0.6786732076535875, 0.6323330181248527, 0.5037852173916213, 0.7791148319612791, 0.956842495560536, 0.839180271016019, 0.944985842034316, 0.5954747490330677, 0.8063097450626114, 0.597058774273318, 0.7907423317056803, 0.5393463455658639, 0.9439629173733781, 0.9583304884209483, 0.9534759804410744, 0.67444105518131, 0.5337152374162818, 0.961398680076246, 0.7262141923347576, 0.8925148819165526, 0.8256086812518708, 0.8495766501052251, 0.9596360511712272, 0.9924041010052738, 0.6063743111164712, 0.8344906306963944, 0.7592357320369996, 0.6906812770620713, 0.9869576345822257, 0.6754218719510148, 0.7904914731812843, 0.9350213464653251, 0.5461055903505115, 0.5553680156990334, 0.8073726389490712, 0.6751236108456093, 0.9860973059109253, 0.7178492209219414, 0.7901188841014177, 0.7873192650668389, 0.5993356261511662, 0.5100889345890661, 0.6919318108656527, 0.7275978483123877, 0.7231409521734902, 0.9331637226927385, 0.553055439232699, 0.5859463612979479, 0.7295034079862852, 0.8821849161866235, 0.6892790939723197, 0.6928949786808372, 0.5413229329456719, 0.7009876726426141, 0.7650303641250941, 0.5519464544662331, 0.6043596605601154, 0.7661881148092078, 0.5773609025747717, 0.6670943466088268, 0.8078162122135589, 0.5435900865172503, 0.9898403985331554, 0.7610629209196774, 0.6193710014552484, 0.8599001475860522, 0.6542561277575425, 0.8618990201248959, 0.5048627862008408, 0.8308871016441677, 0.9430229282173099, 0.6475964195672352, 0.5784739183355132, 0.7685567840475144, 0.74200315720929, 0.5993395298974609, 0.7809479897394032, 0.582673067952368, 0.7117875060836256, 0.8733261578716423, 0.6409351515749189, 0.8200401941408864, 0.8716724864800631, 0.7842078173859398, 0.6332311000112099, 0.6099222340500621, 0.5567882974518017, 0.6183269904665505, 0.6609114926345323, 0.7518116158820947, 0.6691284046709052, 0.9166274336541856, 0.9862939300158611, 0.9996412814435061, 0.6646639766399173, 0.9214417669361121, 0.6187375722441504, 0.564868815758782, 0.5208199538908163, 0.5326938068925324, 0.8118767939467505, 0.7912391291195018, 0.6754909953945735, 0.768111946905794, 0.8613936312480067, 0.511907115197933, 0.6704362861622514, 0.8801732922595789, 0.5518225701434445, 0.7885031082093772, 0.9861777058062632, 0.6276144165014097, 0.538442064536337, 0.6640556996850637, 0.6361595505674442, 0.8634047719780764, 0.708185660643599, 0.8426947344712397, 0.7629329694821771, 0.9274779429112039, 0.9495314152480776, 0.6533414614210937, 0.8932977385817019, 0.7931746746405695, 0.8524722936768672, 0.680725402491922, 0.5347198439633505, 0.850889125570614, 0.671357366632848, 0.6001471885983753, 0.7960821452114266, 0.8376136386203218, 0.560035389690226, 0.9985906210062678, 0.5594468107248275, 0.668358133653062, 0.882612115393391, 0.608191373516943, 0.5860980018239583, 0.8210403903358972, 0.9689860570784583, 0.5427247128882169, 0.7455053154211647, 0.6978572321064753, 0.7407487773213477, 0.6896434260467157, 0.8796860238865609, 0.7333113377617708, 0.8586544842322488, 0.5936334474720015, 0.694069978926257, 0.9630202456779017, 0.5776521478488275, 0.5669931716692311, 0.5014278035439543, 0.6269479177685748, 0.6383314778215063, 0.626295775918542, 0.9041167014666132, 0.9398436723139012, 0.6293974426298583, 0.8789298394695251, 0.644408930083123, 0.9389534032001052, 0.7829620938706532, 0.8421355140015155, 0.8289064177455877, 0.5609058583579822, 0.9188286971119604, 0.9843868619751581, 0.7143648168745451, 0.8616588104606229, 0.8114432252480315, 0.619500771971159, 0.5340963681466168, 0.669992610792259, 0.842429318732506, 0.9778685811409429, 0.798150600064794, 0.7793195068486564, 0.5511519431866725, 0.5244471508653155, 0.9249818927531497, 0.5175295302762719, 0.8578180070893444, 0.6736391858084898, 0.5051173163290856, 0.7632091203095214, 0.782873029080513, 0.9778023769967557, 0.8677214118557226, 0.8274821245881716, 0.7324888961115191, 0.8728508302574515, 0.8872141660484923, 0.6642000173004363, 0.9081503944409959, 0.6117640913750617, 0.6832322886101763, 0.5763588182898323, 0.6679347278068724, 0.5431396391654483, 0.5453129654974916, 0.8816750754301231, 0.8120040429719115, 0.9689224737930933, 0.8709723502315907, 0.6045418445311794, 0.5423160038469723, 0.9163602228838794, 0.8280101627265732, 0.7000871681667484, 0.7839562681141126, 0.7747116253205069, 0.6235390827918108, 0.963339620543326, 0.7866139489734887, 0.7029093683200422, 0.5820423355827181, 0.7602154521975965, 0.7395901262335578, 0.6038738851787637, 0.545550723417101, 0.9456246559334134, 0.7236808172943678, 0.8115467301075514, 0.7904634402794756, 0.836159275873968, 0.7519757611267197, 0.8020754347153075, 0.5209829859721599, 0.7570331773839065, 0.5522371914482488, 0.8509633157999374, 0.6305465930159276, 0.7438413854192694, 0.7090716800609964, 0.9361006887071255, 0.8706686829965036, 0.9567352815334156, 0.6821105067622497, 0.8900224767866309, 0.719549728203067, 0.9013157408251274, 0.6693990486710131, 0.8213531298680685, 0.8769982442107271, 0.7883738711888809, 0.9526145144953371, 0.6620685957055987, 0.7165880697462284, 0.8054664738539244, 0.955109984832922, 0.8997256732954957, 0.8157953171047094, 0.9235782359862486, 0.97103314353133, 0.9773849066215933, 0.8208205875414807, 0.8634169605675195, 0.654929071231847, 0.9585497505708924, 0.6639583442287313, 0.7288431829525932, 0.9842520137078794, 0.7598686764457012, 0.8686744580047512, 0.9443752623779009, 0.9483422341610359, 0.5400386753553023, 0.6081519916973659, 0.5127273490970631, 0.6218102109186598, 0.5142298101178777, 0.9854387134812601, 0.9012243373084627, 0.5728004954989536, 0.9469427640974682, 0.9159992778947073, 0.9693256671192906, 0.9680864328318006, 0.9482893179877552, 0.6758672337167716, 0.9648123247079541, 0.618917461323338, 0.9611326867645564, 0.7085626085211426, 0.7051166143194605, 0.5110951827498305, 0.6587166031976459, 0.5631166808272677, 0.9792807520336115, 0.8169974068010386, 0.8230564044105072, 0.5273568219540803, 0.9469572212781956, 0.8055348348830331, 0.6137857712572523, 0.8859009572842037, 0.7404098789279532, 0.6095640302579848, 0.5370817944797244, 0.8704942208957718, 0.9825942233441056, 0.7089843541816586, 0.7539104804626431, 0.886998207755388, 0.5121977086705511, 0.8466760818842278, 0.554225837407717, 0.6787252756106268, 0.7353849215199133, 0.6658881020311245, 0.6304901507457787, 0.72146695759457, 0.7286676450724014, 0.8149171215045083, 0.8795842752752576, 0.720432910490415, 0.5775108531605815, 0.527508132790979, 0.8626646663311937, 0.660267418155785, 0.632498273255473, 0.804841063001019, 0.707790251967098, 0.8727758517399647, 0.9840140273520686, 0.7555183424488188, 0.5472019048912609, 0.5373310831457132, 0.5047541893034637, 0.9734939126521265, 0.6151358560491663, 0.8662576219650686, 0.7635622571439129, 0.7375694345340914, 0.8207367693110605, 0.9206897913507995, 0.6336311757785436, 0.9042133657615139, 0.9504243313287384, 0.8280849225451592, 0.7898331716057949, 0.6027641026654937, 0.6829986850492133, 0.5709515695677894, 0.9734775146385011, 0.5531532626763769, 0.775327000196862, 0.6166914257501857, 0.5534171212814638, 0.9824256559240743, 0.9919767066405261, 0.918999099236579, 0.930001466961285, 0.514328637324972, 0.5155598804996049, 0.7132680948170198, 0.744394681319303, 0.9441210006664364, 0.6553154010698312, 0.7251091654468136, 0.9526743616334916, 0.9172004899900936, 0.9460089748409357, 0.9270885760033091, 0.5604627041641579, 0.6071100562203827, 0.7440343859961264, 0.5551035382279473, 0.9594244015136237, 0.797654494137365, 0.6394721973645687, 0.6859231021234977, 0.9048286999005777, 0.8346362040210119, 0.9249111270834073, 0.9077845313458928, 0.841882395145003, 0.9932307424505091, 0.5441414670544873, 0.8579469620694467, 0.517490302522512, 0.6141569712578321, 0.531721856179263, 0.9005482183713462, 0.5980904186884126, 0.5549282799667707, 0.9811681124046632, 0.5228766014051832, 0.7156335371969695, 0.5109027957062935, 0.8898506897422609, 0.762512272668606, 0.6227417841156355, 0.7087737933671404, 0.8699404855094639, 0.745534659910944, 0.7763022414439775, 0.5257384558734169, 0.8225344585846133, 0.8716801606254234, 0.6643047330347689, 0.8480226876388315, 0.7218566437698388, 0.8171328064120239, 0.5229270045724566, 0.8030360450332334, 0.748831517425003, 0.7904405016055602, 0.6602297183906249, 0.8437127742829771, 0.8389931052077613, 0.8847836259829249, 0.8807475506336113, 0.9077007352477496, 0.9098455294483645, 0.9778918889477739, 0.6648256141623573, 0.5203807328919666, 0.6273696408050307, 0.7806396876228103, 0.9859412991191252, 0.7851361264396521, 0.5301501598164307, 0.72550756809668, 0.9578675644440282, 0.9740667411746696, 0.8222655443800715, 0.7096994539164461, 0.7310294948381857, 0.9697510417222418, 0.969712203022915, 0.8215499023101763, 0.9940324544885937, 0.9461487524313619, 0.8351942963802375, 0.8587419875867042, 0.7765678736199253, 0.9314174092371358, 0.5149550503007307, 0.653174398504071, 0.6396005410186762, 0.593025439753343, 0.7421109864249039, 0.5764197891072906, 0.6428246370116298, 0.5688372845441083, 0.9121533791623508, 0.5301828810174289, 0.9581881551440654, 0.6903675742437012, 0.9398647523102411, 0.7125957022948244, 0.7414245195023901, 0.8757777097020512, 0.7977598904101656, 0.6253156769672833, 0.6457112879202753, 0.673834099922192, 0.9838646019431505, 0.9217965558891681, 0.5571677003114126, 0.5065421366504894, 0.7051142580177433, 0.9634678483289288, 0.8636403885908961, 0.7092234592495519, 0.7578080525785077, 0.8591199212293084, 0.5716792750332069, 0.8741749982900391, 0.9932880595168525, 0.8486675990480341, 0.7331041887399954, 0.644988134414197, 0.9741551512074411, 0.837196750540884, 0.6495100797839692, 0.5361598751642297, 0.5303654532037623, 0.5610933031757108, 0.9300532006614923, 0.8143403007791044, 0.6002071136178628, 0.9219669180906542, 0.7799702739108536, 0.5868798542748785, 0.6490854999074037, 0.6207503355448303, 0.5457881819361136, 0.6741238522640001, 0.9770484618106148, 0.5492813134634856, 0.943998404802411, 0.6119426989612815, 0.8535888304836314, 0.9889971445453631, 0.5688769628207936, 0.79324875475649, 0.8546424954674623, 0.985655499471527, 0.7347663865556533, 0.9802275028026617, 0.9473625234517309, 0.7537250490366356, 0.8014625893907095, 0.8434678118969441, 0.5044345359186719, 0.8353753404671924, 0.63274645295519, 0.5030030313252989, 0.6868064411265493, 0.7639752014947787, 0.9869752364554158, 0.6277150286366223, 0.8821889994362317, 0.6319038766658904, 0.7320492288063735, 0.5898707375575941, 0.8775139408447978, 0.5809444707960537, 0.891677979146417, 0.5793878970065149, 0.8660468836277746, 0.8535161682312331, 0.8643201203732473, 0.7472218684771983, 0.6416677393388486, 0.5157524054530984, 0.7891174640732752, 0.7997777624743931, 0.7144697816596057, 0.7271409258190389, 0.9999639305666637, 0.916198949178519, 0.642225797080486, 0.8647257686115738, 0.7543715894156395, 0.5447122436026477, 0.56612163858181, 0.6372473851402621, 0.5689077208274096, 0.5274753746175428, 0.903768352999717, 0.8111954528636354, 0.6299854563083493, 0.5466207850138858, 0.5652554464656121, 0.5599505095644961, 0.7606779508601802, 0.6938167464616347, 0.7483061396655556, 0.5713339496286565, 0.8942123676712215, 0.826903812865036, 0.5519809540112129, 0.6149117164668673, 0.862187763674491, 0.5210948069096383, 0.5214051564962712, 0.8692056754843183, 0.9588262171447631, 0.7479615656643667, 0.5573889608688836, 0.7419843328075988, 0.8129383215437248, 0.9223202141007627, 0.912784743029862, 0.5277360128099193, 0.510812487558687, 0.6901409449862935, 0.7483727942457514, 0.8357668207954456, 0.8073846864988637, 0.9776037678971781, 0.909183407094093, 0.7722787672293323, 0.7168197338110702, 0.7715489884029806, 0.6481887529931294, 0.942365773556563, 0.8641291852288187, 0.714642142322214, 0.7447132919084116, 0.7432051779108788, 0.6204512913130549, 0.9220245634518769, 0.9124019419678551, 0.6645953606487323, 0.9471422158611087, 0.5160375657181606, 0.9739610054129633, 0.6804222702871184, 0.5325628817763556, 0.7689623677808268, 0.5440610893743816, 0.8416951702822268, 0.8526098692623635, 0.9423933364437453, 0.9525281183839067, 0.9776681577626934, 0.5974011923858482, 0.7708244322587449, 0.897091566814284, 0.8331474738348768, 0.5325178432237803, 0.8085963375378439, 0.802950734163187, 0.5252358651432504, 0.5805318246687139, 0.8027086607972846, 0.9166339573985287, 0.5943297851813552, 0.9173764363926347, 0.9951961055596474, 0.7916567950298452, 0.6764453953046499, 0.7293274576941657, 0.9470272571457097, 0.8386471928720113, 0.5503495447496376, 0.8869271920202741, 0.9193748906395959, 0.792557685207167, 0.6080193949890493, 0.6015913641000976, 0.6878743483148129, 0.6980604090043263, 0.7339305438880948, 0.6603497330285603, 0.6963981854895382, 0.6034555297884392, 0.7595247404190705, 0.6219780736730613, 0.8913417901345164, 0.9429480107146226, 0.6120414023349655, 0.8838714788107344, 0.9132691435726232, 0.8686722777007349, 0.5678145848947925, 0.8297765207483904, 0.9928505226248882, 0.6886028903147381, 0.5742115845935585, 0.5568286772491866, 0.7517429711734817, 0.9410243777980367, 0.9524992780385522, 0.8072788773359793, 0.6396444315234043, 0.8553908875366695, 0.9210995166283062, 0.8953106812634887, 0.7432641386289811, 0.8707708568931384, 0.9709504342172949, 0.7097542709665212, 0.7484824790492752, 0.5086350352682456, 0.593401318015376, 0.6063819841498543, 0.9264796601537078, 0.5156391051589783, 0.6015042739575033, 0.6324436036459132, 0.5650033917685939, 0.9720816346338809, 0.581498658509243, 0.7689607324008282, 0.7505317755091052, 0.8870930336333405, 0.5927435397766108, 0.7708518534531108, 0.5203331334433441, 0.5969962699442484, 0.6212842943528183, 0.7290434247432719, 0.6637984907107748, 0.971430756026563, 0.9129453864797795, 0.928910543163637, 0.9510477553223426, 0.5898524062933967, 0.7157054714162676, 0.9911687899444992, 0.9776412830066318, 0.8728447631829647, 0.6016309002279717, 0.5539567469568474, 0.6301356847346192, 0.9987629167783105, 0.8610969282489047, 0.649453669361582, 0.9066638349535712, 0.9623865778000877, 0.7128603853605366, 0.7583777152314228, 0.8304239112618179, 0.6148356822003972, 0.8009619038271152, 0.9383327332663217, 0.5014196309257998, 0.6417455101360618, 0.8972168446453759, 0.74451243986451, 0.9877099737790414, 0.5529979228710091, 0.6936500664089625, 0.6915619529213626, 0.5173248131428472, 0.9028754357829796, 0.912613703318198, 0.7695507603468001, 0.7924263513695149, 0.9279688372945729, 0.7751540672152876, 0.6183270867893245, 0.8830792733112311, 0.7154816240499537, 0.7223885439577244, 0.9359661102355741, 0.7530422322381678, 0.9780958665863322, 0.6801756627229485, 0.7319235850007928, 0.8212246606668502, 0.8970816527682294, 0.5059475258147375, 0.5560935585222611, 0.5815329416034043, 0.7189505510590428, 0.5716403725421355, 0.5524484926759142, 0.7364671684028035, 0.7232399802611946, 0.7209780381516466, 0.8871798485724254, 0.9243018363282067, 0.6519961536657689, 0.5533478789138402, 0.6913730953031987, 0.5400488229819025, 0.8140664404133339, 0.8018909220582668, 0.635754078761313, 0.7115972553935215, 0.8380269628989185, 0.6176137166897357, 0.9302530357709167, 0.7966435204795981, 0.8144611185243994, 0.5895957244115476, 0.7668386332874331, 0.7871884473428667, 0.5870668789659491, 0.6744941665444777, 0.8479749584417895, 0.687168532584527, 0.8355515973002203, 0.5338453811363938, 0.9749308885602334, 0.9661974796696317, 0.7991209758926355, 0.8674145726946049, 0.8495158200384989, 0.6771666007263254, 0.9896296813608728, 0.5431377134937323, 0.5072322694142711, 0.8869482627154897, 0.6940318998378987, 0.6644920856775509, 0.8895042201608822, 0.871642130595423, 0.8627447519069067, 0.5002037272031596, 0.9713614498081735, 0.5731778666255332, 0.7859439906497514, 0.884517519348667, 0.9179171113212999, 0.9290932467535722, 0.5119883544543659, 0.5498809809594594, 0.6703202493329616, 0.9696744318073277, 0.5706271776537779, 0.6984111491602931, 0.9247481883071941, 0.9008331419584594, 0.9057134732023735, 0.6601774867383399, 0.8712852953480053, 0.7416491453038931, 0.6781040674502236, 0.6720880347301579, 0.9233351730382324, 0.6025733012451097, 0.8271442527531928, 0.887332842064275, 0.7952025025952845, 0.7695097950317094, 0.5402199389669886, 0.53686005740241, 0.7170066257691321, 0.9380342392350649, 0.7580295788323763, 0.9629305971508132, 0.8861678446800381, 0.7578623186632775, 0.6035273177021386, 0.6965818816121918, 0.7478890481102423, 0.9258315361165244, 0.8976331936192106, 0.6801202133380542, 0.8344588594027444, 0.8984609869142464, 0.7538357816195196, 0.6337866127518432, 0.8267746001163521, 0.7746069522502568, 0.6370398675456465, 0.9670138884952013, 0.9906122940011332, 0.8598301133282746, 0.8545777090190478, 0.5172308703411288, 0.6908823758133875, 0.9442826464500162, 0.5578655470604685, 0.7523324089392256, 0.6492658532272144, 0.9092739654828026, 0.7399374051871781, 0.7771178816840916, 0.8853292481309183, 0.778516583918369, 0.7204009388853817, 0.7710296620864823, 0.619282496417022, 0.5880763585677231, 0.9397390041963247, 0.8391394809399924, 0.7946023326976057, 0.6141167981032695, 0.9207796367319712, 0.8244726230743162, 0.8834660774290064, 0.7576082850820262, 0.6053359249369117, 0.6333255588211226, 0.5581713139407329, 0.5082012779176881, 0.7640288785548647, 0.5585283192048567, 0.8062208930294339, 0.5349057881890877, 0.7342877953064768, 0.7756963370148113, 0.5335616081286589, 0.5831424503596874, 0.8901328220934567, 0.5416087335249264, 0.5631541376469956, 0.7883572726231529, 0.7516042174084525, 0.9792539123588782, 0.8265837279718554, 0.7153654571554642, 0.6522595139176854, 0.9928636396149069, 0.7725005589850082, 0.5704094935738864, 0.5203701618270329, 0.6161906613427593, 0.8256970733953638, 0.6660789784899271, 0.9387430816569996, 0.9925768477496333, 0.8847123156407828, 0.7953983050119949, 0.754670345196138, 0.6203102728502087, 0.9525893720623005, 0.7992923598217678, 0.7565365455317155, 0.792351350903465, 0.5988005090797772, 0.8570790762767335, 0.5206428560753471, 0.9322517168272717, 0.828951731968264, 0.5296370699348167, 0.8611781515802177, 0.9650565639149782, 0.8788394766208478, 0.9538184028224921, 0.5967536606671482, 0.9290944790283908, 0.9426336435940148, 0.6292833031744792, 0.652567985853039, 0.7685958365535213, 0.7634575492314736, 0.9855341374610006, 0.6647931239360179, 0.9651960766869464, 0.7842138457958852, 0.5672945642808987, 0.8170584153538717, 0.64579992148479, 0.7400903132988069, 0.5715871240312966, 0.5446780048806148, 0.7499719311411597, 0.8098130144682041, 0.9500987887382788, 0.5233114044209984, 0.6481702357544535, 0.6237600920122748, 0.9015915482013674, 0.7073483081478968, 0.6396453316135385, 0.8835747915755918, 0.8716806639867614, 0.6441853369798138, 0.9975190684571618, 0.8622551273706589, 0.532339880226405, 0.6758866087800227, 0.80786327250495, 0.9650001933993737, 0.6206258992213165, 0.6039371947809027, 0.6670959033250105, 0.5683305459001319, 0.8849566641395633, 0.9060798755116914, 0.961894095502624, 0.5717315292812719, 0.9186510507824017, 0.8045047937793606, 0.6587122358353165, 0.9444153906150662, 0.9621980938136657, 0.6161916275671302, 0.5793625006371174, 0.7515319692794368, 0.6434952309386522, 0.6949132334411579, 0.8586314417408502, 0.8867332600438991, 0.8917492016675451, 0.7776638792216272, 0.8937192710022224, 0.7567667752528903, 0.8144799541370784, 0.7367240867740276, 0.7930464917039852, 0.965994109505451, 0.8515048070843096, 0.8645975028268356, 0.9055346530653923, 0.6393105923806188, 0.7775845804854216, 0.5038003608092391, 0.555086990987425, 0.6577259910013531, 0.7062359404361537, 0.6613742625532223, 0.8518387790792659, 0.6158251816943844, 0.9088999333982075, 0.7128094728070339, 0.5251607525959204, 0.5297707789956094, 0.914100649601922, 0.7553528141785457, 0.9023806056825243, 0.5780130338134408, 0.9451604386841194, 0.854397333459304, 0.5338386936545971, 0.7980471294124992, 0.5934284326017094, 0.6635569589229267, 0.8088074401250142, 0.7289067006959933, 0.8179338798966473, 0.7464760626580157, 0.9267204594718439, 0.8717421145500927, 0.719060334006312, 0.760955930883281, 0.6758485180087788, 0.9727060889995859, 0.8563648579446694, 0.6751197376993588, 0.5249685528587786, 0.94613327287092, 0.500979447882443, 0.6242413006337917, 0.9949668845763088, 0.9950453957133307, 0.5997240843557987, 0.730618597579606, 0.9874593572001016, 0.8533356273204806, 0.5205821764466355, 0.9767101108214851, 0.5019616990659712, 0.950843530798372, 0.533711070446526, 0.6577101305968616, 0.8193078848768582, 0.8674892693245313, 0.6364036782060298, 0.8830400264961091, 0.7789632026762792, 0.795424660150987, 0.9588269270493608, 0.8723348091367842, 0.7746566158120394, 0.5276887592636068, 0.8976494840639438, 0.6934053732064183, 0.6941428566562993, 0.777023777349255, 0.7164898103950583, 0.6223409239426227, 0.8397478604187409, 0.6910606280716611, 0.7932971584793247, 0.7666161037765364, 0.6357402468879254, 0.9652221717402235, 0.9524488928069887, 0.9074332541090065, 0.8979807081130162, 0.8647732245395809, 0.9795009037535523, 0.7586484919748203, 0.8386377160785379, 0.6871218069980511, 0.725580726690113, 0.9659933676297937, 0.9563349059048101, 0.6984084765908859, 0.5014205405887184, 0.8065172243029484, 0.6386501440481918, 0.8088694042206777, 0.7640641149890267, 0.500948982595546, 0.8026761330234604, 0.5931969470367185, 0.5752104294163729, 0.9221053874829852, 0.6666512205017027, 0.7615615033716017, 0.7741486125745121, 0.9442162428743156, 0.9405085200581413, 0.7896804319708413, 0.5616498421731594, 0.580040104789769, 0.9007847089846459, 0.5494075810983199, 0.9347390304711352, 0.8495114597324316, 0.892254846568785, 0.8637237816624128, 0.8739343014286758, 0.7134661971880205, 0.5664558010561636, 0.5238816984066885, 0.5837338039043254, 0.5199386070452046, 0.8694419556792787, 0.5549435852456462, 0.9754660209154864, 0.5052283671783244, 0.7483272982708091, 0.5213005749240338, 0.7357328453430454, 0.9264085612972905, 0.5738748008765108, 0.6251974602178683, 0.8199823560300588, 0.8893596420364689, 0.9367316048012052, 0.9406642604760647, 0.9664446915098357, 0.9481251557355438, 0.9350122723414193, 0.8084313622218866, 0.6413955000374827, 0.5136638444642464, 0.855458184802492, 0.899810530580535, 0.5050440550146135, 0.7312330737794637, 0.6130358549978859, 0.8268410820633143, 0.9471644096678402, 0.8334527693375835, 0.7877293654537559, 0.9213913505800664, 0.9151554986004754, 0.8778388446955532, 0.6913264858333901, 0.6506029569375731, 0.6737809130502992, 0.5940911828845301, 0.9853112349799917, 0.6965909494908016, 0.8611563772364188, 0.8207370813654093, 0.6982823580949129, 0.76597613336884, 0.7767479753785576, 0.6644566577208799, 0.5347089747931824, 0.8923968834643594, 0.890374996451944, 0.7596112416351946, 0.7598070148388756, 0.7467590585836601, 0.7186709012340029, 0.8311821012966585, 0.5149009021161665, 0.795664009574446, 0.7092346721528461, 0.9356449626194265, 0.6357056450158625, 0.5097370550206247, 0.8253955367301602, 0.5295784240797461, 0.5563954627535876, 0.9460093885183273, 0.8814071068128756, 0.7055757928619153, 0.9852913182591951, 0.7104213144227195, 0.9042535813184945, 0.5181038915451293, 0.6863763286863458, 0.7564934829170138, 0.9578288949199127, 0.7623866154671937, 0.7811520605783333, 0.8238652864910492, 0.78660511693147, 0.8170809572733737, 0.8677770509028537, 0.6173976250117845, 0.9459962164715077, 0.9104832025460767, 0.5907099984920465, 0.5392388736340531, 0.8382722292924127, 0.6670879685636519, 0.9027516393207573, 0.7917389259941734, 0.5660666817778657, 0.5853943488798223, 0.8943586318809054, 0.9944920521731702, 0.656537075602493, 0.511730640311165, 0.871567624854745, 0.8276773091802647, 0.9319792489961845, 0.8946830848411731, 0.5785743853328457, 0.6138808883635949, 0.9652177633846668, 0.523079493646052, 0.6977529841313386, 0.966968281332838, 0.6068546151399442, 0.9575340982122296, 0.7644518931386369, 0.9312396380015809, 0.815058570370055, 0.5901337314842644, 0.5153044846300543, 0.8335530312747594, 0.7509230683971082, 0.7343047725489075, 0.6656566384862812, 0.5787119685200404, 0.6081743649522444, 0.9411301270411438, 0.5184804359076163, 0.9265645109534182, 0.9406496524250243, 0.5679863844455085, 0.6394374559773653, 0.8743153153585919, 0.5771924426310102, 0.8191819754261027, 0.8900220606960729, 0.7619301258528745, 0.9492230704435545, 0.9128933329916722, 0.6557614736855369, 0.6041172294689833, 0.8025653278252575, 0.72891728742453, 0.8919341377940877, 0.9992079859572768, 0.6067631459816911, 0.700462265710103, 0.7803646383803566, 0.869790099843909, 0.8755125668497709, 0.5374817853888632, 0.6654860106391026, 0.8637913679254838, 0.685534138967707, 0.8398387525677484, 0.5808754563911681, 0.5397723485179406, 0.8674320457181518, 0.7459863364890259, 0.7856697714997534, 0.8995647731486588, 0.5834300347854745, 0.6620429576084792, 0.9821225441347241, 0.6751937799570888, 0.866722715044939, 0.58605452990327, 0.893722338153788, 0.9603563322315168, 0.9655845076762357, 0.5017834559975836, 0.9652989752357083, 0.6061337462254088, 0.5693503822891821, 0.6116366151760355, 0.6422092866275282, 0.6337232855600817, 0.7590260356165701, 0.6724412187303077, 0.7230336514604185, 0.5628046169321159, 0.7256647692041556, 0.7306257302037146, 0.9671162479882967, 0.894613122593064, 0.9235967452593639, 0.5611858157596585, 0.8384589177985535, 0.7032595882888614, 0.6340608936938448, 0.8945609922968818, 0.6566925224590456, 0.5263091193286021, 0.8285850805556805, 0.7526950024424262, 0.5062920948424816, 0.5484573190670928, 0.9251987616398982, 0.7292696345713927, 0.513651433109472, 0.7327100231081856, 0.7895480911342125, 0.5861643591279578, 0.5815812926928399, 0.6681716202938579, 0.5390559925086003, 0.5124023792013563, 0.6797126705728982, 0.9252611367391976, 0.9160592940650616, 0.7384196708103, 0.8713245641278897, 0.7566865286303821, 0.9710823482674634, 0.6608802568614007, 0.791500819058753, 0.7734316729304402, 0.5101145694655641, 0.6447622398482695, 0.9547850639698328, 0.9701113456138251, 0.9569161173372741, 0.891950915353344, 0.5377869428896457, 0.7867075460236196, 0.7707193488140147, 0.9248134988596326, 0.7971540443123245, 0.9034639497640893, 0.819407747031602, 0.9779837388186927, 0.814337669482081, 0.7962153807737865, 0.6483743603706655, 0.695896730580631, 0.5577516735681548, 0.9205968351762988, 0.8172842150961732, 0.5168030784659812, 0.7647376518444096, 0.9124361403730561, 0.5760986263993971, 0.8877165758343295, 0.7262016591082173, 0.7434000187650095, 0.8202192711196621, 0.6813909390056994, 0.8158799505217533, 0.9548714315002993, 0.7438731939262868, 0.6967694397664628, 0.8573506944499897, 0.5789372959616045, 0.5929426637331895, 0.6343452144516416, 0.9586516063847283, 0.9118489785774617, 0.9816703124590636, 0.9346907235814866, 0.528624551734534, 0.5651985876356468, 0.8080228615256345, 0.6526212106426221, 0.9509598381295372, 0.5389574193032908, 0.5039508046766795, 0.9297450922566136, 0.6274706702598325, 0.9438742826649921, 0.8679805161904538, 0.871853176953139, 0.8106402134595792, 0.5583474282263374, 0.7926059216037629, 0.6150549077581944, 0.600614366384655, 0.5075091591550409, 0.5936487113376948, 0.5907013238167838, 0.5225836134850186, 0.6855752202905244, 0.8507484359975472, 0.6031014580994927, 0.5689755095570617, 0.5366260202554471, 0.7102906288179196, 0.8906573882208333, 0.843501151006271, 0.777849773720424, 0.5174056976988792, 0.6065713719656127, 0.6360923318259684, 0.7845531974838429, 0.5933073924200141, 0.6398065970371095, 0.6454059449230611, 0.9920396932149878, 0.6545002882065519, 0.5543546126543748, 0.8435148714085048, 0.6251747302681807, 0.8935238237165058, 0.6787286917582835, 0.689230242494243, 0.9748642053699663, 0.7508258983186118, 0.6914805465779565, 0.6286007403212329, 0.9615232390527809, 0.661688957111846, 0.821092466914969, 0.9099697188781724, 0.9671404316725121, 0.5447618504226935, 0.8866299522564816, 0.5358815893321416, 0.6408395985753772, 0.9710636563214945, 0.6514357622790419, 0.9613688207675868, 0.9438818414176804, 0.7373649849537047, 0.5657502875170874, 0.7335856502944877, 0.8747962038653859, 0.780071146279733, 0.6403057753906292, 0.791987318921828, 0.7875738944818464, 0.7805354110896356, 0.9682439177926467, 0.9747892972816186, 0.8872395317835762, 0.6549321420214719, 0.989000396838768, 0.8964954322714052, 0.8272618978555389, 0.7341767354306388, 0.6861158001800324, 0.6459606617939561, 0.5252778240650545, 0.740641370885043, 0.9137988188164126, 0.9053862111845994, 0.9970651919114984, 0.7232697086571875, 0.8170519185995259, 0.7184777864387679, 0.5154022942150569, 0.744141466099532, 0.9771803679792146, 0.7349832027607712, 0.8921207899466872, 0.7995589352705383, 0.7137649609775916, 0.7031815436181621, 0.7371115242853015, 0.9467926931562983, 0.5209581910206462, 0.6245096809044837, 0.8284484860780641, 0.6510230667973507, 0.7566406296208783, 0.7890480241936735, 0.999713840559733, 0.5590976061305762, 0.8199715906089289, 0.7776824947953314, 0.6758316608152677, 0.5300752530079195, 0.7755047917996425, 0.9801919617244621, 0.784498473184734, 0.8196402347581048, 0.6082983704510738, 0.7501384272596219, 0.8725527787654219, 0.5784250378052141, 0.9809599075162261, 0.9199805458547824, 0.9566484851264635, 0.8597057493320748, 0.5821040575807632, 0.5771889634156784, 0.500538849069523, 0.9554682610836344, 0.9808170259504837, 0.7462889867374674, 0.7499626819969536, 0.9039854462196257, 0.7306784098906999, 0.8104280902474208, 0.6767715099936891, 0.7818463555021067, 0.8222694073688832, 0.9418519825770393, 0.7123941581226427, 0.9098082930000861, 0.6925504286714312, 0.9568886882741827, 0.5743658781926425, 0.8709225169868707, 0.7200405884581162, 0.7466207579423814, 0.7657285708883351, 0.6387375567671463, 0.6472981986864287, 0.8978283007693777, 0.5511912958750522, 0.6642739213862565, 0.6528601323930936, 0.7706149378957818, 0.8669845130605052, 0.8284812144256429, 0.7626696592149467, 0.6587969809766158, 0.5473813405646117, 0.8209757319866337, 0.9536915573697883, 0.7080883339820073, 0.9887495461491469, 0.7040086306599953, 0.6335837159813924, 0.7078900324529955, 0.7075905000605471, 0.7499456952779286, 0.5664284773187231, 0.7355652308486305, 0.7108514669299053, 0.6577800123517672, 0.5742456337917109, 0.5287473280839261, 0.52767341974269, 0.7871785711004582, 0.6587048174412778, 0.7872054350036024, 0.9170905104279052, 0.788892884139256, 0.8650594546778456, 0.7176473870389966, 0.6651621174890908, 0.9413006945727379, 0.6484411489146227, 0.9398869058482262, 0.66226187291585, 0.9805859682060765, 0.890865793708224, 0.6890362227343396, 0.7758255809632312, 0.7640286964664397, 0.971937648737546, 0.9201875092112834, 0.5478687037741682, 0.966219257119086, 0.9132448024396352, 0.5084808686867224, 0.6761991539674106, 0.9241895193509921, 0.6866428977123666, 0.9855305566506245, 0.6521785465023979, 0.8056568625094456, 0.6336891639439025, 0.744011817115764, 0.7593391614096905, 0.5801211333418241, 0.9665425556924774, 0.8594423616923071, 0.686728702614316, 0.8307160172133004, 0.9163055804928302, 0.8267132622934343, 0.7622300014085921, 0.9322752151301561, 0.5906053379246277, 0.8574482835387345, 0.78645353660201, 0.8972051813608082, 0.5567465078516607, 0.6548431722773207, 0.7454381198819513, 0.7950146263027338, 0.723351609232828, 0.7859458216799671, 0.5380301598337749, 0.9469180609474166, 0.806225765046765, 0.5627308976274237, 0.6611208831023688, 0.5805420030774576, 0.9517485855300983, 0.6868927987441809, 0.748508788571036, 0.8047097644276682, 0.5629807156276584, 0.778351523074682, 0.9491130658404168, 0.6748247984314488, 0.5711951610463992, 0.9238723142278025, 0.9298129009935868, 0.8496649205669475, 0.5898525614126104, 0.5289258384983833, 0.6229264340780768, 0.878892136449965, 0.5550051226850323, 0.9586138646414113, 0.6585997218048913, 0.8869895322342825, 0.8215207071553856, 0.5323013919068955, 0.7885752834841571, 0.5645266021377835, 0.6897507516898856, 0.5798075886070015, 0.9841600731332908, 0.9146122486969188, 0.5890937896171107, 0.6855653815170081, 0.7720087612369293, 0.906015728882972, 0.5981821743022697, 0.7315979107324717, 0.5931322186480688, 0.6751757840454089, 0.7331696871007267, 0.8523488389023419, 0.7345070796882086, 0.922034687997283, 0.7864463715734495, 0.8509498587123951, 0.8763188988334711, 0.8730461878297854, 0.8308439676584934, 0.8915145138419411, 0.5043841209482056, 0.9843642852414571, 0.6166438101939209, 0.5395168760803872, 0.7934117589758187, 0.7689204223187168, 0.715388260933844, 0.5045883617335105, 0.8204809278910501, 0.8555168883106893, 0.7809566588411196, 0.8382421489648525, 0.8750972674095362, 0.5132702832584233, 0.5253963288346992, 0.9984356328520595, 0.8432403821119563, 0.7902150435054798, 0.6625718319858946, 0.6572300665319424, 0.7316775921530829, 0.7400641054967052, 0.5144663632928599, 0.5479262012144, 0.9967015407921558, 0.892207213217479, 0.5647839002765941, 0.6736506295429685, 0.7753603523054027, 0.6195834856016174, 0.7317396376547716, 0.528840020478067, 0.885573371568853, 0.6487849329277127, 0.6619357853859233, 0.7943832905582404, 0.5508257584277427, 0.930939576818858, 0.8581962005031416, 0.8467511169388927, 0.7517258343320541, 0.51771494387126, 0.6768249179465464, 0.5664040524003249, 0.8312663162178753, 0.8593513084013391, 0.7174266684821575, 0.5711854428206081, 0.6283845163076676, 0.7306336323434909, 0.8103321610571208, 0.7772277310291125, 0.7857519922059626, 0.9951043587923933, 0.8783600037778407, 0.9110440587800642, 0.9185327795544831, 0.7892956435792109, 0.9963870732280173, 0.7731671785277805, 0.6413518773064115, 0.8960764125550666, 0.8944228265396892, 0.7394422871439343, 0.5998351699327686, 0.571846440358444, 0.9829350359539537, 0.5448070823372901, 0.6448290127546006, 0.9230085938478617, 0.6716960414924572, 0.9528013938111491, 0.5806863651352105, 0.578690146268898, 0.9581537625387206, 0.5771150049939704, 0.9742991103571533, 0.84645750110242, 0.7463268668997072, 0.7779612478024481, 0.9364125563961585, 0.8521599361206973, 0.5581310409116236, 0.9694599257816494, 0.8683633579882143, 0.7083473218930165, 0.5481965965222376, 0.9240699945087192, 0.5152880290958592, 0.8541054134967982, 0.694968099230252, 0.7840204309870139, 0.664607596260643, 0.6137941572150041, 0.6488594678321434, 0.5845258502103479, 0.7599808744766867, 0.5331205004933853, 0.5569669090621239, 0.7074838082623562, 0.5319993088242498, 0.6261876728570767, 0.9126338693056125, 0.7270502910071446, 0.7143393433766865, 0.567358529637495, 0.5916169176678321, 0.8593911496612691, 0.601639820912363, 0.5380373492526963, 0.573946400385587, 0.6091281427175608, 0.913212309761001, 0.6816538078623968, 0.5100610216910204, 0.8655379233908347, 0.7763671408136549, 0.8059079811456302, 0.5601744644324578, 0.8092340699812104, 0.6559641059771102, 0.5306301268496003, 0.7136695682397173, 0.9547667608232999, 0.7263052416518749, 0.7592500230500423, 0.6990273813808081, 0.6844748882304323, 0.7290761329022957, 0.8246751114866904, 0.8777994156190627, 0.8492793754318766, 0.9985546619411992, 0.5282061813228303, 0.5180321730486314, 0.5064470998948851, 0.7272792039479602, 0.9147032832289452, 0.991500106838334, 0.5937166823514937, 0.9441827912778593, 0.876993057961981, 0.9824833863104521, 0.689128391421013, 0.9832371152118904, 0.642201205297162, 0.923192150524523, 0.606665037175227, 0.7065400728757985, 0.889525917415597, 0.7512891078406572, 0.7531371283322071, 0.9617782282510156, 0.9703425890963656, 0.9168887801562433, 0.6156989511864648, 0.5824050563998774, 0.6449982475945033, 0.5700345450735294, 0.9491067093357564, 0.6761782476331862, 0.5418926758531517, 0.8020585024541642, 0.8781268030003029, 0.6209816710502959, 0.9629639010199041, 0.5696426805914039, 0.947368644554208, 0.6603328744361319, 0.5498448754441638, 0.8509577748514776, 0.6003809174694779, 0.562503337766918, 0.8932495582160201, 0.8045573484436193, 0.5272617867033791, 0.6481202398295258, 0.5153300078331859, 0.78523135345719, 0.9398252230662877, 0.6401106089624342, 0.9986967080123461, 0.9202659374242574, 0.8514181771755991, 0.7672996459581823, 0.9616241799819711, 0.9866681987817225, 0.600639568855992, 0.8431178942257647, 0.8848968239868278, 0.6141656603566054, 0.858288988700957, 0.9692848797944844, 0.8517663666591805, 0.999741417092963, 0.5244791295112687, 0.9950522536377377, 0.992249395172488, 0.7595331682297397, 0.8218520882641027, 0.8592920300414901, 0.8629847109465872, 0.789164870158559, 0.6207455259279301, 0.5840829415757615, 0.5237643446869766, 0.7190889384886932, 0.6844119856451241, 0.6152039591508032, 0.5651553436085903, 0.8524681938570662, 0.7964938186863513, 0.8995946761915816, 0.5889098137939911, 0.9002052240510532, 0.6480421180458791, 0.9665751116855841, 0.575344529079147, 0.8264659384741498, 0.9506049691337729, 0.9890995791207429, 0.7306101319387979, 0.6649072374547991, 0.8683884811459437, 0.6945282480075077, 0.8001349560845621, 0.674439033308651, 0.8248270839349537, 0.6438852359865861, 0.8803155713003126, 0.651400751531901, 0.800716538552041, 0.6596864552126527, 0.8137741726321892, 0.7982117733318248, 0.7460593877793434, 0.7357248704237678, 0.9053992432732665, 0.5711678557122595, 0.703151587709766, 0.6907890264738605, 0.6522288539452799, 0.6705584830977354, 0.8680644669600657, 0.9746265562431835, 0.5290350882109089, 0.6944479126599061, 0.7430058327591773, 0.6880601402608773, 0.5401054518710197, 0.5869041843941403, 0.648791832269735, 0.5984538688267331, 0.5259630986908868, 0.9511331546967519, 0.9736280578860844, 0.8340332048812128, 0.7067483367557303, 0.5793238882600689, 0.5139095118178779, 0.5538685520299932, 0.8990231075596613, 0.7789027465851008, 0.5140858814559486, 0.5329450231802076, 0.6830183272656566, 0.5355240424732226, 0.788309318823454, 0.5668332833719536, 0.9492669515958981, 0.8482604823490072, 0.7261920312962847, 0.8362428691834203, 0.6889947692968004, 0.8863474057173882, 0.8944094766885355, 0.8076810580289344, 0.7244892394867928, 0.5182124297441271, 0.8287664987232912, 0.8394631573160877, 0.8616256546235823, 0.7917319212012672, 0.6549385971722564, 0.7313393976576454, 0.7269243314293568, 0.7054557742210938, 0.7836789211951588, 0.9801631279553903, 0.8837272632188129, 0.9055792458788186, 0.8005908016587318, 0.6551885292240321, 0.930566489789749, 0.8895589087713709, 0.5778057098326114, 0.6173350148986525, 0.6464928218041066, 0.9916709193084513, 0.5021276678153124, 0.5919583760677243, 0.8950081252070992, 0.8206906766268718, 0.7577558805461406, 0.5136732391673726, 0.7203048739962596, 0.5191074159607123, 0.8037433051798497, 0.6632351120803854, 0.583581326326837, 0.8593343501751225, 0.5024942902471273, 0.5724574139007879, 0.6819315790240513, 0.884306653965806, 0.850264425493139, 0.9334546444293128, 0.8341494762778866, 0.5958516855063838, 0.9409402963699219, 0.9491229393545411, 0.686635140301858, 0.7056621972602126, 0.8205221655143484, 0.6304257233856584, 0.7724645007750031, 0.9694863741169514, 0.9512633676425656, 0.6547234730517759, 0.6549128562209581, 0.604513276843816, 0.8524890176854545, 0.5962862130361563, 0.7102807836606135, 0.9300938336632311, 0.6576279012743464, 0.6159347066347823, 0.7029895141817126, 0.9148616058152388, 0.6651358347980163, 0.9449008399385757, 0.8257119468224827, 0.7667924722716727, 0.7047992352528065, 0.7327941577234149, 0.5410027974448002, 0.901287094861855, 0.5121660548137326, 0.8447065653943976, 0.6181949270493208, 0.814909971699808, 0.5100024980831444, 0.526459875087401, 0.9124253671952176, 0.8407112184166377, 0.9236285186014546, 0.7106666938359646, 0.6589159710344671, 0.8409073477147148, 0.9777692733923011, 0.6641620328628525, 0.6627219290914794, 0.5106826234956013, 0.6879078832249526, 0.5147507418099462, 0.7263268500047375, 0.9628189158632798, 0.8993098221860001, 0.6256987119273193, 0.8322999029909479, 0.8722928674914121, 0.6750380022324267, 0.5684321933937942, 0.8875837828227857, 0.6882943228230441, 0.590767475697045, 0.9318787638916635, 0.5305990717594056, 0.8591217935580462, 0.6293064487515373, 0.8184647175690796, 0.6056783431597133, 0.8894152268185522, 0.977967952066948, 0.6132570436550295, 0.7247451119670281, 0.6525667639745313, 0.5853347675270826, 0.639316722876075, 0.6009675624196507, 0.9916925859489525, 0.6216759494095392, 0.8502846157440598, 0.5899228119624683, 0.5444757379020817, 0.742111414661569, 0.9868431149636049, 0.8499201327647947, 0.739951121939566, 0.5033740067971906, 0.796006004047318, 0.8762103481727284, 0.7893404221957538, 0.6634042812950081, 0.5952401534044908, 0.7641635826519273, 0.8407056060968069, 0.7217625341815557, 0.5916305052967983, 0.8382440041164934, 0.669587027008054, 0.9263053173337783, 0.6135034687651288, 0.7427020517307619, 0.9407937116768859, 0.7020774456095054, 0.5852951840367528, 0.92031801353658, 0.811991319473895, 0.7975618735558254, 0.9703902719667057, 0.8546544230403971, 0.7014012329245567, 0.5560007412056496, 0.6041064811462611, 0.5907841027772358, 0.887045459190769, 0.8968395864547832, 0.9389278027974081, 0.7061773239517336, 0.5250510092924754, 0.5071325436518084, 0.9628211952750579, 0.8721045555022797, 0.868057338664925, 0.8145733575873262, 0.7190898135527691, 0.9416658924233052, 0.828412734394229, 0.868556357534364, 0.6414389051638676, 0.8831220689403643, 0.8714752800794664, 0.8860743698803728, 0.8877936512498442, 0.9989938301615074, 0.718833653369737, 0.653453351449901, 0.5603788682299524, 0.7015262429687117, 0.5969720405602392, 0.8225487057767853, 0.5121952462024376, 0.519868932038837, 0.9935644182662837, 0.6792523175468614, 0.7105562266324883, 0.5486131427285503, 0.9731361847301192, 0.9252733208837036, 0.641668866463311, 0.7675745480096507, 0.9637817894352223, 0.5843444928727087, 0.5123848323092692, 0.81091624143218, 0.6935065663251994, 0.9979021295053468, 0.8893875512948133, 0.8978537298456774, 0.5661114774065198, 0.7552217848261836, 0.7609712061844707, 0.7675812056832535, 0.7622816967401866, 0.6839364502418129, 0.8661540536595012, 0.8209312052568772, 0.7310954098861993, 0.7276395989391118, 0.5006946265954857, 0.8563020224523807, 0.751035214006754, 0.6410806000082852, 0.7815806282746379, 0.6959255777885585, 0.6159659649331971, 0.6359838377843516, 0.9974643703953607, 0.8983941278978704, 0.8627201518425924, 0.850720795536261, 0.5560619801729809, 0.5629181569643207, 0.5162042110393702, 0.9632276213119682, 0.5408296514669413, 0.5447290927363219, 0.94787047618644, 0.937586171006797, 0.7055826109781864, 0.7319879123103259, 0.8737655205503012, 0.9680582697573982, 0.6651285470507255, 0.6507273073628678, 0.8691950733430526, 0.6714468389799897, 0.8787561227817124, 0.6351343932598639, 0.8131832106725921, 0.8191216578992871, 0.9966881087778349, 0.6245958331767281, 0.9362050573158984, 0.9959946640477553, 0.6555780692951334, 0.719568652255784, 0.8145884054588454, 0.7743223752026017, 0.8295547480755663, 0.721167276721816, 0.654798785351925, 0.72491573857272, 0.8881062257419817, 0.8576019948009322, 0.540566741423961, 0.6633677007077149, 0.5373279437600956, 0.7453704181126835, 0.6320825054399926, 0.5647802169924176, 0.6956793001577564, 0.657869618170019, 0.9795434767803914, 0.8529181923558662, 0.596344764436264, 0.589098992067727, 0.9630713298616238, 0.5753893501558983, 0.9832306908903692, 0.7852545555531588, 0.6659916700116215, 0.6810098628068171, 0.6723577691940512, 0.9462048767422011, 0.7870210520132297, 0.7968653864930799, 0.5581867853896345, 0.73044759579233, 0.6547267597447111, 0.9049169338387408, 0.7605077798109183, 0.674320770582308, 0.8697077575331269, 0.9364235556670251, 0.9377018526884382, 0.5730805478566047, 0.5081646695971935, 0.9549582747008006, 0.9554120576629079, 0.8231467935707926, 0.6352811126620701, 0.8780110678983761, 0.6070089730384733, 0.9347599786913522, 0.6559718443409672, 0.6041488551398585, 0.7602687280603522, 0.6683520207131859, 0.6575542266386161, 0.5705063509633221, 0.5612335349336368, 0.5401121505863211, 0.7101707415559255, 0.6334273686951264, 0.9702229692314384, 0.8285450992972163, 0.9910105272000178, 0.5459142575271918, 0.7465126167889429, 0.5612893702014206, 0.6385776436712477, 0.5516266658320945, 0.8453403944683057, 0.887020442559362, 0.8106218456351917, 0.6408393676688977, 0.6585359278367501, 0.5859158639094237, 0.5121470175319929, 0.8200191408816377, 0.6311615105426454, 0.7682608504834243, 0.9340993983138018, 0.8022697191156696, 0.7410700867615228, 0.8083565199417264, 0.791824755695422, 0.9695468202016374, 0.8518277126101345, 0.7183022221040424, 0.9142311210837071, 0.5293690804965436, 0.6019621730111158, 0.7121449552433298, 0.7410500147667165, 0.6365189930538424, 0.7723046849471367, 0.728217509153505, 0.8875045466333548, 0.8933916990269524, 0.8738369065082102, 0.8064012447941449, 0.9142997871516378, 0.8074983021581423, 0.7115433930997772, 0.5807671225910197, 0.5957767362647364, 0.9023780362674947, 0.9393084330325657, 0.6344860054312178, 0.8600828692569711, 0.6596436229419425, 0.8875740215199577, 0.8558998158626453, 0.5576922467196657, 0.5107663353157406, 0.5143958015441237, 0.8935844306194142, 0.5878638296041035, 0.766885710501628, 0.7442036789540276, 0.6463863747217808, 0.7589930577000665, 0.7676500332602142, 0.6253673333265155, 0.8668145060295689, 0.7024664062361323, 0.6959743085912732, 0.9550940066205904, 0.8159204050143809, 0.8660630775284617, 0.5575340735450096, 0.8729518694802246, 0.9947802303902417, 0.9465820712150619, 0.6045913410586672, 0.5099920923039216, 0.6319411578067163, 0.8202972279416932, 0.8874934398907804, 0.7779365722190266, 0.5007312280258607, 0.7405353461868812, 0.775692856682644, 0.8254854530161011, 0.8063586479050816, 0.8482478623719597, 0.8065498999431296, 0.5707954051118611, 0.9887717097949427, 0.8454482905275543, 0.7544612357046817, 0.695888721221251, 0.968307841020903, 0.6879131428630824, 0.6459295677980517, 0.7216720782606567, 0.5488518313168018, 0.694715294718528, 0.7886150481004617, 0.683946724512045, 0.6085040598591718, 0.9943326227391832, 0.567516110881381, 0.8771061615026458, 0.6917711383962508, 0.8412883854708895, 0.965106078953482, 0.558166180645929, 0.9903272133095886, 0.9954699375664215, 0.7798188737239309, 0.7400867519017555, 0.8515516384901236, 0.6787609001086012, 0.8043582830133393, 0.9821267082096166, 0.5886564958601799, 0.576103950124275, 0.9806471485950251, 0.8750274618266668, 0.8296857483485387, 0.7033162801072634, 0.5526722377448211, 0.5775645711158157, 0.8429829150319437, 0.836248468237254, 0.67593726180101, 0.5396209073797776, 0.7940841582314647, 0.7368973872500095, 0.7207278797191499, 0.8816436875934396, 0.9221276606930833, 0.9629483284534492, 0.6832430510156404, 0.9275343398093219, 0.61888019592398, 0.6549079540094982, 0.7886751322674959, 0.9160418445377505, 0.9934672947252374, 0.5250083443373251, 0.795663025585678, 0.6348933618163963, 0.5316107484995414, 0.802168531223709, 0.9943718613409989, 0.8808394891744966, 0.7902255767899071, 0.9630594710296569, 0.7295918736649278, 0.6112635125007895, 0.5287764391563594, 0.5756608628251413, 0.9547717995498364, 0.9445515615902951, 0.6509938023774494, 0.5684108670508392, 0.5887102502316048, 0.5579702912897302, 0.6589421782065421, 0.6135636632538735, 0.9404728059311963, 0.5815785856028872, 0.7001867038936156, 0.5507903363485335, 0.6703463672931207, 0.9248430611764207, 0.7396405343993707, 0.5730904452365413, 0.6182620703758929, 0.7978158270652305, 0.5900116459971472, 0.9807122637621564, 0.5741006357260392, 0.7021034578573685, 0.8051475558778434, 0.703605117102117, 0.8865684340992839, 0.611538087063934, 0.5319883551041191, 0.6639604506836584, 0.5659837408179555, 0.7772029746716789, 0.8826775905684943, 0.6502904257123524, 0.8831679457713972, 0.6979902599241885, 0.7800334013542859, 0.6003892211409696, 0.9807859645912604, 0.8719619087227499, 0.780349167841372, 0.870007240076699, 0.7023018777873804, 0.7602567102801869, 0.8689503422038376, 0.5056893815844674, 0.6495360109291132, 0.7444829968970539, 0.8246142162061156, 0.8363014615978499, 0.7502887510240339, 0.7624682379585823, 0.9367025512599882, 0.6484892548848851, 0.8812293800262152, 0.9930183929708626, 0.5475622525717101, 0.8637981353167001, 0.9120038157861974, 0.694686154363739, 0.709607241865603, 0.5529410180875867, 0.7355663889754933, 0.6505709514739018, 0.8820053312239113, 0.792206400636569, 0.551213822421663, 0.6498218176147907, 0.759221059668626, 0.7839459394125303, 0.5201035968370724, 0.9762371450256835, 0.6762188758632273, 0.7206818983289028, 0.5804559808131509, 0.8973517232688004, 0.5787534568725399, 0.7859753815192916, 0.8179473410826323, 0.9004332233486534, 0.8016217199454534, 0.8769053835274724, 0.8776975202369588, 0.7788065051179013, 0.9919428195689315, 0.9726998374536961, 0.8477663042499762, 0.9407826407574182, 0.6771965117061314, 0.551591336114613, 0.8694073020025672, 0.9536628316828418, 0.9172750140291568, 0.6344131681762548, 0.5992876352445069, 0.5421933241954782, 0.5498528946604987, 0.9025034380758583, 0.8936839706319681, 0.7841942061248366, 0.5192366835528193, 0.7669020000553849, 0.8588514476098277, 0.6805147593271987, 0.9337755192420201, 0.8701327951770499, 0.5480819775899733, 0.9304400521528425, 0.7355732733779683, 0.610800676150699, 0.522092845690102, 0.7898379838610021, 0.7397060154252053, 0.875945859005492, 0.9514387017422419, 0.9933925021922132, 0.814740869714861, 0.85944596615343, 0.7394631242297747, 0.8259223590371733, 0.5614152985389517, 0.8632213949316567, 0.8541572448552446, 0.6642726306382627, 0.956191015792424, 0.5691061188173906, 0.781403541318587, 0.6346971831852035, 0.5293048756613989, 0.5020104283608767, 0.7090148367624381, 0.6554363190816317, 0.851127770583713, 0.5846012723981909, 0.689040246815973, 0.8198666370563354, 0.8833915934938754, 0.8373025479424454, 0.9431496202761228, 0.559626039080807, 0.9065322977985837, 0.6287441772677312, 0.9788271222636256, 0.9837294134236683, 0.9487736756349356, 0.9113743101677716, 0.7582286352504184, 0.8528321819409188, 0.9737747828791876, 0.6127427539026944, 0.7500206409146744, 0.5988807686139643, 0.8659592666188406, 0.6176958932613691, 0.9001402937824703, 0.9364153099665067, 0.9247228385797688, 0.777687435025437, 0.6818715486180721, 0.6151887348412761, 0.8238280482437269, 0.8016646169309992, 0.570224841629391, 0.8156502977020306, 0.6666270350439887, 0.7038423029169886, 0.6248678621777212, 0.8138355900246507, 0.5602906558749673, 0.6414475950110732, 0.7837440240121363, 0.8910773343776097, 0.5058057876387897, 0.8692763491551136, 0.5370693314904669, 0.9668003509844674, 0.7861494616433332, 0.8371246168544523, 0.9122285215627469, 0.5443875309358115, 0.900287226953432, 0.8180556495655769, 0.5871025625771615, 0.5056212039120089, 0.6297578105191253, 0.8803248721013908, 0.5374554012568815, 0.64361009458991, 0.9685459033029095, 0.7654457638753602, 0.7148819391965082, 0.9885426683837868, 0.636953943066656, 0.9504938851160807, 0.8633145918554501, 0.6996439135038699, 0.7058337954657352, 0.883308780853836, 0.7450206882701533, 0.6488549288221854, 0.5740109248577263, 0.5504614389060458, 0.6545103088284392, 0.6590536133320977, 0.7999054731350888, 0.5829786466716367, 0.6090069461655271, 0.8147470150583054, 0.5270928777984527, 0.9969889399354555, 0.7285759356168245, 0.5452240664832716, 0.7048014838815876, 0.5406943908461401, 0.5088285146657496, 0.7220324558949538, 0.5340493284557943, 0.6005532912437546, 0.9436578282715612, 0.8213503006693446, 0.7449477524927209, 0.6091285916623101, 0.7117294319039233, 0.6637522565376707, 0.812027168506956, 0.8793571075221738, 0.8223707440525267, 0.8299943749291592, 0.6374775173440732, 0.6419289597554323, 0.6422576343671902, 0.7406341884004672, 0.9321084801472717, 0.8306730088995947, 0.5413111280962306, 0.9648927796948183, 0.6159889229534813, 0.8545801260537849, 0.8565449389423598, 0.9717545748716653, 0.5986171731697305, 0.9020219959519333, 0.8918028804443199, 0.9761908424177319, 0.9143909504006654, 0.7368828570523042, 0.5290538986042547, 0.763566906986761, 0.9416546839905474, 0.7681113034295417, 0.811604598407272, 0.8361708604980085, 0.7292046035823037, 0.884612143184243, 0.5351080914618125, 0.688083896049016, 0.9660030908450974, 0.5353247932665133, 0.9076921181307124, 0.8988732777637021, 0.8683653620418981, 0.6252172060202245, 0.5641644140180875, 0.7288447124623081, 0.9144853243948221, 0.6781442180168499, 0.8887473250254337, 0.6633837361398236, 0.6223212322572406, 0.8632855901037895, 0.8214603851185733, 0.9432379698047, 0.61943792929602, 0.8634495682081793, 0.7918841936459968, 0.8819802444532447, 0.5938700566765003, 0.570596627133785, 0.9457135566246646, 0.9917486013750947, 0.5025848453875833, 0.9827251253474731, 0.5527187464825631, 0.8566614289268231, 0.8052707606193352, 0.7728806156211929, 0.9825337169006471, 0.6620531210864176, 0.9588426431010579, 0.7956219817994913, 0.7427447828771707, 0.5487504580623104, 0.9272493244688829, 0.9336472969782658, 0.5928250740842247, 0.5713888332192794, 0.541659028290244, 0.5901839351193274, 0.7904422667941549, 0.9405294849160124, 0.6201300452365078, 0.7858986112556707, 0.5975878871955305, 0.9702503266847579, 0.6586556432293436, 0.9956497599747568, 0.6978759542517174, 0.9059709979755872, 0.6688965542272584, 0.5839445762843045, 0.6548557354215951, 0.5375183523448464, 0.506066663184865, 0.7897266254131836, 0.7326400222335515, 0.554375976283572, 0.58423226172105, 0.5869568351038761, 0.9468441517337098, 0.6938087671212849, 0.8228522589127406, 0.6870883523230851, 0.6396663518955529, 0.968207652952999, 0.8759945263828897, 0.8966550109679883, 0.520818845179397, 0.773955179825573, 0.5512775534086602, 0.508197638809688, 0.5475946555689448, 0.5257545255515642, 0.7467516823517995, 0.6162724048423774, 0.97782939210066, 0.894370732721054, 0.6032003676948522, 0.8366483585799409, 0.7467549035319726, 0.6859426426140609, 0.9580018111761224, 0.6821286308814964, 0.704981913560203, 0.6150213511834641, 0.7539266738618794, 0.9451071795104293, 0.7441605270895916, 0.9191282968417405, 0.8800573847634553, 0.6136606848602477, 0.5773511734816507, 0.8337334887773387, 0.6994047258223937, 0.6283673342656244, 0.986011332219525, 0.9909766271082865, 0.5109193492939983, 0.8619158359930958, 0.5565471539043381, 0.8605680699014842, 0.8309006705566542, 0.9963803920029655, 0.5909951506503875, 0.6336292712787386, 0.830344707070098, 0.9006348914901902, 0.788791779071409, 0.5628182563087647, 0.8684703131125417, 0.7139940746064344, 0.8193546084556432, 0.9567257785486439, 0.5677786557782285, 0.9602560969592742, 0.6094103209554815, 0.6837857864717005, 0.6206754171150803, 0.7659120948451856, 0.5022338983631505, 0.8636227995614105, 0.6206399716050182, 0.8624402978940369, 0.5712940374131545, 0.8461540163754201, 0.5160835878185663, 0.8784771637792778, 0.810320410908806, 0.711126184901366, 0.7722416472725557, 0.591304277944997, 0.5471252526622975, 0.8713356069257667, 0.50537220595093, 0.6705092972439213, 0.6232663105191483, 0.9902152755377354, 0.7622503012122699, 0.9503914103786008, 0.9858613552262636, 0.6683289995577562, 0.5703078986196166, 0.9092994908474263, 0.8897881422395105, 0.7399410746637103, 0.822468201935518, 0.6801590773932682, 0.8299411769553562, 0.9109012855841705, 0.6370198126503592, 0.5896139114142984, 0.7686566575445539, 0.6497709613904478, 0.9164630646485601, 0.9646586570771404, 0.9257953304267958, 0.9712267194575993, 0.6633004405869425, 0.7262394688730855, 0.6806291731563439, 0.9744491808238082, 0.6874978019822792, 0.6706707610494163, 0.5306191023173391, 0.6058134614812296, 0.9677410173587317, 0.5604664031321989, 0.8337070756384221, 0.8948284342470758, 0.8122038981571261, 0.8873879313030946, 0.931658494161136, 0.5506539054984612, 0.5293969090330095, 0.9947477786693769, 0.7417962413611408, 0.501184672462006, 0.9108789414306534, 0.6844345833193906, 0.9798792192774577, 0.6309266192558327, 0.8866686444753187, 0.9235104176127075, 0.8351255577119205, 0.910279851886868, 50000.0, 50000.0, 50000.0, 50000.0, 50000.0, 50000.0, 50000.0, 50000.0}; int h_B[]= { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 490, 492, 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 564, 566, 568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 678, 680, 682, 684, 686, 688, 690, 692, 694, 696, 698, 700, 702, 704, 706, 708, 710, 712, 714, 716, 718, 720, 722, 724, 726, 728, 730, 732, 734, 736, 738, 740, 742, 744, 746, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766, 768, 770, 772, 774, 776, 778, 780, 782, 784, 786, 788, 790, 792, 794, 796, 798, 800, 802, 804, 806, 808, 810, 812, 814, 816, 818, 820, 822, 824, 826, 828, 830, 832, 834, 836, 838, 840, 842, 844, 846, 848, 850, 852, 854, 856, 858, 860, 862, 864, 866, 868, 870, 872, 874, 876, 878, 880, 882, 884, 886, 888, 890, 892, 894, 896, 898, 900, 902, 904, 906, 908, 910, 912, 914, 916, 918, 920, 922, 924, 926, 928, 930, 932, 934, 936, 938, 940, 942, 944, 946, 948, 950, 952, 954, 956, 958, 960, 962, 964, 966, 968, 970, 972, 974, 976, 978, 980, 982, 984, 986, 988, 990, 992, 994, 996, 998, 1000, 1002, 1004, 1006, 1008, 1010, 1012, 1014, 1016, 1018, 1020, 1022, 1024, 1026, 1028, 1030, 1032, 1034, 1036, 1038, 1040, 1042, 1044, 1046, 1048, 1050, 1052, 1054, 1056, 1058, 1060, 1062, 1064, 1066, 1068, 1070, 1072, 1074, 1076, 1078, 1080, 1082, 1084, 1086, 1088, 1090, 1092, 1094, 1096, 1098, 1100, 1102, 1104, 1106, 1108, 1110, 1112, 1114, 1116, 1118, 1120, 1122, 1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138, 1140, 1142, 1144, 1146, 1148, 1150, 1152, 1154, 1156, 1158, 1160, 1162, 1164, 1166, 1168, 1170, 1172, 1174, 1176, 1178, 1180, 1182, 1184, 1186, 1188, 1190, 1192, 1194, 1196, 1198, 1200, 1202, 1204, 1206, 1208, 1210, 1212, 1214, 1216, 1218, 1220, 1222, 1224, 1226, 1228, 1230, 1232, 1234, 1236, 1238, 1240, 1242, 1244, 1246, 1248, 1250, 1252, 1254, 1256, 1258, 1260, 1262, 1264, 1266, 1268, 1270, 1272, 1274, 1276, 1278, 1280, 1282, 1284, 1286, 1288, 1290, 1292, 1294, 1296, 1298, 1300, 1302, 1304, 1306, 1308, 1310, 1312, 1314, 1316, 1318, 1320, 1322, 1324, 1326, 1328, 1330, 1332, 1334, 1336, 1338, 1340, 1342, 1344, 1346, 1348, 1350, 1352, 1354, 1356, 1358, 1360, 1362, 1364, 1366, 1368, 1370, 1372, 1374, 1376, 1378, 1380, 1382, 1384, 1386, 1388, 1390, 1392, 1394, 1396, 1398, 1400, 1402, 1404, 1406, 1408, 1410, 1412, 1414, 1416, 1418, 1420, 1422, 1424, 1426, 1428, 1430, 1432, 1434, 1436, 1438, 1440, 1442, 1444, 1446, 1448, 1450, 1452, 1454, 1456, 1458, 1460, 1462, 1464, 1466, 1468, 1470, 1472, 1474, 1476, 1478, 1480, 1482, 1484, 1486, 1488, 1490, 1492, 1494, 1496, 1498, 1500, 1502, 1504, 1506, 1508, 1510, 1512, 1514, 1516, 1518, 1520, 1522, 1524, 1526, 1528, 1530, 1532, 1534, 1536, 1538, 1540, 1542, 1544, 1546, 1548, 1550, 1552, 1554, 1556, 1558, 1560, 1562, 1564, 1566, 1568, 1570, 1572, 1574, 1576, 1578, 1580, 1582, 1584, 1586, 1588, 1590, 1592, 1594, 1596, 1598, 1600, 1602, 1604, 1606, 1608, 1610, 1612, 1614, 1616, 1618, 1620, 1622, 1624, 1626, 1628, 1630, 1632, 1634, 1636, 1638, 1640, 1642, 1644, 1646, 1648, 1650, 1652, 1654, 1656, 1658, 1660, 1662, 1664, 1666, 1668, 1670, 1672, 1674, 1676, 1678, 1680, 1682, 1684, 1686, 1688, 1690, 1692, 1694, 1696, 1698, 1700, 1702, 1704, 1706, 1708, 1710, 1712, 1714, 1716, 1718, 1720, 1722, 1724, 1726, 1728, 1730, 1732, 1734, 1736, 1738, 1740, 1742, 1744, 1746, 1748, 1750, 1752, 1754, 1756, 1758, 1760, 1762, 1764, 1766, 1768, 1770, 1772, 1774, 1776, 1778, 1780, 1782, 1784, 1786, 1788, 1790, 1792, 1794, 1796, 1798, 1800, 1802, 1804, 1806, 1808, 1810, 1812, 1814, 1816, 1818, 1820, 1822, 1824, 1826, 1828, 1830, 1832, 1834, 1836, 1838, 1840, 1842, 1844, 1846, 1848, 1850, 1852, 1854, 1856, 1858, 1860, 1862, 1864, 1866, 1868, 1870, 1872, 1874, 1876, 1878, 1880, 1882, 1884, 1886, 1888, 1890, 1892, 1894, 1896, 1898, 1900, 1902, 1904, 1906, 1908, 1910, 1912, 1914, 1916, 1918, 1920, 1922, 1924, 1926, 1928, 1930, 1932, 1934, 1936, 1938, 1940, 1942, 1944, 1946, 1948, 1950, 1952, 1954, 1956, 1958, 1960, 1962, 1964, 1966, 1968, 1970, 1972, 1974, 1976, 1978, 1980, 1982, 1984, 1986, 1988, 1990, 1992, 1994, 1996, 1998, 2000, 2002, 2004, 2006, 2008, 2010, 2012, 2014, 2016, 2018, 2020, 2022, 2024, 2026, 2028, 2030, 2032, 2034, 2036, 2038, 2040, 2042, 2044, 2046, 2048, 2050, 2052, 2054, 2056, 2058, 2060, 2062, 2064, 2066, 2068, 2070, 2072, 2074, 2076, 2078, 2080, 2082, 2084, 2086, 2088, 2090, 2092, 2094, 2096, 2098, 2100, 2102, 2104, 2106, 2108, 2110, 2112, 2114, 2116, 2118, 2120, 2122, 2124, 2126, 2128, 2130, 2132, 2134, 2136, 2138, 2140, 2142, 2144, 2146, 2148, 2150, 2152, 2154, 2156, 2158, 2160, 2162, 2164, 2166, 2168, 2170, 2172, 2174, 2176, 2178, 2180, 2182, 2184, 2186, 2188, 2190, 2192, 2194, 2196, 2198, 2200, 2202, 2204, 2206, 2208, 2210, 2212, 2214, 2216, 2218, 2220, 2222, 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2242, 2244, 2246, 2248, 2250, 2252, 2254, 2256, 2258, 2260, 2262, 2264, 2266, 2268, 2270, 2272, 2274, 2276, 2278, 2280, 2282, 2284, 2286, 2288, 2290, 2292, 2294, 2296, 2298, 2300, 2302, 2304, 2306, 2308, 2310, 2312, 2314, 2316, 2318, 2320, 2322, 2324, 2326, 2328, 2330, 2332, 2334, 2336, 2338, 2340, 2342, 2344, 2346, 2348, 2350, 2352, 2354, 2356, 2358, 2360, 2362, 2364, 2366, 2368, 2370, 2372, 2374, 2376, 2378, 2380, 2382, 2384, 2386, 2388, 2390, 2392, 2394, 2396, 2398, 2400, 2402, 2404, 2406, 2408, 2410, 2412, 2414, 2416, 2418, 2420, 2422, 2424, 2426, 2428, 2430, 2432, 2434, 2436, 2438, 2440, 2442, 2444, 2446, 2448, 2450, 2452, 2454, 2456, 2458, 2460, 2462, 2464, 2466, 2468, 2470, 2472, 2474, 2476, 2478, 2480, 2482, 2484, 2486, 2488, 2490, 2492, 2494, 2496, 2498, 2500, 2502, 2504, 2506, 2508, 2510, 2512, 2514, 2516, 2518, 2520, 2522, 2524, 2526, 2528, 2530, 2532, 2534, 2536, 2538, 2540, 2542, 2544, 2546, 2548, 2550, 2552, 2554, 2556, 2558, 2560, 2562, 2564, 2566, 2568, 2570, 2572, 2574, 2576, 2578, 2580, 2582, 2584, 2586, 2588, 2590, 2592, 2594, 2596, 2598, 2600, 2602, 2604, 2606, 2608, 2610, 2612, 2614, 2616, 2618, 2620, 2622, 2624, 2626, 2628, 2630, 2632, 2634, 2636, 2638, 2640, 2642, 2644, 2646, 2648, 2650, 2652, 2654, 2656, 2658, 2660, 2662, 2664, 2666, 2668, 2670, 2672, 2674, 2676, 2678, 2680, 2682, 2684, 2686, 2688, 2690, 2692, 2694, 2696, 2698, 2700, 2702, 2704, 2706, 2708, 2710, 2712, 2714, 2716, 2718, 2720, 2722, 2724, 2726, 2728, 2730, 2732, 2734, 2736, 2738, 2740, 2742, 2744, 2746, 2748, 2750, 2752, 2754, 2756, 2758, 2760, 2762, 2764, 2766, 2768, 2770, 2772, 2774, 2776, 2778, 2780, 2782, 2784, 2786, 2788, 2790, 2792, 2794, 2796, 2798, 2800, 2802, 2804, 2806, 2808, 2810, 2812, 2814, 2816, 2818, 2820, 2822, 2824, 2826, 2828, 2830, 2832, 2834, 2836, 2838, 2840, 2842, 2844, 2846, 2848, 2850, 2852, 2854, 2856, 2858, 2860, 2862, 2864, 2866, 2868, 2870, 2872, 2874, 2876, 2878, 2880, 2882, 2884, 2886, 2888, 2890, 2892, 2894, 2896, 2898, 2900, 2902, 2904, 2906, 2908, 2910, 2912, 2914, 2916, 2918, 2920, 2922, 2924, 2926, 2928, 2930, 2932, 2934, 2936, 2938, 2940, 2942, 2944, 2946, 2948, 2950, 2952, 2954, 2956, 2958, 2960, 2962, 2964, 2966, 2968, 2970, 2972, 2974, 2976, 2978, 2980, 2982, 2984, 2986, 2988, 2990, 2992, 2994, 2996, 2998, 3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, 3016, 3018, 3020, 3022, 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038, 3040, 3042, 3044, 3046, 3048, 3050, 3052, 3054, 3056, 3058, 3060, 3062, 3064, 3066, 3068, 3070, 3072, 3074, 3076, 3078, 3080, 3082, 3084, 3086, 3088, 3090, 3092, 3094, 3096, 3098, 3100, 3102, 3104, 3106, 3108, 3110, 3112, 3114, 3116, 3118, 3120, 3122, 3124, 3126, 3128, 3130, 3132, 3134, 3136, 3138, 3140, 3142, 3144, 3146, 3148, 3150, 3152, 3154, 3156, 3158, 3160, 3162, 3164, 3166, 3168, 3170, 3172, 3174, 3176, 3178, 3180, 3182, 3184, 3186, 3188, 3190, 3192, 3194, 3196, 3198, 3200, 3202, 3204, 3206, 3208, 3210, 3212, 3214, 3216, 3218, 3220, 3222, 3224, 3226, 3228, 3230, 3232, 3234, 3236, 3238, 3240, 3242, 3244, 3246, 3248, 3250, 3252, 3256, 3258, 3260, 3262, 3264, 3266, 3268, 3270, 3272, 3274, 3276, 3278, 3280, 3282, 3284, 3286, 3288, 3290, 3292, 3294, 3296, 3298, 3300, 3302, 3304, 3306, 3308, 3310, 3312, 3314, 3316, 3318, 3320, 3322, 3324, 3326, 3328, 3330, 3332, 3334, 3336, 3338, 3340, 3342, 3344, 3346, 3348, 3350, 3352, 3354, 3356, 3358, 3360, 3362, 3364, 3366, 3368, 3370, 3372, 3374, 3376, 3378, 3380, 3382, 3384, 3386, 3388, 3390, 3392, 3394, 3396, 3398, 3400, 3402, 3404, 3406, 3408, 3410, 3412, 3414, 3416, 3418, 3420, 3422, 3424, 3426, 3428, 3430, 3432, 3434, 3436, 3438, 3440, 3442, 3444, 3446, 3448, 3450, 3452, 3454, 3456, 3458, 3460, 3462, 3464, 3466, 3468, 3470, 3472, 3474, 3476, 3478, 3480, 3482, 3484, 3486, 3488, 3490, 3492, 3494, 3496, 3498, 3500, 3502, 3504, 3506, 3508, 3510, 3513, 3515, 3517, 3519, 3521, 3523, 3525, 3527, 3529, 3531, 3533, 3535, 3537, 3539, 3541, 3543, 3545, 3547, 3549, 3551, 3553, 3555, 3557, 3559, 3562, 3564, 3566, 3568, 3570, 3572, 3575, 3577, 3579, 3581, 3584, 3586, 3589, 3591, 3596, 3598, 3607, 3609, 3611, 3613, 3616, 3618, 3621, 3623, 3629, 3631, 3633, 3635, 3638, 3640, 3643, 3645, 3651, 3653, 3655, 3657, 3659, 3661, 3663, 3665, 3667, 3669, 3671, 3673, 3675, 3677, 3679, 3681, 3683, 3685, 3687, 3689, 3692, 3694, 3696, 3698, 3701, 3703, 3705, 3707, 3709, 3711, 3713, 3715, 3717, 3719, 3721, 3723, 3725, 3727, 3730, 3732, 3734, 3736, 3738, 3740, 3742, 3744, 3746, 3748, 3750, 3752, 3754, 3756, 3758, 3760, 3762, 3764, 3766, 3768, 3770, 3772, 3774, 3776, 3778, 3780, 3782, 3784, 3787, 3789, 3792, 3794, 3797, 3799, 3802, 3804, 3807, 3809, 3811, 3813, 3816, 3818, 3821, 3823, 3828, 3830, 3833, 3835, 3839, 3841, 3844, 3846, 3849, 3851, 3853, 3855, 3858, 3860, 3862, 3864, 3868, 3870, 3873, 3875, 3878, 3880, 3883, 3885, 3887, 3889, 3891, 3893, 3895, 3897, 3899, 3901, 3903, 3905, 3907, 3909, 3912, 3914, 3916, 3918, 3920, 3922, 3924, 3926, 3928, 3930, 3932, 3934, 3936, 3938, 3940, 3942, 3944, 3946, 3948, 3950, 3952, 3954, 3956, 3958, 3960, 3962, 3964, 3966, 3968, 3970, 3972, 3974, 3977, 3979, 3981, 3983, 3985, 3987, 3989, 3991, 3994, 3996, 3999, 4001, 4007, 4009, 4011, 4013, 4016, 4018, 4020, 4022, 4025, 4027, 4030, 4032, 4037, 4039, 4041, 4043, 4046, 4048, 4051, 4053, 4059, 4061, 4067, 4069, 4072, 4074, 4076, 4078, 4080, 4082, 4084, 4086, 4088, 4090, 4092, 4094, 4096, 4098, 4100, 4102, 4107, 4109, 4111, 4113, 4115, 4117, 4120, 4122, 4125, 4127, 4133, 4135, 4140, 4142, 4145, 4147, 4149, 4151, 4153, 4155, 4157, 4159, 4161, 4163, 4165, 4167, 4173, 4175, 4178, 4180, 4183, 4185, 4188, 4190, 4196, 4198, 4200, 4202, 4204, 4206, 4208, 4210, 4212, 4214, 4216, 4218, 4220, 4222, 4224, 4226, 4228, 4230, 4232, 4234, 4236, 4238, 4240, 4242, 4244, 4246, 4248, 4250, 4252, 4254, 4256, 4258, 4260, 4262, 4264, 4266, 4268, 4270, 4272, 4274, 4276, 4278, 4280, 4282, 4284, 4286, 4288, 4290, 4292, 4294, 4296, 4298, 4300, 4302, 4304, 4306, 4308, 4310, 4312, 4314, 4316, 4318, 4320, 4322, 4324, 4326, 4328, 4330, 4332, 4334, 4336, 4338, 4340, 4342, 4344, 4346, 4348, 4350, 4352, 4354, 4356, 4358, 4360, 4362, 4364, 4366, 4368, 4370, 4372, 4374, 4376, 4378, 4380, 4382, 4385, 4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413, 4415, 4417, 4419, 4421, 4423, 4425, 4427, 4429, 4431, 4433, 4435, 4437, 4439, 4441, 4443, 4446, 4448, 4450, 4452, 4455, 4457, 4459, 4461, 4464, 4466, 4468, 4470, 4472, 4474, 4476, 4478, 4481, 4483, 4485, 4487, 4490, 4492, 4495, 4497, 4502, 4504, 4506, 4508, 4510, 4512, 4514, 4516, 4519, 4521, 4523, 4525, 4528, 4530, 4533, 4535, 4540, 4542, 4544, 4546, 4548, 4550, 4553, 4555, 4558, 4560, 4563, 4565, 4568, 4570, 4573, 4575, 4578, 4580, 4583, 4585, 4006, 4004, 4590, 4592, 4594, 4596, 4598, 4600, 4602, 4604, 4606, 4608, 4182, 4177, 4612, 4614, 4616, 4618, 4620, 4622, 4624, 4626, 4628, 4630, 4632, 4634, 4636, 4638, 4640, 4642, 4644, 4646, 4648, 4650, 4652, 4654, 4656, 4658, 4660, 4662, 4664, 4666, 4681, 4683, 4685, 4687, 4689, 4691, 4693, 4695, 4697, 4699, 4701, 4703, 4705, 4707, 4709, 4711, 4713, 4715, 4717, 4719, 4721, 4723, 4725, 4727, 4729, 4731, 4733, 4735, 4737, 4739, 4006, 4004, 4006, 4004, 4036, 4024, 4006, 4004, 4006, 4004, 4775, 4777, 4779, 4781, 4783, 4785, 4787, 4789, 4791, 4793, 4795, 4797, 4799, 4801, 4803, 4805, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3626, 3626, 3650, 3648, 3650, 3648, 3628, 3628, 3650, 3648, 3650, 3648, 4066, 4064, 4006, 4004, 4195, 4193, 4006, 4004, 4066, 4064, 4066, 4064, 4006, 4004, 4058, 4056, 4172, 4170, 4182, 4177, 4172, 4170, 4182, 4177, 3628, 3626, 3650, 3648, 3650, 3648, 4066, 4064, 4066, 4064, 4066, 4064, 4006, 4004, 4058, 4056, 4058, 4066, 4064, 4066, 4064, 4172, 4170, 4182, 4177, 4172, 4170, 4182, 4177, 4172, 4170, 3628, 3626, 3628, 3626, 3848, 3848, 3574, 3574, 3628, 3626, 3628, 3626, 3650, 3648, 3650, 3648, 3806, 3801, 3806, 3801, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3628, 3626, 3628, 3626, 3650, 3648, 3650, 3648, 4006, 4004, 4006, 4004, 4036, 4024, 4036, 4024, 4058, 4056, 4058, 4056, 4006, 4004, 4006, 4004, 4006, 4004, 4006, 4004, 4036, 4024, 4058, 4056, 4195, 4193, 4036, 4024, 4036, 4024, 4066, 4064, 4172, 4170, 4036, 4024, 4036, 4024, 4058, 4056, 4058, 4056, 4066, 4064, 4066, 4064, 4006, 4004, 4036, 4024, 4036, 4024, 4066, 4064, 4066, 4064, 4132, 4130, 4132, 4130, 4172, 4170, 4172, 4170, 4172, 4170, 5250, 5252, 5254, 5256, 5258, 5260, 5262, 5264, 5266, 5268, 5270, 5272, 5274, 5276, 5278, 5280, 5282, 5284, 4582, 4587, 4587, 4582, 5339, 5341, 5343, 5345, 5347, 5349, 5351, 5353, 5355, 5357, 5359, 5361, 5363, 5365, 5367, 5369, 5371, 5373, 5375, 5377, 5379, 5381, 5383, 5385, 5387, 5389, 5391, 5393, 5395, 5397, 5399, 5401, 5403, 5405, 5407, 5409, 5411, 5413, 5415, 5417, 4587, 4582, 4587, 4582, 5478, 5480, 5482, 5484, 5486, 5488, 5490, 5492, 5494, 5496, 5498, 5500, 5502, 5504, 5506, 5508, 5511, 5513, 5515, 5517, 5519, 5521, 4006, 4004, 4066, 4064, 5542, 5544, 5546, 5548, 5550, 5552, 5554, 5556, 5558, 5560, 5562, 5564, 5566, 5568, 5570, 5572, 5574, 5576, 5578, 5580, 5582, 5584, 5586, 5588, 5590, 5592, 5594, 5596, 5598, 5600, 5602, 5604, 3628, 3626, 3628, 3626, 3628, 3626, 3806, 3801, 3806, 3801, 3604, 3602, 3604, 3602, 3604, 3602, 3604, 3602, 3628, 3626, 3806, 3801, 3806, 3801, 3628, 3626, 4006, 4004, 4036, 4024, 4066, 4064, 4036, 4024, 4024, 4036, 4066, 4064, 4066, 4064, 4066, 4064, 4066, 4064, 4036, 4024, 4058, 4056, 4058, 4056, 4066, 4064, 4036, 4024, 4036, 4024, 4066, 4064, 4006, 4004, 4006, 4004, 4066, 4064, 4066, 4064, 4006, 4004, 4006, 4004, 4066, 4064, 4006, 4004, 4006, 4004, 4036, 4024, 4006, 4004, 4006, 4004, 4066, 4064, 4066, 4064, 4006, 4004, 4006, 4004, 4066, 4064, 4172, 4170, 4172, 4170, 4195, 4193, 3628, 3626, 3628, 3626, 3650, 3648, 3628, 3626, 4006, 4004, 4172, 4170, 4006, 4004, 4066, 4064, 4058, 4056, 4066, 4064, 4195, 4193, 4195, 4193, 4006, 4004, 4058, 4056, 4066, 4064, 4172, 4170, 4195, 4193, 4195, 4193, 4587, 4582, 4587, 4582, 6051, 6053, 6055, 6057, 6059, 6061, 6063, 6065, 6067, 6069, 6071, 6073, 6075, 6077, 6079, 6081, 6083, 6085, 4587, 4582, 6109, 6111, 6113, 6115, 6117, 6119, 6121, 6123, 6125, 6127, 6129, 6131, 6133, 6135, 6137, 6139, 4587, 4582, 4587, 4582, 4587, 4582, 6155, 6157, 6159, 6161, 4587, 4582, 4587, 4582, 6171, 6173, 6175, 6177, 6179, 6181, 6183, 6185, 6187, 6189, 6191, 6193, 6195, 6197, 6199, 6201, 4587, 4582, 4587, 4582, 4587, 4582, 6278, 6280, 6282, 6284, 6286, 6288, 6290, 6292, 6294, 6296, 6298, 6300, 6302, 6304, 6306, 6308, 3604, 3602, 3604, 3602, 3604, 3602, 3628, 3626, 3882, 3604, 3602, 3604, 3602, 3600, 3604, 3602, 3604, 3602, 3600, 3604, 3602, 3604, 3602, 3604, 3602, 3628, 3626, 3628, 3626, 3882, 3628, 3626, 3628, 3626, 4006, 4004, 4036, 4024, 4066, 4064, 4036, 4024, 4036, 4024, 4066, 4064, 4172, 4170, 4172, 4170, 4006, 4004, 4036, 4024, 4006, 4004, 4056, 4056, 4066, 4064, 4006, 4004, 4006, 4004, 4036, 4024, 4066, 4064, 4063, 4066, 4064, 4063, 4066, 4064, 4172, 4170, 4195, 4193, 4006, 4004, 4006, 4004, 4036, 4024, 4006, 4004, 4006, 4004, 4036, 4024, 4066, 4064, 4066, 4064, 4006, 4004, 4006, 4004, 4036, 4024, 4036, 4024, 4058, 4056, 4058, 4056, 4066, 4064, 4132, 4130, 4132, 4130, 4172, 4170, 4172, 4170, 4172, 4170, 4193, 4195, 3604, 3602, 3604, 3602, 3604, 3602, 3595, 3595, 3604, 3602, 3604, 3602, 3606, 3604, 3602, 3606, 3628, 3626, 3628, 3626, 3650, 3648, 3650, 3648, 3786, 3786, 3806, 3801, 3806, 3801, 3827, 3827, 3838, 3838, 3867, 3867, 4036, 4024, 4058, 4056, 4144, 4144, 4106, 4139, 4172, 4170, 4195, 4193, 4006, 4004, 4006, 4004, 4036, 4024, 4036, 4024, 4066, 4064, 4006, 4004, 4006, 4004, 4036, 4024, 4024, 4036, 4058, 4056, 4058, 4056, 4066, 4064, 4066, 4064, 4130, 4130, 4132, 4132, 4137, 4137, 4106, 4132, 4130, 4132, 4130, 4139, 4172, 4170, 4172, 4170, 4193, 4195, 4172, 4170, 4195, 4193, 6901, 6903, 6905, 6907, 6909, 6911, 4587, 4582, 4587, 4582, 6942, 6944, 6946, 6948, 6950, 6952, 6954, 6956, 6958, 6960, 6962, 6964, 6966, 6968, 6970, 6972, 6974, 6976, 6978, 6980, 6982, 6984, 6986, 6988, 6990, 6992, 4587, 4582, 4567, 4567, 4552, 4552, 4587, 4582, 4480, 4480, 4501, 4501, 4518, 4518, 4539, 4539, 7081, 7083, 7085, 7087, 7090, 7092, 7094, 7096, 7098, 7100, 7102, 7104, 7106, 7108, 7110, 7112, 7114, 7116, 7119, 7121, 7126, 7128, 7130, 7132, 7135, 7137, 7139, 7141, 7145, 7147, 7150, 7152, 7155, 7157, 7165, 7167, 7169, 7171, 7173, 7175, 7178, 7180, 7183, 7185, 7188, 7190, 7197, 7199, 7203, 7205, 7209, 7211, 7213, 7215, 7233, 7235, 7253, 7255, 7123, 7118, 7123, 7118, 7293, 7295, 7123, 7118, 7302, 7304, 7306, 7308, 7123, 7118, 7313, 7315, 7123, 7118, 7177, 7192, 7634, 7636, 7638, 7640, 7673, 7675, 7677, 7679, 7681, 7683, 7685, 7687, 7689, 7691, 7693, 7695, 7159, 7159, 7713, 7715, 7717, 7719, 7123, 7118, 7123, 7118, 7123, 7118, 7123, 7118, 7754, 7756, 7758, 7760, 7762, 7764, 7771, 7773, 7123, 7118, 7123, 7118, 7160, 7123, 7118, 7123, 7118, 7164, 7897, 7899, 7123, 7118, 7123, 7118, 7914, 7916, 7918, 7920, 7922, 7924, 7123, 7118, 7089, 7162, 7123, 7118, 7089, 7162, 7162, 7089, 7089, 7162, 8429, 8431, 8433, 8435, 8437, 8439, 8441, 8443, 8445, 8447, 8449, 8451, 8453, 8455, 7123, 7118, 6276, 8479, 8481, 8483, 8485, 8487, 8489, 8491, 8493, 7123, 7118, 8544, 8546, 8587, 8589, 7154, 7149, 7154, 7149, 8599, 8601, 7123, 8621, 8623, 8625, 8627, 8638, 8640, 8642, 8644, 8677, 8679, 8681, 8683, 8685, 8687, 8689, 8691, 7118, 6276, 7154, 7149, 7154, 7149, 7177, 7192, 9044, 9046, 9048, 9050, 9052, 9054, 9056, 9058, 9060, 9062, 9064, 9066, 7123, 7118, 7089, 7162, 9086, 9088, 9091, 9093, 9106, 9108, 9111, 9113, 7123, 7118, 7125, 7089, 7162, 7162, 7089, 9155, 9157, 9159, 9161, 9163, 9165, 9168, 9170, 9185, 9187, 9189, 9191, 9194, 9196, 9199, 9201, 7089, 7125, 7144, 7144, 7160, 7162, 7164, 9172, 9198, 9172, 9172, 9198, 9172, 9172, 9198, 9198, 9172, 9172, 9198, 9203, 9203, 9193, 9193, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 10912, 10914, 10916, 10918, 10920, 10922, 10924, 10926, 10928, 10930, 10932, 10934, 10936, 10938, 10940, 10942, 10944, 10946, 10948, 10950, 10952, 10954, 10956, 10958, 10960, 10962, 10964, 10966, 10968, 10970, 10972, 10974, 10976, 10978, 10980, 10982, 10984, 10986, 10988, 10990, 10992, 10994, 10996, 10998, 11000, 11002, 11004, 11006, 11008, 11010, 11012, 11014, 11016, 11018, 11020, 11022, 11024, 11026, 11028, 11030, 11032, 11034, 11036, 11038, 11040, 11042, 11044, 11046, 11048, 11050, 11052, 11054, 11056, 11058, 11060, 11062, 11064, 11066, 11068, 11070, 11072, 11074, 11076, 11078, 11080, 11082, 11084, 11086, 11088, 11090, 11092, 11094, 11096, 11098, 11100, 11102, 11104, 11106, 11108, 11110, 11112, 11114, 11116, 11118, 11120, 11122, 11124, 11126, 11128, 11130, 11132, 11134, 11136, 11138, 11140, 11142, 11144, 11146, 11148, 11150, 11152, 11154, 11156, 11158, 11160, 11162, 11164, 11166, 11168, 11170, 11172, 11174, 11176, 11178, 11180, 11182, 11184, 11186, 11188, 11190, 11192, 11194, 11196, 11198, 11200, 11202, 11204, 11206, 11208, 11210, 11212, 11214, 11216, 11218, 11220, 11222, 11224, 11226, 11228, 11230, 11232, 11234, 11236, 11238, 11240, 11242, 11244, 11246, 11248, 11250, 11252, 11254, 11256, 11258, 11260, 11262, 11264, 11266, 11268, 11270, 11272, 11274, 11276, 11278, 11280, 11282, 11284, 11286, 11288, 11290, 11292, 11294, 11296, 11298, 11300, 11302, 11304, 11306, 11308, 11310, 11312, 11314, 11316, 11318, 11320, 11322, 11324, 11326, 11328, 11330, 11332, 11334, 11336, 11338, 11340, 11342, 11344, 11346, 11348, 11350, 11352, 11354, 11356, 11358, 11360, 11362, 11364, 11366, 11368, 11370, 11372, 11374, 11376, 11378, 11380, 11382, 11384, 11386, 11388, 11390, 11392, 11394, 11396, 11398, 11400, 11402, 11404, 11406, 11408, 11410, 11412, 11414, 11416, 11418, 11420, 11422, 11424, 11426, 11428, 11430, 11432, 11434, 11436, 11438, 11440, 11442, 11444, 11446, 11448, 11450, 11452, 11454, 11456, 11458, 11460, 11462, 11464, 11466, 11468, 11470, 11472, 11474, 11476, 11478, 11480, 11482, 11484, 11486, 11488, 11490, 11492, 11494, 11496, 11498, 11500, 11502, 11504, 11506, 11508, 11510, 11512, 11514, 11516, 11518, 11520, 11522, 11524, 11526, 11528, 11530, 11532, 11534, 11536, 11538, 11540, 11542, 11544, 11546, 11548, 11550, 11552, 11554, 11556, 11558, 11560, 11562, 11564, 11566, 11568, 11570, 11572, 11574, 11576, 11578, 11580, 11582, 11584, 11586, 11588, 11590, 11592, 11594, 11596, 11598, 11600, 11602, 11604, 11606, 11608, 11610, 11612, 11614, 11616, 11618, 11620, 11622, 11624, 11626, 11628, 11630, 11632, 11634, 11636, 11638, 11640, 11642, 11644, 11646, 11648, 11650, 11652, 11654, 11656, 11658, 11660, 11662, 11664, 11666, 11668, 11670, 11672, 11674, 11676, 11678, 11680, 11682, 11684, 11686, 11688, 11690, 11692, 11694, 11696, 11698, 11700, 11702, 11704, 11706, 11708, 11710, 11712, 11714, 11716, 11718, 11720, 11722, 11724, 11726, 11728, 11730, 11732, 11734, 11736, 11738, 11740, 11742, 11744, 11746, 11748, 11750, 11752, 11754, 11756, 11758, 11760, 11762, 11764, 11766, 11768, 11770, 11772, 11774, 11776, 11778, 11780, 11782, 11784, 11786, 11788, 11790, 11792, 11794, 11796, 11798, 11800, 11802, 11804, 11806, 11808, 11810, 11812, 11814, 11816, 11818, 11820, 11822, 11824, 11826, 11828, 11830, 11832, 11834, 11836, 11838, 11840, 11842, 11844, 11846, 11848, 11850, 11852, 11854, 11856, 11858, 11860, 11862, 11864, 11866, 11868, 11870, 11872, 11874, 11876, 11878, 11880, 11882, 11884, 11886, 11888, 11890, 11892, 11894, 11896, 11898, 11900, 11902, 11904, 11906, 11908, 11910, 11912, 11914, 11916, 11918, 11920, 11922, 11924, 11926, 11928, 11930, 11932, 11934, 11936, 11938, 11940, 11942, 11944, 11946, 11948, 11950, 11952, 11954, 11956, 11958, 11960, 11962, 11964, 11966, 11968, 11970, 11972, 11974, 11976, 11978, 11980, 11982, 11984, 11986, 11988, 11990, 11992, 11994, 11996, 11998, 12000, 12002, 12004, 12006, 12008, 12010, 12012, 12014, 12016, 12018, 12020, 12022, 12024, 12026, 12028, 12030, 12032, 12034, 12036, 12038, 12040, 12042, 12044, 12046, 12048, 12050, 12052, 12054, 12056, 12058, 12060, 12062, 12064, 12066, 12068, 12070, 12072, 12074, 12076, 12078, 12080, 12082, 12084, 12086, 12088, 12090, 12092, 12094, 12096, 12098, 12100, 12102, 12104, 12106, 12108, 12110, 12112, 12114, 12116, 12118, 12120, 12122, 12124, 12126, 12128, 12130, 12132, 12134, 12136, 12138, 12140, 12142, 12144, 12146, 12148, 12150, 12152, 12154, 12156, 12158, 12160, 12162, 12164, 12166, 12168, 12170, 12172, 12174, 12176, 12178, 12180, 12182, 12184, 12186, 12188, 12190, 12192, 12194, 12196, 12198, 12200, 12202, 12204, 12206, 12208, 12210, 12212, 12214, 12216, 12218, 12220, 12222, 12224, 12226, 12228, 12230, 12232, 12234, 12236, 12238, 12240, 12242, 12244, 12246, 12248, 12250, 12252, 12254, 12256, 12258, 12260, 12262, 12264, 12266, 12268, 12270, 12272, 12274, 12276, 12278, 12280, 12282, 12284, 12286, 12288, 12290, 12292, 12294, 12296, 12298, 12300, 12302, 12304, 12306, 12308, 12310, 12312, 12314, 12316, 12318, 12320, 12322, 12324, 12326, 12328, 12330, 12332, 12334, 12336, 12338, 12340, 12342, 12344, 12346, 12348, 12350, 12352, 12354, 12356, 12358, 12360, 12362, 12364, 12366, 12368, 12370, 12372, 12374, 12376, 12378, 12380, 12382, 12384, 12386, 12388, 12390, 12392, 12394, 12396, 12398, 12400, 12402, 12404, 12406, 12408, 12410, 12412, 12414, 12416, 12418, 12420, 12422, 12424, 12426, 12428, 12430, 12432, 12434, 12436, 12438, 12440, 12442, 12444, 12446, 12448, 12450, 12452, 12454, 12456, 12458, 12460, 12462, 12464, 12466, 12468, 12470, 12472, 12474, 12476, 12478, 12480, 12482, 12484, 12486, 12488, 12490, 12492, 12494, 12496, 12498, 12500, 12502, 12504, 12506, 12508, 12510, 12512, 12514, 12516, 12518, 12520, 12522, 12524, 12526, 12528, 12530, 12532, 12534, 12536, 12538, 12540, 12542, 12544, 12546, 12548, 12550, 12552, 12554, 12556, 12558, 12560, 12562, 12564, 12566, 12568, 12570, 12572, 12574, 12576, 12578, 12580, 12582, 12584, 12586, 12588, 12590, 12592, 12594, 12596, 12598, 12600, 12602, 12604, 12606, 12608, 12610, 12612, 12614, 12616, 12618, 12620, 12622, 12624, 12626, 12628, 12630, 12632, 12634, 12636, 12638, 12640, 12642, 12644, 12646, 12648, 12650, 12652, 12654, 12656, 12658, 12660, 12662, 12664, 12666, 12668, 12670, 12672, 12674, 12676, 12678, 12680, 12682, 12684, 12686, 12688, 12690, 12692, 12694, 12696, 12698, 12700, 12702, 12704, 12706, 12708, 12710, 12712, 12714, 12716, 12718, 12720, 12722, 12724, 12726, 12728, 12730, 12732, 12734, 12736, 12738, 12740, 12742, 12744, 12746, 12748, 12750, 12752, 12754, 12756, 12758, 12760, 12762, 12764, 12766, 12768, 12770, 12772, 12774, 12776, 12778, 12780, 12782, 12784, 12786, 12788, 12790, 12792, 12794, 12796, 12798, 12800, 12802, 12804, 12806, 12808, 12810, 12812, 12814, 12816, 12818, 12820, 12822, 12824, 12826, 12828, 12830, 12832, 12834, 12836, 12838, 12840, 12842, 12844, 12846, 12848, 12850, 12852, 12854, 12856, 12858, 12860, 12862, 12864, 12866, 12868, 12870, 12872, 12874, 12876, 12878, 12880, 12882, 12884, 12886, 12888, 12890, 12892, 12894, 12896, 12898, 12900, 12902, 12904, 12906, 12908, 12910, 12912, 12914, 12916, 12918, 12920, 12922, 12924, 12926, 12928, 12930, 12932, 12934, 12936, 12938, 12940, 12942, 12944, 12946, 12948, 12950, 12952, 12954, 12956, 12958, 12960, 12962, 12964, 12966, 12968, 12970, 12972, 12974, 12976, 12978, 12980, 12982, 12984, 12986, 12988, 12990, 12992, 12994, 12996, 12998, 13000, 13002, 13004, 13006, 13008, 13010, 13012, 13014, 13016, 13018, 13020, 13022, 13024, 13026, 13028, 13030, 13032, 13034, 13036, 13038, 13040, 13042, 13044, 13046, 13048, 13050, 13052, 13054, 13056, 13058, 13060, 13062, 13064, 13066, 13068, 13070, 13072, 13074, 13076, 13078, 13080, 13082, 13084, 13086, 13088, 13090, 13092, 13094, 13096, 13098, 13100, 13102, 13104, 13106, 13108, 13110, 13112, 13114, 13116, 13118, 13120, 13122, 13124, 13126, 13128, 13130, 13132, 13134, 13136, 13138, 13140, 13142, 13143, 13144, 13146, 13148, 13150, 13152, 13154, 13155, 13156, 13158, 13160, 13162, 13164, 13166, 13168, 13170, 13172, 13174, 13176, 13178, 13180, 13182, 13184, 13186, 13188, 13190, 13192, 13194, 13196, 13198, 13200, 13202, 13204, 13206, 13208, 13210, 13212, 13214, 13215, 13216, 13217, 13218, 13219, 13220, 13221, 13222, 13223, 13224, 13226, 13228, 13230, 13232, 13234, 13236, 13238, 13240, 13241, 13242, 13243, 13244, 13245, 13246, 13247, 13248, 13249, 13250, 13251, 13252, 13253, 13254, 13255, 13256, 13257, 13258, 13259, 13260, 13261, 13262, 13263, 13264, 13265, 13266, 13267, 13268, 13269, 13270, 13271, 13272, 13273, 13274, 13275, 13276, 13277, 13278, 13279, 13280, 13281, 13282, 13283, 13284, 13285, 13286, 13287, 13288, 13289, 13290, 13291, 13292, 13293, 13294, 13295, 13296, 13297, 13298, 13299, 13300, 13301, 13302, 13303, 13304, 13305, 13306, 13307, 13308, 13309, 13310, 13311, 13312, 13313, 13314, 13315, 13316, 13317, 13318, 13319, 13320, 13321, 13322, 13323, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13338, 13339, 13340, 13341, 13342, 13343, 13344, 13345, 13346, 13347, 13348, 13349, 13350, 13351, 13352, 13353, 13354, 13355, 13356, 13357, 13358, 13359, 13360, 13361, 13362, 13363, 13364, 13365, 13366, 13367, 13368, 13369, 13370, 13371, 13372, 13373, 13374, 13375, 13376, 13377, 13378, 13379, 13380, 13381, 13382, 13383, 13384, 13385, 13386, 13387, 13388, 13389, 13390, 13391, 13392, 13393, 13394, 13395, 13396, 13397, 13398, 13399, 13400, 13401, 13402, 13403, 13404, 13405, 13406, 13407, 13408, 13409, 13410, 13411, 13412, 13413, 13414, 13415, 13416, 13417, 13418, 13419, 13420, 13421, 13422, 13423, 13424, 13425, 13427, 13429, 13431, 13433, 13435, 13437, 13439, 13441, 13443, 13444, 13445, 13446, 13447, 13449, 13451, 13453, 13455, 13457, 13459, 13461, 13463, 13465, 13467, 13469, 13471, 13473, 13475, 13477, 13479, 13481, 13483, 13485, 13487, 13488, 13489, 13490, 13491, 13493, 13495, 13497, 13499, 13501, 13503, 13505, 13507, 13509, 13511, 13513, 13514, 13515, 13516, 13517, 13519, 13521, 13523, 13525, 13527, 13529, 13531, 13533, 13535, 13537, 13539, 13541, 13543, 13545, 13547, 13549, 13550, 13551, 13552, 13553, 13554, 13555, 13556, 13557, 13558, 13559, 13560, 13561, 13562, 13563, 13564, 13565, 13566, 13567, 13568, 13569, 13570, 13571, 13572, 13573, 13574, 13575, 13576, 13577, 13578, 13579, 13580, 13581, 13582, 13583, 13584, 13585, 13586, 13587, 13588, 13589, 13590, 13591, 13592, 13593, 13594, 13595, 13596, 13597, 13598, 13599, 13600, 13601, 13602, 13603, 13604, 13605, 13606, 13607, 13608, 13609, 13610, 13611, 13612, 13613, 13614, 13615, 13616, 13617, 13618, 13619, 13620, 13621, 13622, 13623, 13624, 13625, 13626, 13627, 13628, 13629, 13630, 13631, 13632, 13633, 13634, 13635, 13636, 13637, 13638, 13639, 13640, 13641, 13642, 13643, 13644, 13645, 13646, 13647, 13648, 13649, 13650, 13651, 13652, 13653, 13654, 13655, 13656, 13657, 13658, 13659, 13660, 13661, 13662, 13663, 13664, 13665, 13666, 13667, 13668, 13669, 13670, 13671, 13672, 13673, 13674, 13675, 13676, 13677, 13678, 13679, 13680, 13681, 13682, 13683, 13684, 13685, 13686, 13687, 13689, 13691, 13693, 13695, 13697, 13699, 13701, 13703, 13705, 13706, 13707, 13709, 13711, 13713, 13715, 13717, 13719, 13721, 13723, 13724, 13725, 13726, 13727, 13728, 13729, 13731, 13733, 13734, 13735, 13736, 13737, 13739, 13741, 13743, 13745, 13747, 13749, 13751, 13753, 13754, 13755, 13756, 13757, 13758, 13759, 13761, 13763, 13765, 13767, 13769, 13771, 13773, 13775, 13776, 13777, 13778, 13779, 13780, 13781, 13782, 13783, 13784, 13785, 13786, 13787, 13788, 13789, 13790, 13791, 13792, 13793, 13794, 13795, 13796, 13797, 13798, 13799, 13800, 13801, 13802, 13803, 13804, 13805, 13806, 13807, 13808, 13809, 13810, 13811, 13812, 13813, 13814, 13815, 13816, 13817, 13818, 13819, 13820, 13821, 13822, 13823, 13824, 13825, 13826, 13827, 13828, 13829, 13830, 13831, 13832, 13833, 13834, 13835, 13836, 13837, 13838, 13839, 13840, 13841, 13842, 13843, 13844, 13845, 13846, 13847, 13848, 13849, 13850, 13851, 13852, 13853, 13854, 13855, 13856, 13857, 13858, 13859, 13860, 13861, 13862, 13863, 13864, 13865, 13866, 13867, 13868, 13869, 13870, 13871, 13872, 13873, 13874, 13875, 13876, 13877, 13878, 13879, 13880, 13881, 13882, 13883, 13884, 13885, 13886, 13887, 13888, 13889, 13890, 13891, 13892, 13893, 13894, 13895, 13896, 13897, 13898, 13899, 13900, 13901, 13902, 13903, 13904, 13905, 13906, 13907, 13908, 13909, 13910, 13911, 13912, 13913, 13914, 13915, 13916, 13917, 13918, 13919, 13920, 13921, 13922, 13923, 13924, 13925, 13926, 13927, 13928, 13929, 13930, 13931, 13932, 13933, 13934, 13935, 13936, 13937, 13938, 13939, 13940, 13941, 13942, 13943, 13944, 13945, 13946, 13947, 13948, 13949, 13950, 13951, 13952, 13953, 13954, 13955, 13956, 13957, 13958, 13959, 13960, 13961, 13962, 13963, 13964, 13965, 13966, 13967, 13968, 13969, 13970, 13971, 13972, 13973, 13974, 13975, 13976, 13977, 13978, 13979, 13980, 13981, 13982, 13983, 13984, 13985, 13986, 13987, 13988, 13989, 13990, 13991, 13993, 13995, 13997, 13998, 13999, 14000, 14001, 14003, 14005, 14007, 14009, 14011, 14013, 14015, 14017, 14019, 14021, 14023, 14025, 14027, 14028, 14029, 14030, 14031, 14032, 14033, 14034, 14035, 14036, 14037, 14038, 14039, 14040, 14041, 14042, 14043, 14045, 14047, 14049, 14051, 14053, 14055, 14057, 14059, 14061, 14063, 14065, 14067, 14069, 14071, 14073, 14075, 14077, 14079, 14081, 14083, 14085, 14087, 14089, 14091, 14093, 14095, 14097, 14099, 14101, 14102, 14103, 14104, 14105, 14107, 14108, 14109, 14111, 14113, 14114, 14115, 14117, 14118, 14119, 14120, 14121, 14123, 14125, 14127, 14129, 14131, 14133, 14135, 14137, 14138, 14139, 14141, 14143, 14144, 14145, 14146, 14147, 14148, 14149, 14150, 14151, 14153, 14155, 14157, 14159, 14160, 14161, 14162, 14163, 14164, 14165, 14166, 14167, 14168, 14169, 14171, 14172, 14173, 14174, 14175, 14177, 14179, 14181, 14182, 14183, 14184, 14185, 14186, 14187, 14188, 14189, 14190, 14191, 14192, 14193, 14195, 14197, 14199, 14201, 14203, 14205, 14207, 14208, 14209, 14210, 14212, 14214, 14216, 14218, 14219, 14220, 14222, 14224, 14225, 14226, 14227, 14228, 14230, 14231, 14233, 14235, 14237, 14239, 14241, 14243, 14245, 14247, 14248, 14249, 14250, 14251, 14252, 14253, 14254, 14255, 14257, 14259, 14261, 14263, 14265, 14267, 14268, 14269, 14270, 14271, 14273, 14275, 14277, 14279, 14280, 14281, 14282, 14283, 14284, 14285, 14286, 14288, 14290, 14292, 14294, 14296, 14298, 14300, 14302, 14303, 14304, 14305, 14306, 14307, 14308, 14309, 14310, 14311, 14312, 14313, 14314, 14315, 14316, 14317, 14318, 14319, 14320, 14321, 14322, 14323, 14324, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 15451, 15458, 4499, 4494, 4480, 4499, 4494, 4501, 4537, 4532, 4532, 4537, 4537, 4532, 4518, 4003, 3998, 15489, 4003, 3998, 15491, 4034, 4029, 15493, 4003, 3998, 15495, 4003, 3998, 15497, 4034, 4029, 4034, 4029, 4499, 4494, 4499, 4494, 4499, 4494, 4499, 4494, 4557, 4557, 3593, 3588, 3574, 3588, 3593, 3593, 3588, 15507, 3600, 15509, 15511, 3593, 3588, 3574, 3588, 3593, 3593, 3588, 15513, 3600, 15515, 15517, 3625, 3620, 3625, 3620, 3647, 3642, 15521, 3647, 3642, 15523, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 3604, 3602, 3600, 3604, 3602, 3604, 3602, 3625, 3620, 3625, 3620, 3647, 3642, 15527, 3647, 3642, 15529, 15531, 15533, 4071, 4063, 4129, 4124, 4192, 4187, 15535, 15537, 15539, 15541, 15543, 15545, 15547, 15549, 15551, 15553, 4192, 4187, 15555, 3625, 3620, 3647, 3642, 15557, 3647, 3642, 15559, 4003, 3998, 4055, 4050, 4055, 4050, 15561, 15563, 15565, 4071, 15567, 4055, 4050, 15569, 4055, 4050, 4055, 4050, 15572, 4063, 15574, 4071, 15576, 15578, 15580, 15582, 4192, 4187, 4192, 4187, 15584, 3574, 3604, 3602, 15586, 15588, 3825, 3820, 3796, 3791, 3806, 3801, 3825, 3820, 3843, 3843, 3593, 3588, 3593, 3588, 3604, 3602, 3604, 3602, 3600, 3625, 3620, 15594, 3625, 3620, 15596, 3647, 3642, 15598, 3647, 3642, 15600, 3796, 3791, 3806, 3801, 3820, 3825, 3827, 3729, 3729, 3848, 3796, 3791, 3806, 3801, 3825, 3820, 3796, 3791, 15602, 3796, 3791, 15604, 3825, 3820, 3843, 3848, 3877, 3872, 3877, 3872, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 15606, 15608, 15610, 3600, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 15612, 15614, 15616, 3600, 3625, 3620, 15618, 3625, 3620, 15620, 3647, 3642, 15622, 3647, 3642, 15624, 3825, 3820, 3786, 3786, 4003, 3998, 15626, 4003, 3998, 15628, 4034, 4029, 15630, 4034, 4029, 15632, 4055, 4050, 15634, 4055, 4050, 15636, 4003, 3998, 15638, 4003, 3998, 15640, 4034, 4029, 4034, 4029, 4003, 3998, 15642, 4003, 3998, 15644, 4034, 4029, 15646, 15648, 4063, 15650, 4003, 3998, 4006, 4004, 4034, 4029, 15652, 4003, 3998, 4006, 4004, 4034, 4029, 15654, 15656, 4192, 4187, 15658, 4182, 4177, 4192, 4187, 4003, 3998, 4006, 4004, 4029, 15660, 4003, 3998, 4006, 4004, 4034, 15662, 4003, 3998, 4006, 4004, 4034, 4029, 4034, 4029, 4055, 4050, 15664, 4055, 4050, 15666, 15668, 4063, 15670, 4071, 4003, 3998, 15672, 15674, 15676, 4055, 4050, 4058, 4056, 15678, 4063, 15680, 4071, 15682, 15684, 4139, 4139, 15686, 4182, 4177, 4187, 4192, 15688, 4182, 4177, 4187, 4192, 15690, 4177, 4192, 4187, 4192, 4187, 4499, 4494, 4499, 4494, 4494, 4499, 4480, 4537, 4532, 4518, 4537, 4532, 4537, 4532, 4562, 4557, 4562, 4557, 4557, 4562, 4552, 4577, 4572, 4577, 4572, 4499, 4494, 4499, 4494, 4494, 4499, 4501, 4532, 4537, 4532, 4537, 4532, 4537, 4537, 4532, 4562, 4557, 4562, 4557, 4562, 4557, 4567, 4577, 4572, 15703, 4499, 4494, 4480, 4499, 4494, 4501, 4537, 4532, 4532, 4537, 4537, 4532, 4518, 4562, 4557, 4562, 4557, 4562, 4557, 4562, 4557, 14647, 15725, 4499, 4494, 4480, 4494, 4499, 4501, 4532, 4537, 4537, 4532, 4532, 4537, 4518, 4562, 4557, 4562, 4557, 4562, 4557, 4552, 14663, 15727, 4562, 4557, 4562, 4557, 4557, 4562, 4557, 4562, 4577, 4572, 4587, 4582, 3625, 3620, 3806, 3801, 3882, 4055, 4050, 15740, 4055, 4050, 4056, 15742, 4106, 4129, 4124, 4106, 4106, 15760, 15762, 3796, 3791, 3825, 3820, 3729, 3604, 3602, 3647, 3642, 3650, 3648, 3791, 3801, 3791, 3806, 3825, 3820, 3825, 3820, 3791, 3806, 3801, 3843, 3843, 3625, 3620, 15764, 3647, 3642, 3796, 3791, 15766, 3796, 3791, 15768, 3729, 3882, 3593, 3588, 15770, 15772, 15774, 3593, 3588, 15776, 3625, 3620, 3625, 3620, 15778, 3647, 3642, 3650, 3647, 3642, 3648, 3796, 3791, 15780, 3796, 3791, 15782, 3729, 3604, 3602, 15784, 3796, 3796, 3838, 4106, 15786, 4056, 4058, 4063, 15788, 4058, 4056, 15790, 4129, 4124, 4182, 4177, 4182, 4177, 15792, 4034, 4029, 4034, 4029, 4055, 4050, 4055, 4050, 15796, 4071, 15798, 15800, 15802, 4071, 4063, 4124, 4124, 4124, 4124, 4144, 4124, 4124, 4182, 4177, 4003, 3998, 15804, 4055, 4050, 15806, 4055, 4050, 15808, 15810, 4071, 4063, 4003, 3998, 4034, 4029, 15812, 15814, 15816, 4063, 15818, 15820, 4055, 4050, 4056, 15822, 15824, 15826, 15828, 4055, 4050, 15830, 4106, 4192, 15832, 4003, 3998, 15834, 15836, 4003, 3998, 15838, 15840, 4034, 4029, 4055, 4050, 4058, 4055, 4050, 4056, 15842, 4071, 15844, 4063, 4003, 3998, 15846, 15848, 4055, 4050, 4058, 4056, 15850, 4071, 4063, 4129, 4129, 4129, 4129, 15852, 4182, 4177, 4187, 15854, 4182, 4177, 15856, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 3604, 3602, 3604, 3602, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 3604, 3602, 3604, 3602, 3625, 3620, 15858, 15860, 3647, 3642, 3647, 3642, 15862, 3796, 3791, 3806, 3801, 3825, 3820, 3796, 3791, 3806, 3801, 3825, 3820, 3729, 3843, 3843, 3838, 3867, 3593, 3588, 3574, 3593, 3588, 3604, 3602, 15864, 3806, 3801, 3827, 3729, 3877, 3872, 3882, 3877, 3872, 3843, 3848, 3843, 3838, 3877, 3872, 3877, 3872, 3867, 15866, 4058, 4056, 4129, 4124, 4137, 4144, 4177, 4192, 4187, 4192, 4187, 15868, 4182, 4177, 15870, 4058, 4056, 15872, 4071, 4063, 15874, 15876, 4177, 4182, 4192, 4187, 15878, 4182, 4177, 4192, 4187, 15880, 4003, 3998, 15882, 4034, 4029, 4034, 4029, 4055, 4050, 4071, 4063, 4003, 3998, 4006, 4004, 4055, 4050, 15884, 4055, 4050, 15886, 15888, 4192, 4187, 15890, 4192, 4187, 15892, 4499, 4494, 4499, 4494, 4499, 4494, 4499, 4494, 4537, 4532, 4537, 4532, 4518, 4537, 4532, 4562, 4557, 4562, 4557, 4562, 4557, 4552, 4577, 4572, 15894, 4499, 4494, 4499, 4494, 4499, 4494, 4499, 4494, 4537, 4532, 4537, 4532, 4518, 4537, 4532, 4562, 4557, 4562, 4557, 4562, 4557, 4552, 4577, 4572, 15896, 4499, 4494, 4499, 4494, 4499, 4494, 4501, 4532, 4537, 4532, 4537, 4532, 4537, 4518, 4557, 4557, 4557, 4552, 4572, 4577, 15907, 15917, 4480, 4499, 4494, 4577, 4572, 15919, 4562, 14958, 15921, 4577, 4572, 15925, 4577, 4572, 15927, 4494, 4499, 4480, 4587, 4582, 4499, 4494, 4499, 4494, 4499, 4494, 4501, 4532, 4537, 4532, 4537, 4532, 4537, 4518, 4557, 4557, 4577, 4572, 15937, 4499, 4494, 4499, 4494, 4494, 4499, 4501, 4537, 4532, 4532, 4537, 4537, 4532, 4518, 4557, 4557, 4572, 4577, 15939, 4499, 4494, 4499, 4494, 4494, 4499, 4501, 4537, 4532, 4537, 4532, 4537, 4532, 4518, 4562, 4562, 4562, 4562, 4577, 4572, 15941, 4499, 4494, 4480, 4494, 4499, 4501, 3593, 3588, 15951, 15953, 3574, 15955, 15957, 3825, 3820, 3848, 3729, 3877, 3872, 3593, 3588, 3593, 3588, 3593, 3588, 3574, 15960, 15962, 3593, 3588, 3593, 3588, 3593, 3588, 3574, 15965, 15967, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 15970, 15972, 15974, 3600, 3625, 3620, 15976, 15978, 3647, 3642, 3648, 3647, 3642, 3650, 3796, 3791, 3806, 3801, 3825, 3820, 3796, 3791, 3806, 3801, 3825, 3820, 3796, 3791, 3806, 3801, 3820, 3825, 3820, 3825, 3729, 3848, 3729, 3877, 3872, 3593, 3588, 3593, 3588, 3593, 3588, 3574, 3604, 3602, 3604, 3602, 3604, 3602, 3600, 3625, 3620, 15981, 3625, 3620, 15983, 3647, 3642, 3650, 3648, 3806, 3801, 3825, 3820, 3806, 3801, 3825, 3820, 3825, 3820, 3848, 3843, 3838, 3877, 3872, 3877, 3872, 3882, 4063, 4003, 3998, 4063, 4129, 4124, 4182, 4177, 4187, 4182, 4177, 4187, 15985, 15987, 4034, 4029, 4055, 4050, 4058, 15989, 4071, 15991, 15993, 4055, 4050, 4058, 4056, 15995, 4063, 4129, 4124, 4129, 4124, 4144, 15997, 4187, 4182, 4177, 4187, 15999, 4003, 3998, 16001, 4034, 4029, 16003, 4003, 3998, 4003, 3998, 16005, 4055, 4050, 4055, 4050, 4055, 4050, 16009, 4063, 16011, 4003, 3998, 16013, 4034, 4029, 16015, 4055, 4050, 4058, 4056, 16017, 16020, 16023, 4071, 4129, 4124, 4106, 4144, 4139, 4139, 16025, 4182, 4177, 4187, 4187, 4187, 16027, 4003, 3998, 16029, 4003, 3998, 16031, 4034, 4029, 16033, 4003, 3998, 16035, 4003, 3998, 16037, 4034, 4029, 16039, 4055, 4050, 4058, 4055, 4050, 4056, 16041, 4063, 16043, 4071, 4003, 3998, 16045, 4003, 3998, 16047, 4034, 4029, 16049, 4034, 4029, 16051, 4055, 4050, 16053, 4055, 4050, 16055, 16057, 4071, 4063, 4129, 4124, 4106, 4144, 4106, 4106, 16059, 4129, 4124, 16061, 4139, 4137, 4139, 4144, 16063, 4182, 4177, 4192, 16065, 4182, 4177, 4192, 16067, 4182, 4177, 4192, 4192, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 16071, 3600, 16073, 16075, 3593, 3588, 3574, 3593, 3588, 3593, 3588, 16079, 3600, 16081, 16084, 3625, 3620, 16087, 3625, 3620, 16089, 3647, 3642, 16091, 3647, 3642, 16093, 3796, 3791, 3806, 3801, 3825, 3820, 3825, 3820, 3796, 3791, 16097, 3796, 3791, 16099, 3820, 3825, 3827, 3729, 3729, 3848, 3729, 3877, 3872, 3882, 3877, 3872, 3877, 3872, 3796, 3791, 3806, 3801, 3825, 3820, 3786, 3796, 3791, 3806, 3801, 3825, 3820, 3825, 3820, 3843, 3843, 3843, 3848, 3877, 3872, 3877, 3872, 3877, 3872, 3882, 16107, 4058, 4056, 4071, 4063, 16109, 4137, 4129, 4124, 16115, 4192, 4187, 4182, 4177, 16117, 4003, 3998, 16119, 4003, 3998, 16121, 4034, 4029, 16123, 4034, 4029, 16125, 4055, 4050, 4058, 4056, 16127, 4071, 4063, 4003, 3998, 16129, 4003, 3998, 16131, 4034, 4029, 16133, 4034, 4029, 4034, 4029, 4055, 4050, 16137, 4055, 4050, 16139, 16141, 4063, 16143, 4071, 4129, 4124, 4129, 4124, 4129, 4124, 4129, 4124, 4144, 4129, 4124, 16152, 4129, 4124, 16154, 4137, 4144, 16157, 4177, 16159, 4182, 4192, 4187, 4192, 4187, 16163, 4182, 4177, 4192, 4187, 16165, 4499, 4494, 4499, 4494, 4501, 4577, 4572, 4499, 4494, 4499, 4494, 4499, 4494, 4501, 4537, 4532, 4537, 4532, 4518, 4562, 4557, 4562, 4557, 4577, 4572, 16170, 4577, 4572, 16172, 4499, 4494, 4499, 4494, 4499, 4494, 4501, 4532, 4537, 4532, 4537, 4532, 4537, 4518, 4562, 4557, 4562, 4557, 4562, 4557, 4552, 4577, 4572, 16187, 4499, 4494, 4480, 4494, 4499, 4501, 4537, 4532, 4537, 4532, 4532, 4537, 4518, 4562, 4557, 4562, 4557, 4557, 4562, 4557, 4562, 15424, 16193, 4494, 4499, 4494, 4499, 4499, 4494, 4499, 4494, 4537, 4532, 4537, 4532, 4537, 4532, 4537, 4532, 4557, 4562, 4552, 4562, 4557, 4567, 4577, 4572, 4587, 4582, 7123, 7118, 7154, 7149, 7159, 16150, 16149, 7154, 7149, 7144, 7154, 7149, 7154, 7149, 7162, 7089, 7089, 7162, 7187, 7177, 7187, 16232, 16234, 7162, 7089, 7177, 7154, 7149, 7159, 7154, 7149, 7149, 7154, 7187, 7187, 7154, 7149, 7149, 7154, 7187, 7192, 7177, 16237, 7089, 7187, 7182, 16241, 7089, 7154, 7149, 7162, 7162, 16244, 16150, 16149, 16150, 16149, 16112, 16111, 16150, 16149, 16112, 16111, 16112, 16111, 16150, 16149, 16112, 16111, 7123, 7118, 7154, 7149, 7089, 7162, 7162, 7089, 7182, 7123, 7118, 7154, 7149, 7154, 7149, 7162, 7089, 7089, 7162, 7182, 7177, 7182, 7192, 16260, 16262, 7162, 7089, 16264, 16266, 7159, 7162, 7089, 7182, 16272, 16274, 7154, 7149, 7159, 7162, 7089, 7182, 7177, 7182, 7192, 16277, 16279, 7154, 7149, 7159, 7162, 7089, 7182, 7192, 7177, 16283, 7154, 7149, 7154, 7149, 7159, 7089, 7089, 16285, 7162, 7162, 16290, 7154, 7149, 7159, 7089, 7162, 7162, 7089, 16292, 16294, 16296, 16298, 7123, 7118, 16150, 16149, 16112, 16111, 16150, 16149, 16150, 16149, 16112, 16111, 16150, 16149, 16112, 16111, 16150, 16149, 16150, 16149, 16112, 16111, 16309, 7154, 7149, 7144, 7089, 7162, 7162, 7089, 7187, 7182, 16316, 7154, 7149, 7162, 7162, 7187, 7182, 7187, 7182, 16320, 16322, 7187, 7182, 7154, 7149, 7154, 7149, 7089, 7187, 7182, 7089, 16336, 16338, 7089, 7089, 7187, 7182, 7089, 7089, 7187, 7182, 16150, 16149, 16112, 16111, 16150, 16149, 16150, 16149, 16112, 16111, 16150, 16149, 16348, 7154, 7149, 7144, 16350, 16356, 7154, 7149, 7154, 7149, 7154, 7149, 7159, 16359, 16361, 7187, 7182, 7177, 7187, 7182, 7192, 7123, 7118, 7154, 7149, 7154, 7149, 7154, 7149, 7159, 7187, 7182, 7177, 7187, 7182, 7192, 7123, 7118, 7154, 7149, 7154, 7149, 7154, 7149, 7159, 7187, 7182, 7177, 7187, 7182, 7192, 9203, 9198, 9172, 9198, 9172, 9172, 9198, 9172, 9193, 9193, 9172, 9172, 9172, 9203, 9198, 9193, 9198, 9203, 9172, 9172, 9172, 9203, 9198, 9193, 9198, 9203, 9198, 9172, 9198, 9203, 9198, 9172, 9193, 9198, 9172, 9193, 9198, 9172, 9203, 9172, 9193, 9172, 9203, 9198, 9193, 9198, 9203, 9172, 9193, 9172, 9203, 9198, 9193, 9198, 9203, 9172, 9172, 9203, 9198, 9172, 9193, 16378, 16377, 16375, 16377, 16375, 9198, 9172, 9198, 9172, 9198, 9172, 9203, 9172, 9172, 9172, 9203, 9198, 9193, 9198, 9203, 9203, 9203, 9198, 9193, 9198, 9203, 9198, 9193, 9198, 9203, 9172, 9172, 9172, 9203, 16335, 9198, 9193, 9198, 9203, 9172, 9172, 9172, 9203, 16335, 9198, 9172, 9193, 9172, 9198, 9203, 16382, 9193, 16384, 9203, 16386, 9193, 16388, 9203, 9172, 9172, 9172, 9172, 9198, 9193, 9198, 9203, 16377, 16375, 16377, 16375, 16393, 16392, 16393, 16392, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 16418, 16419, 16420, 16421, 16422, 16423, 16424, 16425, 16426, 16427, 16428, 16429, 16430, 16431, 16432, 16434, 16435, 16437, 16438, 16440, 16441, 16443, 16444, 16446, 16447, 16448, 16449, 16450, 16451, 16452, 16453, 16454, 16455, 16456, 16457, 16458, 16459, 16460, 16461, 16462, 16463, 16464, 16465, 16466, 16468, 16471, 16472, 16473, 16474, 16475, 16476, 16477, 16479, 16482, 16483, 16484, 16485, 16486, 16487, 16489, 16490, 16492, 16493, 16494, 16495, 16496, 16497, 16498, 16499, 16500, 16501, 16502, 16503, 16504, 16505, 16506, 16507, 16508, 16509, 16510, 16511, 16513, 16514, 16518, 16519, 16520, 16521, 16522, 16523, 16534, 16535, 16537, 16538, 16539, 16540, 16542, 16543, 16545, 16546, 16547, 16548, 16549, 16550, 16554, 16556, 16557, 16559, 16560, 16561, 16562, 16564, 16566, 16571, 16572, 16573, 16574, 16576, 16577, 16578, 16581, 16582, 16583, 16584, 16585, 16586, 16587, 16588, 16589, 16590, 16591, 16592, 16593, 16594, 16595, 16596, 16597, 16598, 16599, 16600, 16601, 16603, 16604, 16606, 16607, 16609, 16610, 16612, 16613, 16614, 16615, 16616, 16617, 16618, 16619, 16620, 16621, 16622, 16623, 16624, 16625, 16626, 16627, 16628, 16629, 16631, 16632, 16634, 16635, 16636, 16637, 16638, 16639, 16640, 16641, 16642, 16643, 16644, 16645, 16646, 16647, 16648, 16652, 16653, 16654, 16655, 16656, 16657, 16658, 16659, 16663, 16664, 16665, 16667, 16668, 16670, 16671, 16673, 16674, 16676, 16677, 16678, 16679, 16680, 16681, 16683, 16684, 16686, 16687, 16689, 16690, 16692, 16693, 16695, 16696, 16698, 16699, 16701, 16702, 16704, 16705, 16706, 16707, 16708, 16709, 16711, 16712, 16714, 16715, 16718, 16720, 16721, 16722, 16723, 16724, 16725, 16727, 16728, 16729, 16730, 16731, 16732, 16735, 16736, 16738, 16739, 16740, 16741, 16742, 16743, 16744, 16745, 16746, 16748, 16749, 16750, 16751, 16752, 16754, 16755, 16756, 16757, 16758, 16759, 16760, 16761, 16762, 16763, 16765, 16766, 16769, 16771, 16772, 16773, 16777, 16778, 16779, 16780, 16782, 16784, 16787, 16788, 16790, 16791, 16792, 16793, 16795, 16796, 16797, 16798, 16800, 16801, 16802, 16803, 16804, 16805, 16806, 16807, 16808, 16809, 16810, 16811, 16812, 16813, 16814, 16815, 16816, 16817, 16818, 16819, 16820, 16821, 16822, 16823, 16824, 16825, 16826, 16827, 16828, 16829, 16830, 16831, 16832, 16833, 16834, 16835, 16836, 16837, 16838, 16839, 16840, 16841, 16842, 16843, 16844, 16845, 16846, 16847, 16848, 16849, 16850, 16851, 16852, 16853, 16855, 16856, 16857, 16858, 16859, 16860, 16861, 16862, 16863, 16864, 16865, 16866, 16867, 16868, 16869, 16870, 16871, 16872, 16873, 16874, 16875, 16876, 16878, 16879, 16880, 16881, 16882, 16883, 16884, 16885, 16886, 16887, 16888, 16889, 16890, 16891, 16892, 16893, 16894, 16895, 16896, 16897, 16898, 16900, 16901, 16902, 16903, 16904, 16905, 16906, 16907, 16908, 16909, 16910, 16911, 16912, 16913, 16914, 16915, 16916, 16917, 16918, 16920, 16921, 16922, 16924, 16925, 16926, 16927, 16928, 16931, 16932, 16933, 16934, 16935, 16936, 16937, 16938, 16939, 16940, 16941, 16942, 16943, 16944, 16945, 16946, 16947, 16948, 16949, 16950, 16951, 16952, 16953, 16954, 16955, 16956, 16958, 16959, 16960, 16961, 16963, 16964, 16966, 16967, 16968, 16969, 16973, 16974, 16976, 16977, 16978, 16979, 16981, 16982, 16983, 16984, 16985, 16986, 16987, 16988, 16990, 16991, 16993, 16994, 16995, 16997, 16998, 16999, 17000, 17002, 17003, 17004, 17006, 17007, 17009, 17010, 17011, 17012, 17013, 17014, 17016, 17017, 17018, 17019, 17020, 17021, 17022, 17023, 17025, 17029, 17030, 17031, 17032, 17033, 17034, 17035, 17036, 17037, 17038, 17039, 17040, 17041, 17043, 17044, 17046, 17047, 17050, 17051, 17052, 17053, 17054, 17055, 17059, 17062, 17063, 17064, 17069, 17070, 17072, 17073, 17075, 17076, 17079, 17080, 17083, 17084, 17085, 17086, 17087, 17088, 17089, 17090, 17092, 17094, 17095, 17096, 17099, 17100, 17101, 17102, 17104, 17105, 17106, 17107, 17108, 17109, 17111, 17112, 17113, 17115, 17116, 17118, 17119, 17120, 17121, 17122, 17123, 17124, 17125, 17126, 17127, 17128, 17129, 17130, 17131, 17132, 17133, 17134, 17135, 17136, 17137, 17138, 17139, 17140, 17141, 17144, 17145, 17146, 17147, 17149, 17150, 17151, 17152, 17153, 17154, 17155, 17156, 17157, 17158, 17159, 17160, 17161, 17162, 17163, 17164, 17165, 17166, 17167, 17168, 17169, 17170, 17171, 17172, 17174, 17175, 17176, 17177, 17178, 17179, 17180, 17181, 17182, 17183, 17184, 17185, 17186, 17187, 17188, 17189, 17190, 17191, 17193, 17194, 17195, 17196, 17197, 17198, 17199, 17200, 17201, 17202, 17203, 17205, 17206, 17208, 17209, 17211, 17212, 17215, 17216, 17217, 17218, 17220, 17221, 17222, 17223, 17225, 17226, 17228, 17229, 17230, 17231, 17232, 17233, 17234, 17235, 17236, 17237, 17238, 17239, 17240, 17241, 17243, 17244, 17247, 17248, 17250, 17251, 17253, 17254, 17255, 17256, 17257, 17258, 17259, 17260, 17261, 17262, 17263, 17264, 17265, 17266, 17267, 17268, 17269, 17270, 17271, 17272, 17273, 17274, 17275, 17276, 17278, 17279, 17280, 17281, 17282, 17283, 17284, 17285, 17286, 17287, 17288, 17289, 17290, 17291, 17292, 17293, 17294, 17295, 17296, 17297, 17298, 17299, 17300, 17301, 17303, 17304, 17305, 17306, 17307, 17308, 17309, 17310, 17311, 17312, 17313, 17314, 17315, 17316, 17317, 17318, 17319, 17320, 17321, 17322, 17325, 17326, 17327, 17328, 17329, 17331, 17332, 17334, 17335, 17337, 17338, 17340, 17341, 17342, 17343, 17344, 17345, 17346, 17347, 17348, 17349, 17350, 17351, 17352, 17353, 17354, 17355, 17356, 17357, 17358, 17359, 17360, 17361, 17362, 17364, 17365, 17366, 17367, 17368, 17369, 17370, 17371, 17372, 17373, 17374, 17375, 17376, 17377, 17378, 17379, 17380, 17381, 17383, 17384, 17385, 17386, 17387, 17388, 17389, 17390, 17391, 17392, 17393, 17394, 17395, 17396, 17397, 17398, 17399, 17400, 17401, 17402, 17404, 17405, 17406, 17407, 17408, 17409, 17410, 17411, 17414, 17417, 17418, 17419, 17420, 17421, 17422, 17423, 17424, 17425, 17426, 17427, 17428, 17429, 17432, 17433, 17434, 17435, 17436, 17437, 17438, 17441, 17442, 17443, 17444, 17445, 17446, 17447, 17451, 17452, 17453, 17456, 17457, 17458, 17459, 17460, 17461, 17462, 17463, 17464, 17465, 17466, 17467, 17468, 17469, 17470, 17471, 17472, 17473, 17474, 17475, 17476, 17477, 17478, 17479, 17480, 17481, 17482, 17483, 17484, 17485, 17486, 17487, 17488, 17489, 17490, 17491, 17492, 17493, 17494, 17495, 17496, 17497, 17498, 17499, 17500, 17501, 17502, 17504, 17505, 17507, 17508, 17509, 17510, 17511, 17512, 17513, 17514, 17515, 17516, 17517, 17518, 17519, 17520, 17521, 17522, 17523, 17524, 17525, 17526, 17527, 17528, 17529, 17530, 17531, 17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539, 17540, 17543, 17544, 17545, 17546, 17547, 17549, 17552, 17553, 17554, 17555, 17557, 17558, 17559, 17560, 17561, 17562, 17564, 17565, 17566, 17567, 17569, 17570, 17572, 17573, 17575, 17576, 17577, 17578, 17580, 17581, 17582, 17583, 17584, 17585, 17587, 17589, 17590, 17592, 17593, 17595, 17596, 17597, 17598, 17602, 17603, 17604, 17605, 17606, 17607, 17608, 17610, 17611, 17612, 17613, 17614, 17616, 17617, 17619, 17620, 17622, 17623, 17625, 17626, 17628, 17629, 17631, 17632, 17634, 17635, 17636, 17637, 17638, 17639, 17641, 17643, 17644, 17645, 17647, 17648, 17650, 17651, 17653, 17654, 17656, 17657, 17659, 17660, 17663, 17664, 17665, 17666, 17667, 17668, 17669, 17670, 17672, 17673, 17675, 17676, 17677, 17678, 17680, 17681, 17682, 17684, 17685, 17686, 17688, 17689, 17690, 17691, 17692, 17693, 17694, 17695, 17696, 17697, 17698, 17700, 17703, 17704, 17705, 17706, 17707, 17708, 17709, 17711, 17714, 17715, 17717, 17718, 17720, 17721, 17723, 17724, 17726, 17727, 17728, 17729, 17730, 17731, 17732, 17733, 17734, 17735, 17737, 17738, 17740, 17741, 17742, 17743, 17744, 17745, 17746, 17747, 17748, 17749, 17750, 17751, 17752, 17753, 17754, 17755, 17756, 17757, 17758, 17759, 17760, 17761, 17762, 17763, 17764, 17765, 17766, 17767, 17768, 17769, 17770, 17771, 17772, 17773, 17774, 17775, 17776, 17777, 17778, 17779, 17781, 17782, 17783, 17784, 17786, 17787, 17788, 17790, 17791, 17792, 17793, 17795, 17796, 17798, 17799, 17801, 17802, 17804, 17805, 17807, 17808, 17809, 17810, 17812, 17813, 17814, 17815, 17817, 17818, 17820, 17821, 17823, 17824, 17825, 17826, 17827, 17828, 17830, 17831, 17834, 17836, 17837, 17838, 17839, 17840, 17841, 17842, 17843, 17844, 17845, 17846, 17847, 17849, 17850, 17852, 17853, 17855, 17857, 17858, 17859, 17860, 17861, 17863, 17864, 17865, 17866, 17868, 17869, 17870, 17871, 17872, 17873, 17874, 17875, 17876, 17877, 17878, 17879, 17880, 17881, 17882, 17883, 17884, 17885, 17886, 17887, 17888, 17889, 17890, 17891, 17892, 17894, 17895, 17897, 17898, 17899, 17900, 17901, 17902, 17903, 17904, 17905, 17906, 17907, 17908, 17909, 17910, 17911, 17912, 17913, 17914, 17915, 17916, 17917, 17918, 17919, 17921, 17922, 17923, 17924, 17925, 17926, 17927, 17928, 17929, 17930, 17931, 17932, 17933, 17934, 17935, 17936, 17937, 17938, 17939, 17940, 17941, 17942, 17944, 17945, 17946, 17947, 17948, 17949, 17950, 17951, 17952, 17953, 17954, 17955, 17956, 17957, 17958, 17959, 17960, 17961, 17962, 17963, 17964, 17965, 17966, 17967, 17968, 17969, 17970, 17971, 17972, 17973, 17974, 16022, 16019, 17975, 17976, 16533, 16417, 17977, 17978, 17979, 17980, 17981, 17982, 17983, 17984, 17985, 17986, 17987, 17988, 17989, 17990, 17993, 17994, 17995, 17996, 17997, 17998, 17999, 18000, 18001, 18002, 18003, 18004, 18005, 18006, 18007, 18008, 18009, 18010, 18011, 18013, 18014, 18015, 18017, 18018, 18019, 18020, 18021, 16086, 16083, 16086, 16083, 16022, 16019, 18023, 18024, 16533, 16531, 16022, 16019, 18025, 18026, 18027, 18028, 16533, 16531, 16022, 16019, 18029, 18030, 18031, 18032, 16570, 16568, 16086, 16083, 16086, 16083, 18033, 18034, 18035, 18036, 18037, 18038, 18039, 18040, 18041, 18042, 18043, 18044, 18045, 18046, 18047, 18048, 18049, 18050, 18051, 18052, 18053, 18054, 18055, 18056, 18057, 18058, 18059, 18060, 18061, 18064, 18065, 18068, 18069, 18070, 18071, 18074, 18075, 18076, 18077, 18078, 18079, 18080, 18081, 18082, 18085, 18086, 18087, 18088, 18089, 18090, 18091, 18092, 15964, 16083, 15969, 16086, 16086, 16083, 18094, 18095, 18096, 18097, 18098, 18099, 18100, 18102, 18103, 18105, 18106, 18107, 18108, 18109, 18110, 18111, 18116, 18117, 16083, 15964, 15969, 16086, 16086, 16083, 15964, 16083, 16086, 15969, 16083, 16086, 15964, 16083, 16086, 15969, 16086, 16083, 18118, 18119, 18120, 18121, 16022, 16019, 18122, 18123, 18124, 18125, 18126, 18127, 18128, 18129, 18130, 18131, 18132, 18133, 18134, 18135, 18136, 18137, 18139, 18140, 18141, 18142, 18143, 18144, 18145, 18146, 18147, 18149, 18150, 18151, 18152, 18153, 18154, 18155, 18156, 18159, 18160, 18161, 18162, 18163, 18164, 18165, 18166, 18167, 18168, 18171, 18172, 18173, 18174, 18175, 18176, 18177, 18178, 15964, 16083, 15969, 16086, 16083, 16086, 15964, 16083, 15969, 16086, 16086, 16083, 18179, 18180, 18181, 18182, 18183, 18184, 18185, 18186, 16022, 16019, 16086, 16083, 16086, 16083, 18187, 18188, 18189, 18190, 18192, 18193, 18194, 18197, 18198, 18199, 18200, 18201, 18202, 18203, 18206, 18207, 18208, 18209, 18210, 18211, 18212, 18213, 18214, 18215, 18216, 18217, 18218, 18219, 18220, 18221, 18222, 18223, 18224, 18225, 18226, 18227, 18228, 18229, 18230, 18231, 18232, 18233, 18234, 18235, 18236, 18237, 18238, 18239, 18240, 18241, 18242, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 16372, 16335, 18252, 18253, 18254, 18255, 18256, 18257, 18258, 18259, 16335, 18260, 18261, 18262, 18263, 18264, 18265, 18266, 18267, 16335, 18268, 16311, 18269, 18270, 18271, 18272, 18273, 18274, 18275, 18276, 18277, 18278, 18279, 18280, 18281, 18282, 18283, 18284, 18285, 18286, 18287, 18288, 16372, 16335, 16372, 16335, 18289, 18290, 18291, 18292, 18293, 18294, 18295, 18296, 16372, 16335, 16372, 16335, 18297, 18298, 18299, 16335, 16335, 18300, 18301, 18302, 16311, 16377, 16375, 16358, 16377, 16375, 18304, 18305, 18306, 18307, 18308, 18309, 18310, 18311, 18312, 18313, 18314, 16311, 18315, 18316, 18317, 18318, 18319, 18320, 18321, 18322, 16335, 18323, 18324, 18325, 18326, 18327, 18328, 16374, 16373, 18329, 18330, 18331, 18332, 18333, 18334, 18335, 18336, 18337, 18338, 18339, 18340, 18341, 18342, 18343, 18344, 18345, 18346, 16374, 16373, 18347, 18348, 18349, 18350, 18351, 18352, 16358, 16377, 16375, 18354, 18356, 18358, 18360, 16358, 16377, 16375, 18361, 18362, 18363, 18364, 18365, 18366, 18367, 18368, 18369, 18370, 18371, 18372, 18373, 18374, 18375, 18376, 28, 29, 30, 31, 18400, 18403, 18406, 18408, 18410, 18413, 18415, 18417, 18419, 18421, 18423, 18425, 18427, 18429, 18431, 18433, 18437, 18440, 18442, 18445, 18448, 18450, 18453, 18455, 18457, 18459, 18461, 18464, 18466, 18468, 18471, 18473, 18475, 18477, 18479, 18481, 18483, 18485, 18487, 18489, 18491, 18493, 18495, 18497, 18499, 18501, 18504, 18506, 18508, 18512, 18514, 18517, 18519, 18521, 18523, 18525, 18529, 18531, 18533, 18535, 18538, 18540, 18542, 18544, 18546, 18548, 18550, 18556, 18558, 18560, 18562, 18564, 18566, 18570, 18572, 18574, 18577, 18579, 18582, 18585, 18587, 18590, 18592, 18594, 18596, 18598, 18602, 18604, 18606, 18608, 18610, 18612, 18614, 18616, 18618, 18620, 18622, 18624, 18626, 18629, 18631, 18633, 18635, 18637, 18639, 18641, 18643, 18645, 18647, 18649, 18652, 18654, 18657, 18659, 18661, 18663, 18665, 18667, 18671, 18673, 18675, 18681, 18683, 18685, 18687, 18690, 18692, 18694, 18696, 18698, 18701, 18704, 18706, 18708, 18710, 18712, 18715, 18717, 18719, 18721, 18723, 18726, 18728, 18730, 18732, 18734, 18736, 18738, 18741, 18743, 18746, 18749, 18751, 18753, 18756, 18758, 18760, 18762, 18765, 18768, 18771, 18773, 18775, 18778, 18780, 18782, 18786, 18788, 18790, 18792, 18794, 18796, 18798, 18800, 18803, 18805, 18809, 18813, 18815, 18818, 18820, 18822, 18828, 18830, 18833, 18837, 18839, 18841, 18843, 18847, 18849, 18851, 18853, 18855, 18858, 18861, 18863, 18866, 18875, 18877, 18879, 18881, 18883, 18885, 18887, 18889, 18892, 18901, 18903, 18905, 18907, 18909, 18911, 18913, 18916, 18919, 18923, 18925, 18927, 18929, 18932, 18937, 18939, 18941, 18943, 18949, 18952, 18954, 18957, 18959, 18961, 18963, 18965, 18968, 18970, 18972, 18974, 18976, 18978, 18980, 18982, 18984, 18986, 18988, 18990, 18992, 18999, 19002, 19004, 19006, 19010, 19013, 19019, 19021, 19024, 19026, 19031, 19033, 19035, 19037, 19039, 19043, 19045, 19047, 19049, 19051, 19053, 19055, 19057, 19059, 19061, 19063, 19065, 19067, 19069, 19071, 19073, 19075, 19077, 19079, 19081, 19084, 19086, 19088, 19090, 19093, 19095, 19097, 19099, 19101, 19103, 19105, 19108, 19110, 19112, 19114, 19117, 19119, 19121, 19123, 19126, 19128, 19130, 19137, 19140, 19142, 19146, 19148, 19150, 19153, 19155, 19157, 19159, 19162, 19164, 19166, 19171, 19173, 19175, 19177, 19180, 19182, 19184, 19189, 19191, 19193, 19195, 19198, 19200, 19202, 19209, 19211, 19214, 19217, 19220, 19224, 19226, 19228, 19230, 19233, 19235, 19237, 19240, 19243, 19245, 19248, 19250, 19253, 19256, 19258, 19260, 19262, 19264, 19266, 19268, 19270, 19272, 19274, 19279, 19281, 19283, 19285, 19288, 19290, 19292, 19295, 19297, 19299, 19301, 19303, 19305, 19307, 19309, 19311, 19316, 19318, 19322, 19325, 19327, 19330, 19333, 19335, 19339, 19341, 19344, 19346, 19350, 19353, 19355, 19357, 19359, 19361, 19363, 19365, 19368, 19370, 19372, 19374, 19377, 19383, 19388, 19390, 19392, 19394, 19396, 19398, 19400, 19403, 19408, 19410, 19412, 19414, 19416, 19418, 19420, 19422, 19428, 19434, 19437, 19440, 19444, 19447, 19449, 19452, 19455, 19457, 19460, 19462, 19464, 19466, 19468, 19470, 19472, 19474, 19476, 19478, 19480, 19487, 19490, 19492, 19494, 19496, 19498, 19501, 19503, 19505, 19507, 19513, 19515, 19517, 19520, 19522, 19525, 19527, 19529, 19531, 19533, 19535, 19537, 19539, 19541, 19543, 19545, 19547, 19549, 19551, 19553, 19555, 19557, 19561, 19563, 19565, 19567, 19570, 19572, 19578, 19580, 19582, 19584, 19586, 19588, 19591, 19593, 19595, 19597, 19600, 19602, 19605, 19607, 19609, 19611, 19613, 19615, 19617, 19620, 19622, 19624, 19627, 19629, 19631, 19634, 19636, 19639, 19642, 19644, 19646, 19649, 19651, 19653, 19655, 19658, 19660, 19662, 19664, 19666, 19668, 19670, 19672, 19674, 19677, 19680, 19682, 19684, 19686, 19689, 19690, 19407, 19380, 19575, 19431, 19693, 19694, 19695, 19698, 19700, 19702, 19704, 19709, 19712, 19715, 19717, 19721, 19723, 19726, 16191, 16189, 19729, 19732, 19736, 19737, 18444, 19738, 19739, 18452, 19740, 19741, 19338, 19348, 19742, 19575, 19574, 19744, 19745, 19407, 19746, 19747, 19380, 19574, 19752, 19753, 18503, 19754, 19755, 18511, 18510, 19756, 19758, 19575, 19574, 19760, 19761, 18555, 16104, 16103, 19018, 15591, 15590, 18555, 16104, 16103, 18569, 19018, 18581, 19762, 19763, 18589, 19764, 19765, 16103, 19485, 16104, 19315, 19313, 18628, 19560, 19028, 19042, 19030, 18669, 18670, 19768, 19770, 19042, 19041, 16747, 16753, 18670, 18669, 18678, 18677, 19433, 16150, 16149, 18689, 19577, 19772, 19774, 19776, 19778, 19781, 19783, 19785, 19787, 19789, 19795, 19798, 16877, 16899, 19801, 19804, 19810, 19813, 19816, 19818, 19819, 19820, 19821, 19247, 19822, 19823, 16104, 16103, 19222, 19321, 19338, 16150, 16149, 19348, 19575, 19574, 16161, 16162, 17615, 19560, 19559, 19569, 19524, 19575, 19574, 19576, 19577, 19824, 19826, 19833, 19836, 19838, 19840, 19842, 19843, 19844, 19845, 19247, 19846, 19847, 16104, 19222, 16103, 18827, 18825, 19313, 16104, 16103, 19848, 19849, 19850, 19851, 19247, 19852, 19853, 16104, 19485, 16103, 19854, 19855, 19856, 19857, 19247, 19858, 19859, 16104, 19222, 16103, 19313, 18870, 19407, 19406, 16150, 19425, 16149, 19433, 19431, 16070, 16069, 18874, 18891, 19860, 19862, 19575, 19574, 16161, 16162, 17615, 19864, 19865, 18891, 16145, 16146, 19866, 16145, 16146, 18898, 16146, 16145, 19868, 19870, 16161, 16162, 17117, 19407, 18915, 16150, 16149, 19380, 19575, 19574, 16161, 16162, 17615, 19406, 19407, 16150, 16149, 19425, 19433, 19431, 16161, 16162, 18936, 18935, 16145, 16146, 19872, 19874, 16146, 16145, 19575, 16161, 16162, 17117, 16103, 19485, 16104, 18997, 19512, 16104, 16103, 19485, 19018, 19016, 19559, 19560, 19029, 19028, 19042, 19030, 19559, 19560, 19878, 19880, 19042, 19041, 19560, 19559, 19574, 19433, 19577, 19576, 19882, 19885, 19887, 19889, 19136, 16190, 16189, 19891, 19895, 19897, 16191, 16189, 16192, 16190, 16190, 16189, 16192, 16191, 17333, 16191, 16189, 16192, 16190, 16190, 16189, 16192, 16191, 17333, 19899, 19901, 19903, 19906, 16191, 16189, 16192, 16190, 16190, 16192, 16191, 16189, 19911, 19915, 19917, 19918, 19919, 19920, 19247, 19921, 19922, 16104, 16103, 19222, 19923, 19924, 19925, 19926, 19247, 19927, 19928, 16104, 19277, 16103, 19315, 19313, 19321, 19338, 19376, 19324, 19929, 19931, 19575, 16161, 16162, 17615, 19338, 19367, 19376, 19343, 19348, 19935, 19575, 19574, 16161, 16162, 17615, 19407, 19367, 19376, 19937, 19938, 19380, 16150, 16149, 19575, 19574, 16161, 16162, 17615, 19407, 19406, 16150, 16149, 19425, 19433, 19431, 16161, 16162, 16070, 16069, 19939, 19940, 19451, 19941, 19942, 19459, 16103, 19485, 16104, 19512, 16104, 16103, 19560, 19559, 19524, 19575, 19574, 19576, 19577, 19560, 19559, 19569, 19575, 19574, 19577, 19576, 19947, 19950, 19952, 19954, 19957, 19960, 17943, 19963, 19965, 19967, 19969, 19972, 19975, 19978, 19980, 19982, 19984, 19987, 19990, 19994, 19996, 19999, 19794, 19707, 19794, 19707, 20003, 20004, 19809, 19711, 19809, 19807, 20013, 16377, 16375, 16377, 16375, 20022, 16377, 16375, 16377, 16375, 16377, 16375, 20024, 20025, 20028, 19794, 19792, 20031, 20034, 19794, 19792, 20045, 20046, 19809, 19807, 20047, 20048, 20057, 20058, 19809, 19807, 20059, 20060, 20064, 16377, 16375, 20065, 16377, 16375, 20066, 20069, 20070, 20071, 20072, 20073, 20074, 20075, 20077, 20079, 20081, 20083, 20086, 20095, 16377, 16375, 20102, 20103, 16375, 16377, 16377, 16375, 16377, 16375, 16377, 16375, 20122, 20123, 16375, 16377, 16377, 16375, 20124, 20127, 20130, 20131, 20132, 20137, 20138, 20139, 20148, 20150, 20040, 20002, 20044, 20042, 20052, 20050, 20056, 20054, 20017, 16393, 16392, 20021, 20019, 20090, 16393, 16392, 20094, 20092, 20040, 20002, 20044, 20042, 20052, 20050, 20056, 20054, 20008, 16393, 16392, 20012, 20010, 20017, 16393, 16392, 20021, 20019, 20090, 16393, 16392, 20094, 20092, 20040, 20038, 20044, 20042, 20052, 20050, 20056, 20054, 20063, 16393, 16392, 20147, 20145, 20134, 20133, 20135, 20136, 16393, 16392, 16391, 16390, 20147, 20145, 20090, 16393, 16392, 20094, 20092, 20096, 20097, 20099, 20101, 20105, 20107, 20111, 16393, 16392, 20114, 20116, 20120, 16393, 16392, 20134, 20133, 20136, 20135, 16393, 16392, 16391, 16390, 20147, 20145, 28, 29, 30, 31, 17227, 16416, 17803, 16776, 20686, 20684, 20196, 20687, 20688, 20689, 20690, 16161, 18405, 18402, 18412, 16202, 16201, 16436, 16433, 16439, 16445, 16442, 15795, 15794, 16196, 16195, 16198, 16197, 20704, 20705, 16078, 16077, 18439, 20710, 20708, 16078, 16077, 18447, 20713, 20711, 15520, 15519, 16491, 16488, 16078, 16077, 18463, 16086, 16083, 18470, 15526, 15525, 16515, 16512, 17541, 17060, 17624, 17630, 16525, 17633, 16008, 16007, 19337, 20716, 20714, 16517, 17588, 16136, 16135, 17822, 16529, 15571, 16007, 20196, 16145, 16148, 20717, 17851, 20719, 20720, 20721, 16161, 20578, 16162, 20539, 16524, 17621, 17060, 17574, 17630, 16525, 17633, 16008, 16007, 19337, 20723, 16555, 16528, 16136, 16135, 17822, 16529, 15571, 16007, 20574, 16147, 16146, 20726, 17674, 20727, 20728, 16161, 20578, 16162, 20579, 17867, 16078, 16077, 19001, 16083, 18537, 16086, 17506, 16536, 16544, 16541, 17621, 17618, 17624, 17627, 17630, 17633, 19402, 16008, 16007, 20730, 16555, 17646, 15571, 16007, 16558, 20733, 20734, 20735, 20737, 20738, 20739, 16161, 20578, 16162, 20579, 16078, 18516, 16077, 19294, 16086, 16083, 16580, 16579, 16608, 16611, 20225, 18552, 20741, 20742, 20743, 16106, 16105, 20228, 16101, 20214, 16102, 20744, 20745, 20746, 19023, 16077, 16078, 15593, 15592, 18537, 16083, 16086, 16605, 16602, 16611, 16608, 20225, 18552, 20747, 20748, 20749, 19012, 20228, 16101, 16633, 16630, 16102, 20750, 20751, 15980, 15959, 16078, 16077, 18576, 20752, 16078, 16077, 18584, 20755, 16669, 16666, 16675, 16672, 20591, 18600, 20758, 20759, 20760, 16105, 16106, 19489, 20601, 18601, 20761, 20762, 19320, 18998, 16685, 16682, 16691, 16688, 16697, 16694, 20621, 16703, 16700, 16136, 16135, 16713, 16710, 16716, 16764, 16717, 20763, 20764, 16148, 16147, 16146, 16145, 20765, 20766, 20767, 16719, 20422, 17224, 20260, 16726, 20263, 16733, 16767, 16764, 20768, 20769, 17797, 16774, 16776, 16775, 20610, 20428, 16148, 16147, 16146, 16145, 20770, 20772, 20773, 17249, 20266, 17252, 20269, 20774, 20271, 20775, 20273, 16136, 16135, 16767, 16764, 20776, 20777, 16774, 17227, 16776, 16775, 20280, 20778, 20779, 16786, 16785, 20780, 20781, 20782, 20281, 16069, 20283, 16070, 20783, 20784, 16162, 16161, 18700, 16198, 16197, 16202, 16201, 18703, 18714, 16190, 16189, 15702, 15701, 18725, 16196, 16195, 16202, 16201, 16200, 16199, 18740, 16192, 16191, 16854, 18748, 18745, 18755, 16202, 16201, 16192, 16191, 16190, 16189, 20796, 18770, 18767, 18777, 16202, 16201, 18784, 16190, 16189, 20797, 16192, 16191, 16190, 16189, 20331, 19232, 16078, 16077, 20803, 19239, 16078, 16077, 20805, 19219, 16078, 16077, 20807, 17416, 17455, 19255, 19252, 20333, 16095, 20512, 16096, 20515, 16102, 16101, 20810, 20811, 20812, 16106, 16105, 18802, 17098, 17068, 17550, 17655, 20358, 20366, 16919, 17077, 17624, 17579, 17082, 17057, 18807, 19402, 20813, 20814, 16146, 16145, 20815, 20816, 20817, 16146, 16145, 20818, 20819, 20385, 20820, 20546, 20821, 20386, 20822, 17800, 17797, 17806, 17803, 20610, 20611, 17819, 17816, 16136, 16135, 17822, 17832, 17829, 20823, 20824, 16148, 16147, 16146, 16145, 20825, 20826, 17851, 17848, 20827, 20828, 20829, 20830, 16162, 16161, 20614, 17252, 16078, 19232, 16077, 20837, 19239, 16078, 16077, 20839, 19219, 16078, 16077, 20841, 16930, 16929, 18860, 18857, 16992, 16989, 16095, 20512, 16096, 20844, 20845, 20846, 16106, 15980, 19287, 16078, 16077, 19294, 16086, 16083, 17503, 17506, 20341, 20847, 20848, 16096, 16095, 20344, 16102, 16101, 20849, 20850, 20851, 19320, 16106, 16105, 19232, 16078, 16077, 20852, 19239, 16078, 16077, 20854, 19219, 16078, 16077, 20856, 16957, 16996, 19255, 19252, 16965, 16962, 16102, 16101, 20859, 20860, 20861, 16106, 16105, 18846, 16078, 19232, 16077, 20862, 19239, 16078, 16077, 20864, 19219, 16078, 16077, 20866, 16980, 17455, 18860, 18857, 16992, 16989, 16095, 20512, 16096, 20869, 20870, 20871, 16105, 15959, 19287, 16078, 16077, 19294, 16083, 16086, 17506, 16996, 20528, 20529, 19500, 20531, 16102, 16101, 20872, 20873, 19320, 16106, 16105, 17621, 17618, 17624, 17630, 17061, 17633, 19405, 19402, 20874, 20875, 17067, 17649, 17550, 17655, 17661, 17658, 20574, 16148, 16147, 16146, 16145, 20876, 20877, 20878, 17851, 17674, 20879, 20880, 20579, 20881, 20882, 17077, 17001, 17015, 17579, 17082, 17633, 18873, 18872, 20883, 20884, 17098, 17068, 17655, 17005, 20358, 20371, 16146, 16145, 20885, 16146, 16145, 20887, 20888, 20360, 20889, 20578, 20890, 20361, 20891, 17077, 17074, 17015, 17082, 17081, 15795, 15794, 18931, 16008, 16007, 20894, 20892, 17098, 17097, 17550, 17655, 20383, 20366, 20895, 20896, 20898, 20899, 20900, 20901, 20902, 20903, 20367, 20905, 20546, 20906, 20386, 20907, 17068, 17098, 17042, 17551, 17048, 17045, 20371, 17077, 17541, 17056, 17579, 17082, 17057, 19405, 19402, 20908, 20909, 16147, 16148, 20910, 20911, 20912, 16148, 16147, 20913, 20914, 20538, 20915, 20578, 20916, 20386, 20917, 17621, 17060, 17624, 17630, 17061, 17633, 19402, 18918, 20918, 20919, 17068, 17067, 17550, 17655, 17658, 17661, 20574, 16148, 16147, 16146, 16145, 20920, 20921, 20922, 17851, 17674, 20923, 20924, 20577, 20925, 20578, 20926, 17077, 17074, 17078, 17082, 17081, 17633, 18934, 18931, 20927, 20928, 17098, 17097, 17550, 17655, 20383, 20384, 20929, 20930, 20931, 20933, 20934, 20935, 20385, 20936, 20578, 20937, 20386, 20938, 16078, 16077, 18956, 15964, 16083, 16078, 16077, 18967, 15969, 16086, 17143, 17142, 17148, 17725, 20401, 16095, 20404, 16096, 20939, 20940, 20941, 16105, 16106, 19489, 20601, 19500, 20942, 20943, 19320, 18998, 16077, 19001, 16078, 19294, 16086, 16083, 17719, 17173, 17725, 17722, 20409, 19008, 20944, 20945, 20946, 16105, 19012, 16106, 20531, 16102, 16101, 20947, 20948, 19023, 19519, 17207, 17192, 17806, 17803, 20414, 20611, 20430, 16136, 16135, 17822, 17832, 17785, 20949, 20950, 16148, 16147, 16146, 16145, 20951, 20952, 20953, 20954, 16162, 16161, 20418, 17224, 17800, 17207, 17803, 17806, 20419, 20420, 20430, 16136, 16135, 17822, 17832, 17213, 20955, 20956, 16148, 16147, 16146, 16145, 20957, 20959, 20960, 17219, 20422, 17224, 17800, 17227, 17803, 17806, 20610, 20428, 20430, 16136, 16135, 17822, 17832, 17242, 20961, 20962, 17851, 17848, 20963, 20964, 20965, 20966, 17249, 20637, 17252, 16196, 16195, 16198, 16197, 16202, 19083, 16201, 19092, 16190, 16189, 17277, 16196, 16195, 16198, 16197, 16202, 19107, 16201, 19116, 16190, 16189, 17302, 19125, 16196, 16195, 19132, 16202, 16201, 20971, 20972, 20973, 17323, 19161, 16196, 16195, 19168, 16202, 16201, 20977, 20978, 17330, 19179, 16196, 16195, 19186, 16202, 16201, 20979, 20980, 17324, 19197, 16196, 16195, 19204, 16202, 16201, 20981, 20982, 20983, 20984, 17339, 19216, 19139, 19648, 16202, 16201, 16192, 16191, 16190, 16189, 20985, 19161, 16196, 16195, 19168, 16202, 16201, 20986, 20987, 17330, 19179, 16196, 16195, 19186, 16202, 16201, 20988, 20989, 17382, 19197, 16196, 16195, 19204, 16202, 16201, 20990, 20991, 20992, 20993, 17339, 19216, 19213, 19648, 16202, 16201, 16192, 16191, 16190, 16189, 20994, 17336, 17339, 19152, 16198, 16197, 16202, 16201, 19604, 19679, 19676, 20469, 19152, 16198, 16197, 16202, 16201, 19604, 19679, 19676, 20469, 19161, 16196, 16195, 19168, 16202, 16201, 20999, 21000, 17363, 19179, 16196, 16195, 19186, 16202, 16201, 21001, 21002, 17382, 19197, 16196, 16195, 19204, 16202, 16201, 21003, 21004, 21005, 21006, 17403, 19216, 19213, 19232, 16078, 16077, 21009, 19239, 16078, 16077, 21011, 19219, 16078, 16077, 21013, 17455, 17416, 19255, 19252, 20509, 16095, 20512, 16096, 20515, 16102, 16101, 21016, 21017, 21018, 16105, 15959, 19232, 16078, 16077, 21019, 19239, 16078, 16077, 21021, 16078, 16077, 19242, 21023, 17455, 17454, 19255, 19252, 20509, 16095, 20512, 16096, 20515, 16102, 16101, 21026, 21027, 21028, 16106, 15980, 19287, 16078, 16077, 19294, 16086, 16083, 17506, 17503, 20528, 20529, 19500, 20531, 16102, 16101, 21029, 21030, 19320, 16106, 16105, 17541, 17571, 17624, 17630, 17579, 17633, 16008, 16007, 19337, 21031, 21032, 17591, 17588, 17550, 17551, 20543, 21033, 21034, 16146, 16145, 21035, 16146, 16145, 21037, 20538, 21038, 20546, 21039, 20539, 21040, 17571, 17541, 17542, 17630, 17579, 17633, 16008, 16007, 19337, 21041, 21042, 17591, 17646, 17551, 17550, 20543, 21043, 21044, 16145, 16146, 21045, 16146, 16145, 21047, 21048, 20559, 21049, 20546, 21050, 20579, 21051, 17621, 17571, 17574, 17579, 17630, 17633, 16008, 16007, 19402, 21052, 21053, 17591, 17588, 17594, 17652, 20557, 21054, 16147, 16148, 21057, 21058, 21059, 16147, 16148, 21060, 21061, 20559, 21062, 20578, 21063, 20579, 21064, 17621, 17618, 17624, 17630, 17627, 17633, 19405, 19402, 21065, 21066, 17649, 17646, 17655, 17652, 17661, 17658, 20574, 16148, 16147, 16146, 16145, 21067, 21068, 21069, 17674, 17671, 21070, 21071, 20577, 21072, 20578, 21073, 20579, 21074, 21075, 16078, 16077, 19446, 21078, 21076, 16078, 16077, 19454, 21081, 21079, 17719, 17716, 17725, 17722, 20591, 16096, 16095, 17739, 17736, 19482, 21082, 21083, 21084, 16106, 16105, 19489, 20601, 19500, 20604, 16102, 16101, 21085, 21086, 21087, 19519, 16106, 16105, 17800, 17797, 17803, 17780, 20610, 20611, 17819, 17816, 16136, 16135, 17822, 17832, 17785, 21088, 21089, 16148, 16147, 16146, 16145, 21090, 17851, 17848, 21091, 21092, 21093, 21094, 16162, 16161, 20614, 17794, 17800, 17797, 17806, 17803, 20620, 20621, 17819, 17816, 16136, 16135, 17822, 17832, 17829, 21095, 21096, 16148, 16147, 16146, 16145, 21097, 17851, 17848, 21098, 21099, 21100, 21101, 16162, 16161, 20637, 17867, 16196, 16195, 16198, 16197, 16202, 19604, 16201, 19676, 16190, 16189, 17896, 17893, 16196, 16195, 19590, 16202, 19604, 16201, 19676, 16190, 16189, 17896, 17893, 19599, 16196, 16195, 16202, 19604, 16201, 19676, 16190, 16189, 17896, 17893, 19619, 16196, 16195, 19626, 16202, 16201, 19633, 16190, 16189, 17920, 19641, 19638, 19648, 16202, 16201, 16192, 16191, 16190, 16189, 21108, 16198, 16197, 16196, 16195, 16202, 16201, 16200, 16199, 19679, 19676, 20681, 19697, 16358, 16374, 16373, 16374, 16373, 16374, 16373, 16374, 16373, 16374, 16373, 19835, 16340, 16341, 19688, 16256, 19697, 16257, 21124, 21125, 16257, 16256, 16374, 16373, 16276, 16281, 21126, 21127, 21128, 16374, 16373, 19714, 16276, 21130, 21131, 19812, 16374, 16373, 16281, 20703, 16374, 16373, 19714, 21132, 21133, 19812, 16374, 16373, 20703, 16374, 16373, 21135, 21136, 16246, 21137, 21138, 16247, 19828, 21140, 21141, 16246, 21142, 21143, 16247, 16374, 16373, 19986, 21144, 21145, 16246, 16247, 16247, 16246, 16311, 16256, 16257, 16281, 16276, 21149, 21150, 16358, 16257, 16256, 16276, 16281, 21153, 21154, 21155, 19803, 16276, 21157, 21158, 21159, 19797, 16281, 20802, 21161, 19803, 16276, 21163, 21164, 21165, 19812, 16281, 20802, 19828, 16374, 16373, 21168, 21169, 21171, 21172, 19835, 19884, 16377, 16375, 19962, 19959, 21175, 21178, 16372, 19884, 16377, 16375, 16341, 16340, 16374, 16373, 21187, 21188, 16340, 16341, 21189, 21191, 21192, 16340, 21193, 21194, 16341, 16374, 16373, 21195, 21196, 16340, 21197, 21198, 16341, 21199, 21201, 21202, 16340, 21203, 21204, 16341, 19956, 19949, 21208, 19962, 19959, 19956, 16374, 16373, 21211, 19962, 19959, 16372, 19971, 16374, 16373, 19977, 19974, 16372, 19986, 16374, 16373, 19992, 19989, 19993, 20030, 20036, 20001, 21215, 21216, 21217, 21218, 21219, 21220, 21221, 21222, 20085, 16393, 16392, 21223, 21224, 21225, 21226, 21227, 21228, 21229, 21230, 21231, 21232, 20030, 20027, 20036, 20001, 21233, 21234, 21235, 21236, 21237, 21238, 21239, 21240, 21241, 21242, 21243, 21244, 21245, 21246, 21247, 21248, 21249, 21250, 21251, 21252, 21253, 21254, 21255, 20085, 16393, 16392, 20030, 20027, 20036, 20033, 21256, 21257, 21258, 21259, 21260, 21261, 21262, 21263, 21264, 21265, 21266, 21267, 21268, 20068, 20085, 20129, 20126, 21269, 21270, 21271, 21272, 21273, 21274, 21275, 21276, 21277, 21278, 20085, 16393, 16392, 21279, 21280, 21281, 21282, 21283, 21284, 21285, 21286, 21287, 21288, 21289, 21290, 21291, 21292, 21293, 21294, 21295, 21296, 21297, 20129, 20126, 21298, 21299, 21300, 21301, 21302, 21303, 21304, 21305, 21306, 21307, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 21312, 21313, 21314, 21315, 21317, 21318, 21319, 21320, 21323, 21324, 21325, 21326, 21327, 21328, 21329, 21330, 21331, 21332, 21333, 21334, 21335, 21336, 21337, 21338, 21339, 21340, 21342, 21343, 21344, 21346, 21347, 21348, 21349, 21351, 21352, 21353, 21354, 21355, 21356, 21357, 21358, 21359, 21360, 21361, 21362, 21363, 21364, 21365, 21366, 21367, 21368, 21369, 21370, 21371, 21372, 21373, 21374, 21376, 21377, 21378, 21379, 21380, 21381, 21382, 21383, 21384, 21385, 21386, 21387, 20718, 21389, 21390, 21393, 21394, 21395, 21396, 21397, 21398, 21399, 21400, 21401, 21402, 21403, 21404, 21405, 21406, 21407, 21408, 21409, 21410, 21411, 21412, 21413, 21414, 21415, 21416, 21417, 21418, 21419, 21420, 21421, 21423, 21424, 21425, 21426, 21427, 21428, 21429, 21430, 21431, 21432, 21433, 21434, 21435, 21436, 21437, 21438, 21439, 21440, 21441, 21442, 21443, 21444, 21445, 21446, 21447, 21448, 21449, 21450, 21451, 21452, 21453, 21456, 21459, 21460, 21461, 21462, 21463, 21464, 21465, 21466, 21467, 21468, 21469, 21470, 21471, 21472, 21473, 21474, 21475, 21478, 21479, 21480, 21481, 21482, 21483, 21484, 21487, 21488, 21489, 21490, 21491, 21492, 21493, 21494, 21495, 21496, 21497, 21498, 21499, 21500, 21501, 21504, 21505, 21506, 21507, 21508, 21509, 21510, 21512, 21513, 21514, 21515, 21516, 21517, 21518, 21519, 21520, 21521, 21522, 21523, 21524, 21525, 21526, 21527, 21528, 21531, 21532, 21533, 21534, 21535, 21536, 21538, 21539, 21540, 21541, 21542, 21543, 21544, 21545, 21546, 21547, 21548, 21549, 21550, 21551, 21552, 21553, 21554, 21555, 21556, 21558, 21559, 21560, 21561, 21562, 21563, 21565, 21566, 21567, 21568, 21569, 21570, 21571, 21572, 21573, 21574, 21576, 21577, 21578, 21579, 21580, 21581, 21582, 21583, 21584, 21585, 21587, 21589, 21590, 21591, 21592, 21594, 21596, 21597, 21598, 21599, 21600, 21601, 21603, 21604, 21605, 21606, 21607, 21608, 21610, 21611, 21612, 21615, 21616, 21617, 21618, 21619, 21621, 21622, 21623, 21624, 21625, 21626, 21627, 21628, 21629, 21630, 21631, 21632, 21633, 21634, 21635, 21636, 21637, 21638, 21639, 21640, 21641, 21642, 21643, 21644, 21645, 21646, 21647, 21648, 21649, 21650, 21651, 21652, 21653, 21655, 21656, 21657, 21658, 21659, 21660, 21661, 21662, 21664, 21665, 21666, 21667, 21668, 21669, 21670, 21671, 21673, 21674, 21675, 21677, 21678, 21679, 21680, 21681, 21682, 21683, 21684, 21685, 21686, 21687, 21688, 21689, 21690, 21691, 21692, 21695, 21696, 21697, 21698, 21699, 21700, 21701, 21702, 21703, 21704, 21705, 21706, 21707, 21708, 21709, 21710, 21711, 21712, 21714, 21715, 21716, 21719, 21720, 21721, 21723, 21725, 21727, 21729, 21730, 21731, 21732, 21733, 21734, 21735, 21736, 21737, 21738, 21739, 21740, 21741, 21742, 21744, 21745, 21746, 21747, 21748, 21750, 21751, 21752, 21754, 21756, 21757, 21758, 21759, 21760, 21761, 21762, 21764, 21765, 21766, 21768, 21769, 21770, 21771, 21772, 21773, 21774, 21775, 21776, 21777, 21778, 21779, 21780, 21781, 21784, 21785, 21786, 21787, 21788, 21789, 21790, 21791, 21792, 21793, 21794, 21795, 21797, 21798, 21799, 21800, 21801, 21802, 21805, 21806, 21807, 21808, 21809, 21810, 21812, 21813, 21814, 21816, 21817, 21818, 21819, 21820, 21821, 21822, 21823, 21824, 21825, 21826, 21827, 21828, 21831, 21832, 21833, 21834, 21835, 21836, 21838, 21839, 21840, 21842, 21843, 21844, 21845, 21846, 21847, 21848, 21849, 21850, 21851, 21852, 21853, 21854, 21855, 21858, 21859, 21860, 21861, 21862, 21863, 21864, 21865, 21866, 21867, 21868, 21869, 21870, 21871, 21872, 21873, 21874, 21876, 21877, 21878, 21879, 21880, 21881, 21882, 21883, 21884, 21885, 21886, 21887, 21889, 21890, 21891, 21892, 21893, 21894, 21895, 21896, 21897, 21898, 21899, 21900, 21903, 21904, 21905, 21907, 21908, 21910, 21911, 21912, 21913, 21914, 21915, 21916, 21917, 21918, 21920, 21921, 21922, 21923, 21924, 21925, 21926, 21927, 21929, 21930, 21931, 21933, 21935, 21937, 21939, 21940, 21941, 21942, 21943, 21944, 21945, 21946, 21947, 21948, 21950, 21951, 21952, 21953, 21954, 21955, 21956, 21957, 21959, 21962, 21965, 21967, 21969, 21971, 21972, 21973, 21974, 21975, 21976, 21977, 21978, 21979, 21980, 21981, 21982, 21983, 21984, 21985, 21986, 21988, 21989, 21990, 21993, 21994, 21995, 21997, 21999, 22001, 22003, 22004, 22005, 22006, 22007, 22008, 22009, 22010, 22011, 22013, 22014, 22015, 22016, 22017, 22018, 22019, 22020, 22021, 22022, 22023, 22024, 22027, 22028, 22029, 22031, 22033, 22035, 22036, 22037, 22038, 22039, 22040, 22041, 22042, 22043, 22045, 22046, 22047, 22048, 22049, 22050, 22051, 22054, 22056, 22057, 22059, 22061, 22063, 22064, 22065, 22066, 22067, 22068, 22069, 22070, 22071, 22072, 22073, 22074, 22075, 22076, 22077, 22078, 22079, 22080, 22081, 22084, 22085, 22086, 22087, 22088, 22089, 22091, 22092, 22093, 22094, 22095, 22096, 22097, 22098, 22099, 22100, 22101, 22102, 22103, 22104, 22105, 22108, 22109, 22110, 22111, 22112, 22113, 22114, 22116, 22117, 22118, 22119, 22120, 22121, 22122, 22123, 22124, 22125, 22126, 22127, 22128, 22129, 22130, 22132, 22133, 22134, 22135, 22136, 22138, 22140, 22141, 22142, 22143, 22144, 22145, 22146, 22147, 22148, 22149, 22150, 22151, 22152, 22153, 22154, 22155, 22156, 22158, 22159, 22160, 22161, 22163, 22165, 22166, 22167, 22168, 22169, 22170, 22171, 22172, 22173, 22174, 22175, 22176, 22177, 22178, 22179, 22180, 22182, 22183, 22184, 22186, 22188, 22189, 22190, 22191, 22192, 22193, 22194, 22195, 22196, 22197, 22198, 22199, 22200, 22201, 22202, 22203, 22204, 22205, 22206, 22207, 22208, 22209, 22210, 22211, 22212, 22213, 22214, 22215, 22216, 22217, 22218, 22219, 22222, 22223, 22224, 22225, 22226, 22227, 22228, 22229, 22231, 22232, 22233, 22234, 22235, 22236, 22237, 22238, 22240, 22241, 22242, 22243, 22244, 22245, 22246, 22247, 22249, 22251, 22252, 22253, 22254, 22255, 22256, 22257, 22258, 22259, 22260, 22262, 22263, 22264, 22265, 22266, 22267, 22268, 22270, 22271, 22272, 22273, 22274, 22275, 22276, 22277, 22279, 22280, 22281, 22282, 22283, 22284, 22285, 22286, 22288, 22290, 22291, 22292, 22293, 22294, 22295, 22296, 22297, 22298, 22299, 22301, 22302, 22303, 22304, 22305, 22306, 22307, 22308, 22309, 22310, 22311, 22312, 22313, 22314, 22315, 22316, 22317, 22318, 22319, 22320, 22321, 22322, 22323, 22324, 22325, 22326, 22327, 22329, 22330, 22331, 22332, 22333, 22334, 22335, 22336, 22338, 22339, 22340, 22341, 22342, 22343, 22344, 22345, 22347, 22349, 22350, 22351, 22352, 22353, 22354, 22356, 22357, 22358, 22360, 22361, 22362, 22363, 22364, 22365, 22366, 22367, 22368, 22369, 22370, 22371, 22372, 22373, 22374, 22375, 22378, 22379, 22380, 22381, 22382, 22384, 22385, 22386, 22388, 22389, 22390, 22391, 22392, 22393, 22394, 22395, 22396, 22397, 22398, 22399, 22400, 22401, 22402, 22403, 22406, 22407, 22408, 22409, 22410, 22411, 22412, 22413, 22414, 22415, 22416, 22417, 22418, 22419, 22420, 22421, 22422, 22424, 22425, 22426, 22427, 22428, 22429, 22430, 22431, 22432, 22433, 22434, 22435, 22436, 22438, 22439, 22440, 22441, 22442, 22443, 22445, 22446, 22448, 22449, 22450, 22451, 22453, 22455, 22457, 22458, 22459, 22460, 22461, 22462, 22463, 22464, 22465, 22466, 22468, 22469, 22470, 22471, 22472, 22473, 22475, 22476, 21046, 22478, 22479, 22480, 22482, 22484, 22486, 22488, 22489, 22490, 22491, 22492, 22493, 22494, 22495, 22496, 22497, 22499, 22500, 22501, 22502, 22503, 22504, 22505, 22506, 22507, 22510, 22511, 22512, 22514, 22516, 22518, 22520, 22521, 22522, 22523, 22524, 22525, 22526, 22527, 22528, 22530, 22531, 22532, 22533, 22534, 22535, 22536, 22537, 22538, 22539, 22540, 22541, 22544, 22545, 22546, 22548, 22550, 22552, 22553, 22555, 22556, 22557, 22559, 22560, 22561, 22562, 22564, 22565, 22566, 22567, 22568, 22569, 22570, 22571, 22572, 22573, 22574, 22575, 22578, 22579, 22580, 22581, 22582, 22583, 22584, 22585, 22586, 22589, 22590, 22591, 22592, 22593, 22594, 22595, 22596, 22597, 22598, 22599, 22600, 22601, 22602, 22603, 22604, 22605, 22607, 22608, 22609, 22610, 22611, 22612, 22613, 22614, 22616, 22618, 22619, 22620, 22621, 22622, 22623, 22624, 22625, 22626, 22627, 22628, 22629, 22630, 22631, 22632, 22633, 22634, 22635, 22637, 22638, 22639, 22640, 22641, 22642, 22643, 22644, 22646, 22648, 22649, 22650, 22651, 22652, 22653, 22654, 22655, 22656, 22657, 22658, 22659, 22660, 22661, 22662, 22663, 22664, 22665, 22666, 22667, 22668, 22669, 22670, 22671, 22672, 22673, 22674, 22675, 22676, 22677, 22678, 22679, 22680, 22681, 22682, 22683, 22684, 22685, 22686, 22687, 22688, 22689, 22690, 22691, 22692, 22693, 22694, 22695, 22696, 22697, 22698, 22699, 22700, 22701, 22702, 22703, 22704, 22706, 22707, 22708, 22709, 22710, 22711, 22712, 22713, 22714, 22715, 22716, 22717, 22718, 22719, 22720, 22721, 22722, 22723, 22724, 22725, 22726, 22727, 22728, 22729, 22730, 22731, 22732, 22733, 22734, 22735, 22736, 22738, 22739, 22740, 22741, 22742, 22743, 22744, 22747, 22748, 22749, 22750, 22751, 22753, 22754, 22755, 22756, 22757, 22758, 22759, 22760, 22761, 22763, 22764, 22765, 22766, 22767, 22768, 22769, 22771, 22772, 22774, 22775, 22776, 22778, 22779, 22781, 22782, 22783, 22784, 22785, 22787, 22788, 22789, 22790, 22791, 22792, 22793, 22794, 22795, 22796, 22798, 22799, 22800, 22801, 22802, 22803, 22806, 22807, 22808, 22811, 22812, 22813, 22815, 22816, 22817, 22820, 22821, 22822, 22823, 22824, 22825, 22826, 22828, 22830, 22831, 22832, 22833, 22834, 22835, 22838, 22839, 22840, 22841, 22842, 22843, 22844, 22845, 22846, 22848, 22849, 22851, 22853, 22854, 22856, 22857, 22858, 22859, 22861, 22862, 22864, 22866, 22868, 22869, 22871, 22872, 22873, 22875, 22876, 22877, 22878, 22879, 22881, 22882, 22883, 22884, 22885, 22886, 22887, 22888, 22889, 22890, 22891, 22892, 22893, 22894, 22895, 22896, 22897, 22898, 22899, 22901, 22903, 22905, 22907, 22908, 22909, 22910, 22913, 22915, 22918, 22920, 22921, 22922, 22923, 22924, 22926, 22928, 22930, 22932, 22935, 22937, 22940, 22942, 22945, 22947, 22948, 22949, 22950, 22951, 22952, 22953, 22954, 22956, 22958, 22960, 22962, 22965, 22967, 22968, 22969, 22970, 22971, 22973, 22975, 22977, 22979, 22981, 22982, 22983, 22984, 22987, 22989, 22990, 22850, 22995, 23000, 22865, 23003, 23004, 23005, 23007, 23009, 23011, 23013, 23, 24, 25, 26, 27, 28, 29, 30, 31, 23040, 23042, 23046, 23049, 23051, 23054, 23057, 23059, 23061, 23063, 23066, 23070, 23074, 23076, 23078, 23081, 23084, 23086, 23088, 23091, 23094, 23098, 23100, 23103, 23107, 23117, 23120, 23123, 23126, 23127, 23129, 23132, 23136, 23138, 23140, 23146, 23149, 23152, 23154, 23156, 23159, 23162, 23165, 23166, 23168, 23177, 23180, 23183, 23185, 23189, 23190, 23196, 23198, 23200, 23202, 23205, 23207, 23211, 23215, 23219, 23221, 23224, 23225, 23228, 23229, 23231, 23235, 23236, 23242, 23244, 23246, 23248, 23251, 23253, 23255, 23258, 23261, 23263, 23265, 23274, 23277, 23279, 23283, 23285, 23294, 23296, 23299, 23301, 23305, 23307, 23313, 23315, 23318, 23321, 23324, 23326, 23329, 23331, 23333, 23337, 23339, 23342, 23344, 23346, 23348, 23351, 23354, 23356, 23359, 23362, 23365, 23368, 23369, 23371, 23378, 23380, 23381, 23384, 23386, 23390, 23393, 23396, 23399, 23401, 23402, 23408, 23410, 23414, 23416, 23419, 23422, 23424, 23427, 23431, 23435, 23438, 23441, 23444, 23445, 23447, 23449, 23454, 23455, 23457, 23460, 23463, 23467, 23470, 23472, 23473, 23476, 23479, 23482, 23485, 23486, 23488, 23490, 23492, 23494, 23495, 23498, 23501, 23504, 23507, 23508, 23510, 23512, 23517, 23518, 23520, 23523, 23526, 23532, 23535, 23538, 23541, 23544, 23547, 23549, 23551, 23554, 23556, 23558, 23559, 23564, 23567, 23570, 23573, 23575, 23579, 23581, 23587, 23590, 23592, 23594, 23598, 23600, 23610, 23612, 23614, 23617, 23620, 23623, 23626, 23628, 23629, 23635, 23638, 23641, 23644, 23646, 23648, 23651, 23653, 23655, 23656, 23661, 23664, 23667, 23670, 23672, 23678, 23682, 23685, 23687, 23690, 23692, 23694, 23700, 23701, 23707, 23709, 23712, 23715, 23717, 23721, 23722, 23726, 23729, 23731, 23733, 23738, 23741, 23744, 23746, 23750, 23754, 23756, 23761, 23764, 23767, 23769, 23775, 23777, 23782, 23785, 23788, 23795, 23797, 23799, 23802, 23806, 23808, 23810, 23813, 23817, 23820, 23823, 23825, 23828, 23833, 23836, 23841, 23844, 23847, 23850, 23852, 23855, 23857, 23859, 23862, 23867, 23870, 23875, 23878, 23881, 23884, 23886, 23889, 23891, 23895, 23898, 23901, 23904, 23907, 23910, 23913, 23916, 23921, 23924, 23929, 23932, 23935, 23938, 23940, 23943, 23946, 23949, 23950, 23952, 23959, 23961, 23962, 23964, 23967, 23970, 23973, 23974, 23976, 23983, 23985, 23986, 23988, 23991, 23994, 24000, 24003, 24006, 24009, 24012, 24016, 24018, 24022, 24024, 24026, 24030, 24033, 24036, 24040, 24042, 24046, 24049, 24055, 24058, 24061, 24065, 24067, 24070, 24071, 24073, 24074, 24080, 24083, 24086, 24089, 24091, 24093, 24096, 24098, 24100, 24101, 24108, 24112, 24116, 24118, 24121, 24123, 24126, 24127, 24133, 24135, 24136, 24139, 24141, 24145, 24147, 24150, 24153, 24155, 24157, 24158, 24162, 24166, 24168, 24172, 24174, 24177, 24180, 24182, 24184, 24185, 24189, 24193, 24195, 24197, 24200, 24203, 24205, 24208, 24211, 24214, 24216, 24219, 24222, 24225, 24227, 24230, 24233, 24237, 24239, 24242, 24244, 24246, 24248, 24250, 24252, 24254, 24259, 24261, 24263, 24265, 24267, 23434, 23175, 23048, 24273, 24277, 24279, 24281, 24284, 24289, 24294, 24298, 23893, 23928, 24302, 24313, 24317, 24319, 24131, 23111, 23116, 23114, 23112, 23145, 23143, 23141, 24131, 23434, 23175, 23173, 23188, 23195, 23193, 23210, 23214, 23234, 23240, 23269, 23267, 23273, 23271, 23282, 23290, 23288, 21595, 21593, 23304, 23311, 23309, 24322, 24324, 24328, 24330, 23376, 23374, 23389, 21728, 21726, 21724, 23413, 23434, 24345, 24350, 24352, 24354, 23453, 23516, 23530, 23563, 23578, 21938, 21936, 21934, 23603, 21964, 21961, 20897, 21970, 21968, 21966, 22002, 22000, 21998, 22034, 22032, 23675, 22053, 22062, 22060, 22058, 23699, 23697, 23705, 23720, 23736, 23753, 23759, 23774, 23772, 23780, 23794, 23792, 24358, 24360, 24362, 24365, 23832, 23840, 23866, 23874, 23893, 23928, 24371, 23920, 23928, 23957, 23955, 23981, 23979, 23998, 24021, 22456, 22454, 22452, 24045, 22487, 22485, 22483, 22519, 22517, 22515, 24107, 22551, 22549, 24131, 24144, 24165, 24171, 24192, 24381, 24383, 24385, 24388, 24391, 24394, 24397, 24400, 24402, 24257, 24404, 24335, 24338, 24341, 24344, 24410, 24269, 24413, 24308, 24271, 24270, 24415, 24272, 24417, 24419, 24288, 24293, 24297, 24301, 24425, 24307, 24305, 24427, 24308, 24312, 24310, 24429, 24431, 24434, 24436, 24333, 24335, 24336, 24338, 24339, 24341, 24342, 24344, 24442, 24444, 24446, 24450, 24453, 24357, 24456, 24458, 24459, 24460, 24370, 24368, 24461, 24376, 24374, 24462, 24463, 24380, 24378, 24464, 24468, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 24484, 24488, 24490, 24491, 24494, 24495, 24500, 24502, 24503, 24507, 24510, 24511, 24515, 24516, 24521, 24524, 24525, 24526, 24532, 24534, 24540, 24542, 24547, 24556, 24562, 24571, 24572, 24573, 24575, 24576, 24578, 24580, 24581, 24584, 24585, 24586, 24588, 24589, 24590, 24596, 24608, 24610, 24614, 24615, 24616, 24623, 24624, 24629, 24630, 24631, 24632, 24639, 24640, 24641, 24642, 24649, 24650, 24653, 24660, 24674, 24692, 24702, 24704, 24709, 24711, 24712, 24716, 24721, 24723, 24728, 24730, 24734, 24737, 24739, 24740, 24741, 24743, 24744, 24745, 24746, 24748, 24749, 24750, 24751, 24752, 24753, 24756, 24757, 24759, 24760, 24761, 24762, 24763, 24764, 24767, 24768, 24770, 24771, 24773, 24774, 24776, 24777, 24778, 24779, 24780, 24781, 24784, 24785, 24786, 24793, 24794, 24795, 24802, 24803, 24806, 24809, 24817, 24824, 24837, 24841, 24842, 24848, 24851, 24855, 24857, 24865, 24867, 24872, 24874, 24875, 24877, 24878, 24879, 24881, 24882, 24883, 24885, 24886, 24887, 24889, 24890, 24892, 24894, 24481, 23161, 23158, 23047, 24902, 24903, 24904, 24905, 24906, 24909, 24910, 24911, 24912, 24487, 23056, 24913, 24914, 23937, 24256, 23824, 23894, 24256, 24916, 24493, 24497, 24125, 24845, 24849, 24919, 23093, 23090, 24920, 23109, 24921, 24922, 24923, 23122, 23119, 24514, 24513, 24924, 24925, 24926, 24518, 24125, 24845, 24849, 24927, 23161, 23158, 23172, 24928, 24929, 24930, 24528, 24931, 24530, 24932, 24933, 23197, 24536, 24934, 23212, 23217, 24935, 24539, 24545, 24936, 24937, 24548, 24550, 23250, 23257, 24553, 23260, 24938, 24939, 24940, 24941, 23276, 24561, 24942, 24943, 24944, 24564, 24945, 24946, 23298, 24567, 24947, 24569, 24570, 24948, 24949, 24593, 24594, 24954, 24955, 24598, 24956, 23395, 23392, 23398, 23404, 24603, 24957, 24958, 24959, 24606, 24960, 23421, 23429, 24961, 24613, 24962, 24619, 24966, 23451, 24622, 23465, 24627, 24626, 24635, 24637, 24645, 24967, 23514, 24648, 23528, 24652, 24968, 23543, 23540, 23546, 24658, 23553, 23561, 24969, 23569, 23566, 23572, 24668, 24970, 23583, 21928, 24971, 24972, 24973, 24673, 23589, 24676, 24974, 24975, 24976, 24977, 24978, 24979, 24980, 24678, 23616, 23622, 23619, 23625, 23631, 24684, 24981, 24982, 24983, 23640, 23637, 23643, 24690, 23650, 23658, 24984, 24985, 23666, 23663, 23669, 24700, 24986, 24701, 24987, 24988, 24989, 24990, 24707, 24991, 24992, 24993, 24710, 24714, 24994, 24717, 24718, 24720, 24995, 23743, 24996, 24725, 24727, 24997, 23766, 24998, 24999, 24733, 25000, 23787, 23790, 25001, 25002, 23824, 23937, 24256, 25007, 25008, 23849, 25009, 25010, 23883, 23903, 23912, 23903, 23912, 25011, 25012, 23894, 23903, 23912, 25014, 25015, 23937, 24789, 24790, 25016, 25017, 24792, 24798, 24799, 25018, 25019, 24801, 23996, 24805, 25020, 24011, 24008, 24811, 25021, 24814, 22447, 25022, 25023, 25024, 24035, 24032, 24819, 25025, 24051, 24048, 25026, 25027, 25028, 24060, 24057, 24826, 24827, 24076, 24829, 25029, 25030, 25031, 24085, 24082, 24088, 24835, 24095, 24103, 25032, 25033, 25034, 24844, 24125, 24845, 24849, 25035, 24853, 25036, 24152, 24160, 25037, 24861, 24863, 25038, 24179, 24187, 25039, 24871, 25042, 24256, 25044, 25046, 25049, 24326, 24897, 24332, 24898, 25051, 24899, 25052, 24900, 25053, 24901, 25054, 25055, 25056, 25004, 25058, 25059, 25060, 25062, 25006, 24276, 24283, 25065, 25066, 25067, 25068, 24915, 25070, 25071, 25073, 25074, 25075, 24917, 25077, 24963, 24918, 24950, 24326, 24952, 24332, 25080, 25081, 25082, 25083, 25084, 25085, 25086, 25087, 25045, 25047, 24963, 24965, 25040, 25041, 25043, 25045, 25047, 25092, 25093, 25004, 25005, 25006, 25098, 25099, 25013, 25101, 25102, 25105, 25106, 25040, 25041, 25043, 25045, 25047, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 25263, 25264, 25265, 23044, 25160, 23045, 25266, 24482, 25267, 25120, 25276, 25277, 25221, 25223, 25225, 25280, 25259, 22705, 25262, 25281, 25199, 25282, 25225, 25283, 25259, 22705, 25262, 25284, 23073, 23069, 25286, 25125, 25287, 25288, 25289, 25241, 25290, 25242, 25292, 25293, 23097, 25127, 23106, 25295, 25296, 25299, 25300, 24508, 25130, 23135, 25301, 25302, 25303, 25133, 25306, 25307, 25308, 25241, 25309, 25242, 25311, 25312, 24522, 25160, 23171, 25313, 21455, 25314, 25137, 25317, 25319, 25320, 25322, 25139, 25323, 25325, 25326, 25328, 24543, 24541, 25329, 25142, 25332, 25333, 25334, 25335, 25336, 25337, 24558, 25338, 25340, 25342, 25343, 21586, 25345, 25347, 25350, 25351, 25353, 25354, 25146, 24574, 25149, 23336, 25146, 24574, 25149, 23336, 25151, 21654, 25153, 21663, 25262, 23358, 25151, 21654, 25153, 21663, 25262, 23358, 24591, 21676, 21672, 25357, 25358, 25159, 25361, 25363, 25364, 25365, 25366, 25367, 25368, 25371, 25160, 25373, 25374, 23426, 25376, 25248, 24876, 24617, 21767, 21763, 25378, 25380, 25381, 25166, 25382, 25383, 25384, 25167, 24633, 21815, 21811, 25385, 25386, 25171, 24643, 21841, 21837, 25387, 25389, 25390, 25176, 25391, 25392, 25177, 25394, 25395, 25396, 25397, 25398, 25399, 24662, 25401, 25402, 25403, 25404, 25406, 25407, 25408, 25411, 25412, 23597, 25413, 25415, 25418, 25421, 25422, 25423, 25424, 25425, 25426, 25427, 25428, 25431, 25432, 25433, 25434, 25435, 25436, 24694, 25437, 25439, 25440, 25441, 25442, 25444, 25446, 24705, 24703, 25449, 25450, 25183, 25453, 25185, 25454, 25186, 25456, 25457, 25458, 25187, 25460, 23748, 25462, 25463, 25189, 25465, 22162, 25466, 25468, 25191, 25470, 25471, 25472, 25193, 23805, 25196, 23816, 25199, 25474, 25225, 25475, 25259, 22705, 25262, 25476, 25201, 25203, 25205, 25479, 25206, 22261, 25209, 25211, 25213, 25482, 25214, 22300, 25217, 25483, 25219, 25484, 25217, 25485, 25219, 25486, 25221, 25223, 25225, 25489, 25259, 22705, 25217, 25490, 25219, 25491, 25221, 25223, 25225, 25494, 25259, 22705, 24787, 22359, 22355, 25495, 25496, 25499, 24796, 22387, 22383, 25500, 25501, 25504, 25233, 25505, 25506, 25234, 25508, 25509, 24015, 25510, 25512, 25513, 25514, 25517, 25518, 24039, 25519, 25521, 25522, 25523, 25526, 25527, 24064, 25528, 25529, 25530, 25531, 25532, 25535, 25536, 25537, 25538, 25539, 25540, 24839, 25541, 24115, 24111, 25544, 25545, 25546, 25241, 25547, 25242, 25549, 25243, 25551, 25552, 24859, 25554, 25555, 25245, 25557, 25558, 24869, 25560, 25248, 24876, 25251, 24880, 25254, 24884, 25257, 24236, 25259, 22705, 25262, 25562, 25566, 25567, 25568, 25569, 25571, 25573, 25575, 25579, 25581, 25584, 25270, 25585, 25271, 25586, 25272, 25273, 25274, 25275, 25591, 25592, 25595, 25285, 25597, 25599, 25600, 25601, 25602, 25603, 25604, 25377, 25613, 25564, 25614, 25615, 25616, 25617, 25618, 25561, 25619, 25563, 25620, 25564, 25621, 25624, 25625, 25626, 25627, 25629, 25630, 25632, 25634, 25635, 25561, 25636, 25563, 25637, 25564, 25638, 25608, 25606, 25612, 25610, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 25665, 25667, 25668, 25669, 25671, 25672, 25673, 25674, 25676, 25677, 25678, 25680, 25681, 25682, 25684, 25686, 25688, 25689, 25690, 25692, 25693, 25695, 25697, 25699, 25700, 25701, 25702, 25704, 25705, 25706, 25294, 25708, 25709, 25711, 25712, 25713, 25714, 25716, 25717, 25719, 25721, 25722, 25723, 25724, 25726, 25727, 25728, 25730, 25731, 25732, 25737, 25740, 25742, 25743, 25745, 25749, 25752, 25757, 25759, 25763, 25764, 25765, 25766, 25767, 25768, 25769, 25770, 25771, 25772, 25773, 25774, 25775, 25776, 25777, 25778, 25779, 25780, 25781, 25782, 25783, 25784, 25785, 25786, 25788, 25789, 25791, 25794, 25796, 25798, 25801, 25375, 25803, 25804, 25805, 25806, 25807, 25379, 25811, 25813, 25815, 25816, 25817, 25818, 25821, 25822, 25823, 25824, 25388, 25828, 25830, 25831, 25832, 25838, 25839, 25843, 25845, 25846, 25848, 25850, 25851, 25854, 25857, 25859, 25860, 25866, 25868, 25872, 25873, 25874, 25875, 25878, 25880, 25882, 25886, 25888, 25461, 25891, 25893, 25896, 25900, 25901, 25902, 25903, 25904, 25906, 25908, 25909, 25910, 25912, 25913, 25914, 25916, 25917, 25918, 25919, 25920, 25922, 25923, 25924, 25926, 25928, 25930, 25932, 25933, 25934, 25936, 25937, 25938, 25940, 25942, 25943, 25944, 25946, 25947, 25948, 25949, 25950, 25952, 25954, 25955, 25956, 25958, 25960, 25962, 25963, 25964, 25966, 25968, 25970, 25971, 25973, 25975, 25977, 25978, 25980, 25983, 25985, 25986, 25992, 25993, 25994, 25995, 25997, 25999, 26000, 26001, 26003, 26006, 25553, 26009, 26012, 25559, 26014, 26015, 26016, 26017, 26018, 26019, 26020, 26021, 26022, 26023, 26024, 25736, 25734, 25739, 25746, 25748, 25344, 25755, 25352, 25443, 25414, 25405, 25853, 25990, 25879, 25884, 25459, 25464, 25469, 25899, 25736, 25734, 25739, 25746, 25748, 25344, 25755, 25352, 26036, 26038, 26040, 26041, 26042, 26043, 25443, 25853, 25405, 25990, 25414, 25879, 25884, 25459, 25464, 25469, 25899, 26047, 25736, 25734, 25739, 25746, 25748, 25344, 25755, 25352, 25362, 25853, 25990, 25372, 26055, 26057, 25511, 25520, 25982, 25990, 25550, 25556, 26063, 26065, 26067, 25836, 25405, 25414, 25853, 25864, 25443, 25879, 25884, 25459, 25464, 25469, 25899, 25511, 25520, 25982, 25990, 25550, 25556, 26078, 26080, 26082, 26026, 26028, 25572, 25570, 25576, 25574, 26033, 26034, 26035, 26045, 26046, 26050, 26052, 26054, 26084, 26085, 26086, 26087, 26060, 26062, 26069, 26071, 26072, 26074, 26075, 26077, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 25670, 26131, 25729, 26164, 26170, 26171, 26192, 26195, 25800, 26205, 26212, 26216, 25837, 25865, 26240, 26286, 26289, 26290, 26293, 25991, 26312, 26005, 26011, 25696, 26137, 26135, 26141, 26139, 26143, 26147, 26145, 26149, 25718, 26154, 26152, 26158, 26156, 25733, 26335, 26336, 25738, 25741, 26337, 26338, 26166, 26339, 25751, 25753, 26340, 26341, 25758, 26342, 26175, 26173, 26179, 26177, 26183, 26181, 26185, 26189, 26187, 26191, 25829, 26222, 26215, 25812, 26211, 25810, 25827, 26343, 25870, 26239, 26344, 26229, 26231, 26345, 25841, 26227, 25856, 26346, 26234, 26347, 25988, 26348, 26242, 25881, 26349, 26244, 25887, 26350, 26247, 25892, 26351, 25894, 25897, 26352, 26353, 26204, 26129, 25687, 25685, 25691, 26258, 25907, 25905, 25911, 25696, 26137, 26135, 26115, 26113, 25718, 26154, 26152, 26158, 26156, 25733, 26354, 26355, 25738, 25741, 26356, 26357, 26166, 25751, 26358, 25753, 26359, 26360, 25758, 26361, 26175, 26173, 26179, 26177, 26183, 26181, 26185, 26189, 26187, 26191, 25812, 26211, 25829, 26222, 26215, 25827, 25810, 26368, 25870, 26239, 25856, 26369, 26234, 26370, 25841, 26227, 26371, 25988, 26372, 26229, 26231, 26373, 26242, 25881, 26374, 26244, 25887, 26375, 26247, 25892, 26376, 25894, 25897, 26377, 26378, 26124, 25679, 25279, 25278, 25683, 26129, 25687, 25685, 25691, 26258, 25907, 25905, 25911, 26204, 25696, 26137, 26135, 26141, 26139, 26143, 26147, 26145, 26149, 25718, 26154, 26152, 26158, 26156, 25733, 26380, 26381, 25738, 25741, 26382, 26383, 26166, 25751, 26384, 25753, 26385, 26386, 25758, 26387, 26175, 26173, 26179, 26177, 26183, 26181, 26185, 26189, 26187, 26191, 25961, 26296, 25793, 26388, 26199, 25856, 26389, 26234, 26390, 25988, 26317, 26315, 25799, 26391, 26333, 26331, 26025, 26204, 25961, 26296, 26394, 26298, 26300, 26395, 26302, 26304, 26396, 26306, 26308, 26397, 25988, 26317, 26315, 26004, 26398, 26010, 26399, 26325, 26327, 26329, 26333, 26331, 26025, 25810, 25812, 26211, 26215, 25827, 25829, 26222, 26403, 25834, 26404, 25841, 26227, 26405, 26229, 26231, 25856, 26406, 26234, 26407, 25862, 26408, 25870, 26239, 26409, 26242, 25881, 26410, 26244, 25887, 26411, 26247, 25892, 26412, 25894, 25897, 26413, 26414, 26254, 26252, 26258, 25907, 25905, 25911, 26264, 25915, 25478, 25477, 26269, 25921, 25481, 25480, 25925, 25927, 25929, 25931, 26278, 25935, 25488, 25487, 25939, 25941, 26285, 25945, 25493, 25492, 25961, 26296, 26415, 26298, 26300, 26416, 26302, 26304, 26417, 26306, 26308, 26418, 25988, 26317, 26315, 26004, 26419, 26010, 26420, 26325, 26327, 26329, 26333, 26331, 26025, 26424, 26425, 26426, 26427, 26428, 26429, 26430, 26431, 26432, 26037, 26039, 25588, 25587, 25590, 25589, 26433, 26434, 26048, 26435, 26436, 26437, 26438, 26440, 26058, 26056, 26442, 26443, 26064, 26068, 26066, 26444, 26445, 26446, 26447, 26448, 26449, 26079, 26083, 26081, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 26470, 26473, 26474, 26475, 26479, 26481, 26487, 25694, 26488, 26489, 26490, 26491, 26492, 26493, 26494, 26495, 26496, 26497, 26498, 26499, 26500, 26160, 26501, 26502, 26504, 26505, 25744, 26508, 26510, 26511, 26512, 26514, 25760, 26469, 26516, 26517, 26518, 26519, 26520, 26521, 26522, 26523, 26524, 26525, 26526, 26527, 26528, 26529, 26530, 26531, 26532, 26534, 26535, 26537, 26538, 26540, 26541, 26542, 26544, 26546, 26311, 25876, 26548, 26549, 26551, 26552, 26554, 26555, 26557, 26558, 26561, 26562, 26563, 26564, 26565, 26566, 26567, 26568, 26569, 26570, 25694, 26571, 26572, 26573, 26574, 26117, 26575, 26576, 26577, 26578, 26579, 26160, 26580, 26581, 26583, 26584, 25744, 26587, 26588, 26590, 26591, 26593, 25760, 26469, 26595, 26596, 26597, 26598, 26599, 26600, 26601, 26602, 26603, 26604, 26605, 26606, 26607, 26608, 26609, 26610, 26611, 26613, 26614, 26615, 26617, 26619, 26620, 26622, 26311, 26624, 26625, 25876, 26627, 26628, 26630, 26631, 26633, 26634, 26636, 26637, 26640, 26641, 26642, 26643, 26644, 26645, 26646, 26647, 26648, 26649, 26650, 26651, 26652, 26653, 26654, 25694, 26655, 26656, 26657, 26658, 26659, 26660, 26661, 26662, 26663, 26664, 26665, 26666, 26667, 26160, 26668, 26669, 26671, 26672, 25744, 26675, 26676, 26678, 26679, 26681, 25760, 26469, 26683, 26684, 26685, 26686, 26687, 26688, 26689, 26690, 26691, 26692, 26196, 26693, 26694, 26695, 26697, 26698, 26700, 26702, 26311, 25996, 26703, 26704, 26705, 26202, 26707, 26708, 26709, 26710, 25953, 25959, 26711, 26712, 26714, 26715, 26717, 26718, 26720, 26721, 26723, 26311, 25996, 26724, 26725, 26726, 26320, 26728, 26323, 26730, 26731, 26732, 26733, 26734, 26735, 26736, 26737, 26738, 26739, 26740, 26741, 26742, 26744, 25400, 26746, 26747, 26749, 26750, 26751, 26753, 26755, 25867, 26757, 26758, 25876, 26760, 26761, 26763, 26764, 26766, 26767, 26769, 26770, 26773, 26774, 26775, 26776, 26777, 26778, 26779, 26780, 26781, 26782, 26783, 26784, 26785, 26786, 26787, 26788, 26789, 26790, 26791, 26792, 26793, 26794, 26795, 26796, 26797, 26798, 26799, 26800, 25953, 25959, 26801, 26802, 26804, 26805, 26807, 26808, 26810, 26811, 26813, 26311, 25996, 26814, 26815, 26816, 26320, 26818, 26323, 26820, 26821, 26822, 26823, 26824, 26825, 26828, 26830, 26835, 26836, 26837, 26838, 26839, 26840, 26843, 26849, 26850, 26853, 26854, 26855, 26862, 26863, 26864, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 26887, 26888, 26890, 26893, 26897, 26899, 26901, 26905, 26906, 26507, 26509, 26912, 26913, 26914, 26916, 26918, 26921, 25819, 25808, 25825, 26533, 26536, 26539, 26937, 26545, 26940, 26941, 26547, 26550, 26945, 26947, 26949, 26951, 26955, 26960, 26961, 26963, 26965, 26967, 26969, 26971, 26975, 26976, 26586, 26978, 26982, 26983, 26984, 26986, 26988, 26991, 25819, 25825, 25808, 26612, 27003, 26618, 26621, 27008, 26623, 27011, 26626, 26629, 27015, 27017, 27019, 27020, 27022, 27025, 27029, 27035, 27036, 27038, 27041, 27045, 27047, 27049, 27053, 27054, 26674, 27056, 27060, 27061, 27062, 27064, 27066, 27069, 25787, 27072, 27075, 27077, 26701, 27080, 27081, 27082, 27084, 27085, 27086, 25951, 27090, 25957, 27091, 26713, 26716, 26719, 26722, 27101, 27102, 27103, 27105, 27106, 27107, 27108, 27112, 25808, 25819, 25825, 26743, 27123, 26745, 26748, 27128, 26754, 27131, 26756, 27134, 26759, 26762, 27138, 27140, 27142, 27143, 27145, 27149, 27151, 27153, 27155, 27161, 27163, 27167, 27169, 25951, 27171, 25957, 27172, 26803, 26806, 26809, 26812, 27182, 27183, 27184, 27186, 27187, 27188, 27189, 27193, 26903, 26911, 24407, 24409, 26925, 26928, 25577, 24414, 24416, 26973, 26981, 24422, 27200, 24424, 27202, 26995, 26997, 24426, 24428, 24430, 25598, 27051, 27059, 24439, 24441, 27074, 24443, 27205, 25089, 27093, 25090, 24449, 24448, 24452, 27208, 27117, 27121, 24457, 22992, 22991, 22994, 22993, 22999, 22998, 27174, 25107, 24467, 24466, 24470, 27211, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 26886, 26515, 27249, 27250, 27251, 27264, 27265, 26959, 26594, 27283, 27284, 27285, 27298, 27300, 27301, 27034, 26682, 27319, 27330, 27332, 27346, 27347, 27348, 27364, 27365, 27367, 27369, 27371, 27373, 27375, 26895, 26892, 27236, 27238, 27241, 27239, 27389, 27390, 26909, 25048, 25050, 27391, 24406, 27392, 24408, 27393, 27394, 26938, 27257, 26932, 26934, 26936, 27260, 27259, 26560, 26948, 26946, 27395, 27396, 27397, 27269, 27270, 27272, 27275, 27273, 27398, 27399, 26979, 25063, 25064, 27400, 24421, 27402, 24423, 27404, 27405, 27290, 27010, 27006, 27002, 27004, 27294, 27293, 26639, 27018, 27016, 27406, 27407, 27408, 27409, 27043, 27040, 27306, 27308, 27311, 27309, 27410, 27411, 27057, 25078, 25079, 27412, 24438, 27413, 24440, 27414, 27324, 27078, 27076, 27326, 27328, 27415, 25088, 27417, 27418, 27338, 27099, 27097, 27095, 27340, 27344, 27342, 27419, 27420, 27421, 27422, 25091, 27424, 27425, 27125, 27133, 27129, 27350, 27127, 27355, 27359, 27358, 26772, 27141, 27139, 25622, 27426, 27427, 27428, 27429, 27430, 27431, 27432, 27433, 27381, 27180, 27178, 27176, 27383, 27387, 27385, 27434, 27435, 27436, 27437, 25108, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27233, 27486, 27487, 27488, 27489, 27490, 27491, 27244, 27494, 27495, 27496, 27498, 27500, 26930, 26926, 26929, 27503, 27504, 27505, 27506, 27507, 27508, 27509, 27510, 27511, 27512, 25057, 25061, 27267, 27516, 27517, 27518, 27519, 27520, 27278, 27523, 27524, 27525, 27527, 27529, 27000, 26999, 26998, 27532, 27533, 27534, 27535, 27536, 27537, 27538, 27539, 27540, 27541, 25069, 25072, 25076, 27303, 27546, 27547, 27548, 27549, 27550, 27551, 27314, 27554, 27555, 27556, 27558, 27560, 27320, 27562, 27563, 27564, 27565, 27566, 27568, 27333, 27331, 27571, 27572, 27573, 27574, 27575, 27576, 27577, 27579, 27582, 27118, 27115, 27119, 27583, 27585, 27586, 27587, 27588, 27589, 27590, 27591, 27592, 27593, 27594, 27595, 27596, 25094, 25096, 25095, 27598, 25100, 25103, 27376, 27374, 27605, 27606, 27607, 27608, 27609, 27610, 27611, 27613, 27616, 26832, 26844, 26851, 26852, 26861, 29, 30, 31, 27648, 27649, 27653, 27655, 27497, 27499, 27661, 27662, 27663, 27664, 27666, 27669, 27671, 27674, 27675, 27676, 27680, 27682, 27526, 27528, 27688, 27689, 27690, 27691, 27693, 27696, 27698, 27701, 27702, 27703, 27704, 27705, 27709, 27711, 27557, 27559, 27717, 27718, 27567, 27724, 27725, 27726, 27728, 27731, 27581, 27735, 27736, 27737, 27739, 27741, 27743, 27745, 27747, 27751, 27752, 27753, 27755, 27756, 27757, 27758, 27759, 27761, 27764, 27615, 27652, 26827, 26826, 27768, 27679, 27199, 27198, 27769, 27708, 26846, 26845, 27722, 27770, 27207, 27771, 26856, 27210, 27772, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27778, 27779, 27501, 27783, 27785, 27788, 27514, 27515, 27792, 27793, 27796, 27797, 27799, 27802, 27542, 27543, 27544, 27808, 27809, 27561, 27813, 27570, 27817, 27821, 27824, 27828, 27597, 27830, 27832, 27833, 27604, 27836, 27840, 27777, 27197, 27196, 27841, 27842, 27844, 27677, 27403, 27401, 27845, 27846, 27848, 27807, 26848, 26847, 27849, 27850, 27851, 27416, 27819, 27423, 27853, 27855, 27838, 27438, 27856, 27, 28, 29, 30, 31, 27873, 27874, 27876, 27881, 27882, 27884, 27890, 27893, 27895, 27896, 27754, 27900, 27901, 27902, 27905, 27906, 27907, 27908, 27877, 26834, 26833, 27911, 27912, 27913, 27914, 27885, 27204, 26842, 26841, 27917, 27918, 27919, 27920, 27892, 27923, 27924, 27925, 27897, 26857, 27928, 27929, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27937, 27940, 27944, 27936, 27951, 27954, 27955, 27956, 27939, 27958, 27961, 27962, 27963, 27964, 27942, 27966, 27969, 27852, 27894, 27972, 27973, 27974, 26859, 26860, 26858, 27903, 27976, 27, 28, 29, 30, 31, 28003, 28004, 27938, 28006, 28008, 28009, 27941, 27847, 28012, 28014, 28015, 27922, 28018, 28019, 27945, 28022, 28023, 28024, 28025, 28026, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28032, 28034, 28035, 28036, 28038, 28039, 28041, 27971, 28046, 28021, 28048, 27975, 28017, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28064, 28005, 28067, 28010, 28070, 28020, 28073, 28076, 28045, 28051, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28102, 28042, 28066, 28037, 28033, 28104, 28105, 28069, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28128, 28129, 28130, 28131, 28132, 28135, 28133, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28160, 28103, 28163, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28192, 28194, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28224, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28256, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28288, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31}; int h_C[]= { 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 323, 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431, 433, 435, 437, 439, 441, 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 469, 471, 473, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 495, 497, 499, 501, 503, 505, 507, 509, 511, 513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 537, 539, 541, 543, 545, 547, 549, 551, 553, 555, 557, 559, 561, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 585, 587, 589, 591, 593, 595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 617, 619, 621, 623, 625, 627, 629, 631, 633, 635, 637, 639, 641, 643, 645, 647, 649, 651, 653, 655, 657, 659, 661, 663, 665, 667, 669, 671, 673, 675, 677, 679, 681, 683, 685, 687, 689, 691, 693, 695, 697, 699, 701, 703, 705, 707, 709, 711, 713, 715, 717, 719, 721, 723, 725, 727, 729, 731, 733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 755, 757, 759, 761, 763, 765, 767, 769, 771, 773, 775, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 797, 799, 801, 803, 805, 807, 809, 811, 813, 815, 817, 819, 821, 823, 825, 827, 829, 831, 833, 835, 837, 839, 841, 843, 845, 847, 849, 851, 853, 855, 857, 859, 861, 863, 865, 867, 869, 871, 873, 875, 877, 879, 881, 883, 885, 887, 889, 891, 893, 895, 897, 899, 901, 903, 905, 907, 909, 911, 913, 915, 917, 919, 921, 923, 925, 927, 929, 931, 933, 935, 937, 939, 941, 943, 945, 947, 949, 951, 953, 955, 957, 959, 961, 963, 965, 967, 969, 971, 973, 975, 977, 979, 981, 983, 985, 987, 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, 1007, 1009, 1011, 1013, 1015, 1017, 1019, 1021, 1023, 1025, 1027, 1029, 1031, 1033, 1035, 1037, 1039, 1041, 1043, 1045, 1047, 1049, 1051, 1053, 1055, 1057, 1059, 1061, 1063, 1065, 1067, 1069, 1071, 1073, 1075, 1077, 1079, 1081, 1083, 1085, 1087, 1089, 1091, 1093, 1095, 1097, 1099, 1101, 1103, 1105, 1107, 1109, 1111, 1113, 1115, 1117, 1119, 1121, 1123, 1125, 1127, 1129, 1131, 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151, 1153, 1155, 1157, 1159, 1161, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, 1179, 1181, 1183, 1185, 1187, 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1203, 1205, 1207, 1209, 1211, 1213, 1215, 1217, 1219, 1221, 1223, 1225, 1227, 1229, 1231, 1233, 1235, 1237, 1239, 1241, 1243, 1245, 1247, 1249, 1251, 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269, 1271, 1273, 1275, 1277, 1279, 1281, 1283, 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299, 1301, 1303, 1305, 1307, 1309, 1311, 1313, 1315, 1317, 1319, 1321, 1323, 1325, 1327, 1329, 1331, 1333, 1335, 1337, 1339, 1341, 1343, 1345, 1347, 1349, 1351, 1353, 1355, 1357, 1359, 1361, 1363, 1365, 1367, 1369, 1371, 1373, 1375, 1377, 1379, 1381, 1383, 1385, 1387, 1389, 1391, 1393, 1395, 1397, 1399, 1401, 1403, 1405, 1407, 1409, 1411, 1413, 1415, 1417, 1419, 1421, 1423, 1425, 1427, 1429, 1431, 1433, 1435, 1437, 1439, 1441, 1443, 1445, 1447, 1449, 1451, 1453, 1455, 1457, 1459, 1461, 1463, 1465, 1467, 1469, 1471, 1473, 1475, 1477, 1479, 1481, 1483, 1485, 1487, 1489, 1491, 1493, 1495, 1497, 1499, 1501, 1503, 1505, 1507, 1509, 1511, 1513, 1515, 1517, 1519, 1521, 1523, 1525, 1527, 1529, 1531, 1533, 1535, 1537, 1539, 1541, 1543, 1545, 1547, 1549, 1551, 1553, 1555, 1557, 1559, 1561, 1563, 1565, 1567, 1569, 1571, 1573, 1575, 1577, 1579, 1581, 1583, 1585, 1587, 1589, 1591, 1593, 1595, 1597, 1599, 1601, 1603, 1605, 1607, 1609, 1611, 1613, 1615, 1617, 1619, 1621, 1623, 1625, 1627, 1629, 1631, 1633, 1635, 1637, 1639, 1641, 1643, 1645, 1647, 1649, 1651, 1653, 1655, 1657, 1659, 1661, 1663, 1665, 1667, 1669, 1671, 1673, 1675, 1677, 1679, 1681, 1683, 1685, 1687, 1689, 1691, 1693, 1695, 1697, 1699, 1701, 1703, 1705, 1707, 1709, 1711, 1713, 1715, 1717, 1719, 1721, 1723, 1725, 1727, 1729, 1731, 1733, 1735, 1737, 1739, 1741, 1743, 1745, 1747, 1749, 1751, 1753, 1755, 1757, 1759, 1761, 1763, 1765, 1767, 1769, 1771, 1773, 1775, 1777, 1779, 1781, 1783, 1785, 1787, 1789, 1791, 1793, 1795, 1797, 1799, 1801, 1803, 1805, 1807, 1809, 1811, 1813, 1815, 1817, 1819, 1821, 1823, 1825, 1827, 1829, 1831, 1833, 1835, 1837, 1839, 1841, 1843, 1845, 1847, 1849, 1851, 1853, 1855, 1857, 1859, 1861, 1863, 1865, 1867, 1869, 1871, 1873, 1875, 1877, 1879, 1881, 1883, 1885, 1887, 1889, 1891, 1893, 1895, 1897, 1899, 1901, 1903, 1905, 1907, 1909, 1911, 1913, 1915, 1917, 1919, 1921, 1923, 1925, 1927, 1929, 1931, 1933, 1935, 1937, 1939, 1941, 1943, 1945, 1947, 1949, 1951, 1953, 1955, 1957, 1959, 1961, 1963, 1965, 1967, 1969, 1971, 1973, 1975, 1977, 1979, 1981, 1983, 1985, 1987, 1989, 1991, 1993, 1995, 1997, 1999, 2001, 2003, 2005, 2007, 2009, 2011, 2013, 2015, 2017, 2019, 2021, 2023, 2025, 2027, 2029, 2031, 2033, 2035, 2037, 2039, 2041, 2043, 2045, 2047, 2049, 2051, 2053, 2055, 2057, 2059, 2061, 2063, 2065, 2067, 2069, 2071, 2073, 2075, 2077, 2079, 2081, 2083, 2085, 2087, 2089, 2091, 2093, 2095, 2097, 2099, 2101, 2103, 2105, 2107, 2109, 2111, 2113, 2115, 2117, 2119, 2121, 2123, 2125, 2127, 2129, 2131, 2133, 2135, 2137, 2139, 2141, 2143, 2145, 2147, 2149, 2151, 2153, 2155, 2157, 2159, 2161, 2163, 2165, 2167, 2169, 2171, 2173, 2175, 2177, 2179, 2181, 2183, 2185, 2187, 2189, 2191, 2193, 2195, 2197, 2199, 2201, 2203, 2205, 2207, 2209, 2211, 2213, 2215, 2217, 2219, 2221, 2223, 2225, 2227, 2229, 2231, 2233, 2235, 2237, 2239, 2241, 2243, 2245, 2247, 2249, 2251, 2253, 2255, 2257, 2259, 2261, 2263, 2265, 2267, 2269, 2271, 2273, 2275, 2277, 2279, 2281, 2283, 2285, 2287, 2289, 2291, 2293, 2295, 2297, 2299, 2301, 2303, 2305, 2307, 2309, 2311, 2313, 2315, 2317, 2319, 2321, 2323, 2325, 2327, 2329, 2331, 2333, 2335, 2337, 2339, 2341, 2343, 2345, 2347, 2349, 2351, 2353, 2355, 2357, 2359, 2361, 2363, 2365, 2367, 2369, 2371, 2373, 2375, 2377, 2379, 2381, 2383, 2385, 2387, 2389, 2391, 2393, 2395, 2397, 2399, 2401, 2403, 2405, 2407, 2409, 2411, 2413, 2415, 2417, 2419, 2421, 2423, 2425, 2427, 2429, 2431, 2433, 2435, 2437, 2439, 2441, 2443, 2445, 2447, 2449, 2451, 2453, 2455, 2457, 2459, 2461, 2463, 2465, 2467, 2469, 2471, 2473, 2475, 2477, 2479, 2481, 2483, 2485, 2487, 2489, 2491, 2493, 2495, 2497, 2499, 2501, 2503, 2505, 2507, 2509, 2511, 2513, 2515, 2517, 2519, 2521, 2523, 2525, 2527, 2529, 2531, 2533, 2535, 2537, 2539, 2541, 2543, 2545, 2547, 2549, 2551, 2553, 2555, 2557, 2559, 2561, 2563, 2565, 2567, 2569, 2571, 2573, 2575, 2577, 2579, 2581, 2583, 2585, 2587, 2589, 2591, 2593, 2595, 2597, 2599, 2601, 2603, 2605, 2607, 2609, 2611, 2613, 2615, 2617, 2619, 2621, 2623, 2625, 2627, 2629, 2631, 2633, 2635, 2637, 2639, 2641, 2643, 2645, 2647, 2649, 2651, 2653, 2655, 2657, 2659, 2661, 2663, 2665, 2667, 2669, 2671, 2673, 2675, 2677, 2679, 2681, 2683, 2685, 2687, 2689, 2691, 2693, 2695, 2697, 2699, 2701, 2703, 2705, 2707, 2709, 2711, 2713, 2715, 2717, 2719, 2721, 2723, 2725, 2727, 2729, 2731, 2733, 2735, 2737, 2739, 2741, 2743, 2745, 2747, 2749, 2751, 2753, 2755, 2757, 2759, 2761, 2763, 2765, 2767, 2769, 2771, 2773, 2775, 2777, 2779, 2781, 2783, 2785, 2787, 2789, 2791, 2793, 2795, 2797, 2799, 2801, 2803, 2805, 2807, 2809, 2811, 2813, 2815, 2817, 2819, 2821, 2823, 2825, 2827, 2829, 2831, 2833, 2835, 2837, 2839, 2841, 2843, 2845, 2847, 2849, 2851, 2853, 2855, 2857, 2859, 2861, 2863, 2865, 2867, 2869, 2871, 2873, 2875, 2877, 2879, 2881, 2883, 2885, 2887, 2889, 2891, 2893, 2895, 2897, 2899, 2901, 2903, 2905, 2907, 2909, 2911, 2913, 2915, 2917, 2919, 2921, 2923, 2925, 2927, 2929, 2931, 2933, 2935, 2937, 2939, 2941, 2943, 2945, 2947, 2949, 2951, 2953, 2955, 2957, 2959, 2961, 2963, 2965, 2967, 2969, 2971, 2973, 2975, 2977, 2979, 2981, 2983, 2985, 2987, 2989, 2991, 2993, 2995, 2997, 2999, 3001, 3003, 3005, 3007, 3009, 3011, 3013, 3015, 3017, 3019, 3021, 3023, 3025, 3027, 3029, 3031, 3033, 3035, 3037, 3039, 3041, 3043, 3045, 3047, 3049, 3051, 3053, 3055, 3057, 3059, 3061, 3063, 3065, 3067, 3069, 3071, 3073, 3075, 3077, 3079, 3081, 3083, 3085, 3087, 3089, 3091, 3093, 3095, 3097, 3099, 3101, 3103, 3105, 3107, 3109, 3111, 3113, 3115, 3117, 3119, 3121, 3123, 3125, 3127, 3129, 3131, 3133, 3135, 3137, 3139, 3141, 3143, 3145, 3147, 3149, 3151, 3153, 3155, 3157, 3159, 3161, 3163, 3165, 3167, 3169, 3171, 3173, 3175, 3177, 3179, 3181, 3183, 3185, 3187, 3189, 3191, 3193, 3195, 3197, 3199, 3201, 3203, 3205, 3207, 3209, 3211, 3213, 3215, 3217, 3219, 3221, 3223, 3225, 3227, 3229, 3231, 3233, 3235, 3237, 3239, 3241, 3243, 3245, 3247, 3249, 3251, 3253, 3257, 3259, 3261, 3263, 3265, 3267, 3269, 3271, 3273, 3275, 3277, 3279, 3281, 3283, 3285, 3287, 3289, 3291, 3293, 3295, 3297, 3299, 3301, 3303, 3305, 3307, 3309, 3311, 3313, 3315, 3317, 3319, 3321, 3323, 3325, 3327, 3329, 3331, 3333, 3335, 3337, 3339, 3341, 3343, 3345, 3347, 3349, 3351, 3353, 3355, 3357, 3359, 3361, 3363, 3365, 3367, 3369, 3371, 3373, 3375, 3377, 3379, 3381, 3383, 3385, 3387, 3389, 3391, 3393, 3395, 3397, 3399, 3401, 3403, 3405, 3407, 3409, 3411, 3413, 3415, 3417, 3419, 3421, 3423, 3425, 3427, 3429, 3431, 3433, 3435, 3437, 3439, 3441, 3443, 3445, 3447, 3449, 3451, 3453, 3455, 3457, 3459, 3461, 3463, 3465, 3467, 3469, 3471, 3473, 3475, 3477, 3479, 3481, 3483, 3485, 3487, 3489, 3491, 3493, 3495, 3497, 3499, 3501, 3503, 3505, 3507, 3509, 3511, 3514, 3516, 3518, 3520, 3522, 3524, 3526, 3528, 3530, 3532, 3534, 3536, 3538, 3540, 3542, 3544, 3546, 3548, 3550, 3552, 3554, 3556, 3558, 3560, 3563, 3565, 3567, 3569, 3571, 3573, 3576, 3578, 3580, 3582, 3585, 3587, 3590, 3592, 3597, 3599, 3608, 3610, 3612, 3614, 3617, 3619, 3622, 3624, 3630, 3632, 3634, 3636, 3639, 3641, 3644, 3646, 3652, 3654, 3656, 3658, 3660, 3662, 3664, 3666, 3668, 3670, 3672, 3674, 3676, 3678, 3680, 3682, 3684, 3686, 3688, 3690, 3693, 3695, 3697, 3699, 3702, 3704, 3706, 3708, 3710, 3712, 3714, 3716, 3718, 3720, 3722, 3724, 3726, 3728, 3731, 3733, 3735, 3737, 3739, 3741, 3743, 3745, 3747, 3749, 3751, 3753, 3755, 3757, 3759, 3761, 3763, 3765, 3767, 3769, 3771, 3773, 3775, 3777, 3779, 3781, 3783, 3785, 3788, 3790, 3793, 3795, 3798, 3800, 3803, 3805, 3808, 3810, 3812, 3814, 3817, 3819, 3822, 3824, 3829, 3831, 3834, 3836, 3840, 3842, 3845, 3847, 3850, 3852, 3854, 3856, 3859, 3861, 3863, 3865, 3869, 3871, 3874, 3876, 3879, 3881, 3884, 3886, 3888, 3890, 3892, 3894, 3896, 3898, 3900, 3902, 3904, 3906, 3908, 3910, 3913, 3915, 3917, 3919, 3921, 3923, 3925, 3927, 3929, 3931, 3933, 3935, 3937, 3939, 3941, 3943, 3945, 3947, 3949, 3951, 3953, 3955, 3957, 3959, 3961, 3963, 3965, 3967, 3969, 3971, 3973, 3975, 3978, 3980, 3982, 3984, 3986, 3988, 3990, 3992, 3995, 3997, 4000, 4002, 4008, 4010, 4012, 4014, 4017, 4019, 4021, 4023, 4026, 4028, 4031, 4033, 4038, 4040, 4042, 4044, 4047, 4049, 4052, 4054, 4060, 4062, 4068, 4070, 4073, 4075, 4077, 4079, 4081, 4083, 4085, 4087, 4089, 4091, 4093, 4095, 4097, 4099, 4101, 4103, 4108, 4110, 4112, 4114, 4116, 4118, 4121, 4123, 4126, 4128, 4134, 4136, 4141, 4143, 4146, 4148, 4150, 4152, 4154, 4156, 4158, 4160, 4162, 4164, 4166, 4168, 4174, 4176, 4179, 4181, 4184, 4186, 4189, 4191, 4197, 4199, 4201, 4203, 4205, 4207, 4209, 4211, 4213, 4215, 4217, 4219, 4221, 4223, 4225, 4227, 4229, 4231, 4233, 4235, 4237, 4239, 4241, 4243, 4245, 4247, 4249, 4251, 4253, 4255, 4257, 4259, 4261, 4263, 4265, 4267, 4269, 4271, 4273, 4275, 4277, 4279, 4281, 4283, 4285, 4287, 4289, 4291, 4293, 4295, 4297, 4299, 4301, 4303, 4305, 4307, 4309, 4311, 4313, 4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4386, 4388, 4390, 4392, 4394, 4396, 4398, 4400, 4402, 4404, 4406, 4408, 4410, 4412, 4414, 4416, 4418, 4420, 4422, 4424, 4426, 4428, 4430, 4432, 4434, 4436, 4438, 4440, 4442, 4444, 4447, 4449, 4451, 4453, 4456, 4458, 4460, 4462, 4465, 4467, 4469, 4471, 4473, 4475, 4477, 4479, 4482, 4484, 4486, 4488, 4491, 4493, 4496, 4498, 4503, 4505, 4507, 4509, 4511, 4513, 4515, 4517, 4520, 4522, 4524, 4526, 4529, 4531, 4534, 4536, 4541, 4543, 4545, 4547, 4549, 4551, 4554, 4556, 4559, 4561, 4564, 4566, 4569, 4571, 4574, 4576, 4579, 4581, 4584, 4586, 4005, 4005, 4591, 4593, 4595, 4597, 4599, 4601, 4603, 4605, 4607, 4609, 372, 372, 4613, 4615, 4617, 4619, 4621, 4623, 4625, 4627, 4629, 4631, 4633, 4635, 4637, 4639, 4641, 4643, 4645, 4647, 4649, 4651, 4653, 4655, 4657, 4659, 4661, 4663, 4665, 4667, 4682, 4684, 4686, 4688, 4690, 4692, 4694, 4696, 4698, 4700, 4702, 4704, 4706, 4708, 4710, 4712, 4714, 4716, 4718, 4720, 4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4740, 3993, 3993, 4005, 4005, 4035, 4035, 4005, 4005, 3993, 3993, 4776, 4778, 4780, 4782, 4784, 4786, 4788, 4790, 4792, 4794, 4796, 4798, 4800, 4802, 4804, 4806, 3561, 3561, 3561, 3561, 3561, 3561, 3603, 3603, 3603, 3603, 3603, 3603, 3615, 3627, 3637, 3637, 3649, 3649, 3615, 3627, 3637, 3637, 3649, 3649, 3976, 3976, 3993, 3993, 4194, 4194, 4005, 4005, 3976, 3976, 3976, 3976, 4005, 4005, 4057, 4057, 3512, 3512, 372, 372, 3512, 3512, 373, 373, 3627, 3627, 3637, 3637, 3649, 3649, 3976, 3976, 3976, 3976, 3976, 3976, 3993, 3993, 4057, 4057, 4045, 4065, 4065, 4065, 4065, 3512, 3512, 372, 372, 3512, 3512, 373, 373, 3512, 3512, 3615, 3615, 3627, 3627, 3832, 3837, 3583, 3594, 3627, 3627, 3615, 3615, 3649, 3649, 3637, 3637, 3691, 3691, 3700, 3700, 3561, 3561, 3561, 3561, 3561, 3561, 3603, 3603, 3603, 3603, 3603, 3603, 3627, 3627, 3615, 3615, 3637, 3637, 3649, 3649, 4005, 4005, 3993, 3993, 4035, 4035, 4015, 4015, 4045, 4045, 4057, 4057, 3993, 3993, 4005, 4005, 3993, 3993, 4005, 4005, 4015, 4015, 4045, 4045, 4169, 4169, 4035, 4035, 4015, 4015, 3976, 3976, 4171, 4171, 4015, 4015, 4015, 4015, 4057, 4057, 4045, 4045, 4065, 4065, 4065, 4065, 4005, 4005, 4015, 4015, 4035, 4035, 3976, 3976, 3976, 3976, 4119, 4119, 4131, 4131, 4171, 4171, 4171, 4171, 4171, 4171, 5251, 5253, 5255, 5257, 5259, 5261, 5263, 5265, 5267, 5269, 5271, 5273, 5275, 5277, 5279, 5281, 5283, 5285, 4384, 4384, 4463, 4463, 5340, 5342, 5344, 5346, 5348, 5350, 5352, 5354, 5356, 5358, 5360, 5362, 5364, 5366, 5368, 5370, 5372, 5374, 5376, 5378, 5380, 5382, 5384, 5386, 5388, 5390, 5392, 5394, 5396, 5398, 5400, 5402, 5404, 5406, 5408, 5410, 5412, 5414, 5416, 5418, 4384, 4384, 4463, 4463, 5479, 5481, 5483, 5485, 5487, 5489, 5491, 5493, 5495, 5497, 5499, 5501, 5503, 5505, 5507, 5509, 5512, 5514, 5516, 5518, 5520, 5522, 4005, 4005, 3976, 3976, 5543, 5545, 5547, 5549, 5551, 5553, 5555, 5557, 5559, 5561, 5563, 5565, 5567, 5569, 5571, 5573, 5575, 5577, 5579, 5581, 5583, 5585, 5587, 5589, 5591, 5593, 5595, 5597, 5599, 5601, 5603, 5605, 3627, 3627, 3615, 3615, 3615, 3615, 3691, 3691, 3700, 3700, 3561, 3561, 3561, 3561, 3561, 3561, 3603, 3603, 3615, 3615, 3691, 3691, 3700, 3700, 3627, 3627, 4005, 4005, 4035, 4035, 4065, 4065, 4035, 4035, 4015, 4015, 3976, 3976, 3976, 3976, 3976, 3976, 4065, 4065, 4035, 4035, 4045, 4045, 4057, 4057, 4065, 4065, 4035, 4035, 4015, 4015, 3976, 3976, 3993, 3993, 4005, 4005, 3976, 3976, 3976, 3976, 4005, 4005, 3993, 3993, 4065, 4065, 4005, 4005, 3993, 3993, 4035, 4035, 4005, 4005, 3993, 3993, 3976, 3976, 3976, 3976, 3993, 3993, 4005, 4005, 4065, 4065, 3512, 3512, 3512, 3512, 4194, 4194, 3615, 3615, 3627, 3627, 3637, 3637, 3615, 3615, 4005, 4005, 4171, 4171, 3993, 3993, 3976, 3976, 4045, 4045, 4065, 4065, 4169, 4169, 4194, 4194, 3993, 3993, 4045, 4045, 4065, 4065, 4171, 4171, 4169, 4169, 4194, 4194, 4384, 4384, 4463, 4463, 6052, 6054, 6056, 6058, 6060, 6062, 6064, 6066, 6068, 6070, 6072, 6074, 6076, 6078, 6080, 6082, 6084, 6086, 4384, 4384, 6110, 6112, 6114, 6116, 6118, 6120, 6122, 6124, 6126, 6128, 6130, 6132, 6134, 6136, 6138, 6140, 4384, 4384, 4384, 4384, 4463, 4463, 6156, 6158, 6160, 6162, 4384, 4384, 4384, 4384, 6172, 6174, 6176, 6178, 6180, 6182, 6184, 6186, 6188, 6190, 6192, 6194, 6196, 6198, 6200, 6202, 4384, 4384, 4384, 4384, 4384, 4384, 6279, 6281, 6283, 6285, 6287, 6289, 6291, 6293, 6295, 6297, 6299, 6301, 6303, 6305, 6307, 6309, 3561, 3561, 3561, 3561, 3603, 3603, 3615, 3615, 3857, 3561, 3561, 3561, 3561, 3601, 3561, 3561, 3561, 3561, 3605, 3603, 3603, 3603, 3603, 3603, 3603, 3615, 3615, 3627, 3627, 3866, 3627, 3627, 3615, 3615, 4005, 4005, 4035, 4035, 3976, 3976, 4035, 4035, 4015, 4015, 4065, 4065, 3512, 3512, 3512, 3512, 3993, 3993, 4035, 4035, 4005, 4005, 4045, 4057, 3976, 3976, 4005, 4005, 3993, 3993, 4015, 4015, 4065, 4065, 3254, 4065, 4065, 3255, 4065, 4065, 3512, 3512, 4194, 4194, 3993, 3993, 4005, 4005, 4035, 4035, 4005, 4005, 3993, 3993, 4015, 4015, 3976, 3976, 3976, 3976, 4005, 4005, 3993, 3993, 4035, 4035, 4015, 4015, 4045, 4045, 4057, 4057, 4065, 4065, 4131, 4131, 4119, 4119, 3512, 3512, 3512, 3512, 3512, 3512, 4194, 4194, 3561, 3561, 3561, 3561, 3561, 3561, 3583, 3594, 3603, 3603, 3603, 3603, 3601, 3603, 3603, 3605, 3615, 3615, 3627, 3627, 3637, 3637, 3649, 3649, 3815, 3826, 3691, 3691, 3700, 3700, 3815, 3826, 3832, 3837, 3857, 3866, 4035, 4035, 4045, 4045, 4104, 4105, 3911, 3911, 4171, 4171, 4194, 4194, 3993, 3993, 4005, 4005, 4015, 4015, 4035, 4035, 3976, 3976, 3993, 3993, 4005, 4005, 4015, 4015, 4035, 4035, 4045, 4045, 4057, 4057, 4065, 4065, 4065, 4065, 4131, 4119, 4119, 4131, 4104, 4105, 4138, 4119, 4119, 4131, 4131, 4138, 4171, 4171, 4171, 4171, 4169, 4169, 4171, 4171, 4194, 4194, 6902, 6904, 6906, 6908, 6910, 6912, 4384, 4384, 4463, 4463, 6943, 6945, 6947, 6949, 6951, 6953, 6955, 6957, 6959, 6961, 6963, 6965, 6967, 6969, 6971, 6973, 6975, 6977, 6979, 6981, 6983, 6985, 6987, 6989, 6991, 6993, 4384, 4384, 4445, 4454, 4445, 4454, 4463, 4463, 4489, 4500, 4489, 4500, 4527, 4538, 4527, 4538, 7082, 7084, 7086, 7088, 7091, 7093, 7095, 7097, 7099, 7101, 7103, 7105, 7107, 7109, 7111, 7113, 7115, 7117, 7120, 7122, 7127, 7129, 7131, 7133, 7136, 7138, 7140, 7142, 7146, 7148, 7151, 7153, 7156, 7158, 7166, 7168, 7170, 7172, 7174, 7176, 7179, 7181, 7184, 7186, 7189, 7191, 7198, 7200, 7204, 7206, 7210, 7212, 7214, 7216, 7234, 7236, 7254, 7256, 6900, 6900, 6900, 6900, 7294, 7296, 6900, 6900, 7303, 7305, 7307, 7309, 6900, 6900, 7314, 7316, 6900, 6900, 4807, 4807, 7635, 7637, 7639, 7641, 7674, 7676, 7678, 7680, 7682, 7684, 7686, 7688, 7690, 7692, 7694, 7696, 7134, 7143, 7714, 7716, 7718, 7720, 6900, 6900, 6900, 6900, 6900, 6900, 6900, 6900, 7755, 7757, 7759, 7761, 7763, 7765, 7772, 7774, 6940, 6940, 6940, 6940, 5510, 6940, 6940, 6940, 6940, 5510, 7898, 7900, 6940, 6940, 6940, 6940, 7915, 7917, 7919, 7921, 7923, 7925, 6940, 6940, 5606, 5606, 6940, 6940, 5606, 5606, 5606, 5606, 5606, 5606, 8430, 8432, 8434, 8436, 8438, 8440, 8442, 8444, 8446, 8448, 8450, 8452, 8454, 8456, 6900, 6900, 6941, 8480, 8482, 8484, 8486, 8488, 8490, 8492, 8494, 6900, 6900, 8545, 8547, 8588, 8590, 6154, 6154, 6154, 6154, 8600, 8602, 6900, 8622, 8624, 8626, 8628, 8639, 8641, 8643, 8645, 8678, 8680, 8682, 8684, 8686, 8688, 8690, 8692, 6900, 7124, 6277, 6277, 6277, 6277, 6310, 6310, 9045, 9047, 9049, 9051, 9053, 9055, 9057, 9059, 9061, 9063, 9065, 9067, 6900, 6900, 7161, 7161, 9087, 9089, 9092, 9094, 9107, 9109, 9112, 9114, 6940, 6940, 6941, 7161, 7161, 7161, 7161, 9156, 9158, 9160, 9162, 9164, 9166, 9169, 9171, 9186, 9188, 9190, 9192, 9195, 9197, 9200, 9202, 7161, 7124, 7134, 7143, 7163, 7161, 7163, 9110, 9110, 9090, 9110, 9090, 9090, 9090, 9090, 9110, 9110, 9110, 9110, 9167, 9173, 9167, 9173, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 10913, 10915, 10917, 10919, 10921, 10923, 10925, 10927, 10929, 10931, 10933, 10935, 10937, 10939, 10941, 10943, 10945, 10947, 10949, 10951, 10953, 10955, 10957, 10959, 10961, 10963, 10965, 10967, 10969, 10971, 10973, 10975, 10977, 10979, 10981, 10983, 10985, 10987, 10989, 10991, 10993, 10995, 10997, 10999, 11001, 11003, 11005, 11007, 11009, 11011, 11013, 11015, 11017, 11019, 11021, 11023, 11025, 11027, 11029, 11031, 11033, 11035, 11037, 11039, 11041, 11043, 11045, 11047, 11049, 11051, 11053, 11055, 11057, 11059, 11061, 11063, 11065, 11067, 11069, 11071, 11073, 11075, 11077, 11079, 11081, 11083, 11085, 11087, 11089, 11091, 11093, 11095, 11097, 11099, 11101, 11103, 11105, 11107, 11109, 11111, 11113, 11115, 11117, 11119, 11121, 11123, 11125, 11127, 11129, 11131, 11133, 11135, 11137, 11139, 11141, 11143, 11145, 11147, 11149, 11151, 11153, 11155, 11157, 11159, 11161, 11163, 11165, 11167, 11169, 11171, 11173, 11175, 11177, 11179, 11181, 11183, 11185, 11187, 11189, 11191, 11193, 11195, 11197, 11199, 11201, 11203, 11205, 11207, 11209, 11211, 11213, 11215, 11217, 11219, 11221, 11223, 11225, 11227, 11229, 11231, 11233, 11235, 11237, 11239, 11241, 11243, 11245, 11247, 11249, 11251, 11253, 11255, 11257, 11259, 11261, 11263, 11265, 11267, 11269, 11271, 11273, 11275, 11277, 11279, 11281, 11283, 11285, 11287, 11289, 11291, 11293, 11295, 11297, 11299, 11301, 11303, 11305, 11307, 11309, 11311, 11313, 11315, 11317, 11319, 11321, 11323, 11325, 11327, 11329, 11331, 11333, 11335, 11337, 11339, 11341, 11343, 11345, 11347, 11349, 11351, 11353, 11355, 11357, 11359, 11361, 11363, 11365, 11367, 11369, 11371, 11373, 11375, 11377, 11379, 11381, 11383, 11385, 11387, 11389, 11391, 11393, 11395, 11397, 11399, 11401, 11403, 11405, 11407, 11409, 11411, 11413, 11415, 11417, 11419, 11421, 11423, 11425, 11427, 11429, 11431, 11433, 11435, 11437, 11439, 11441, 11443, 11445, 11447, 11449, 11451, 11453, 11455, 11457, 11459, 11461, 11463, 11465, 11467, 11469, 11471, 11473, 11475, 11477, 11479, 11481, 11483, 11485, 11487, 11489, 11491, 11493, 11495, 11497, 11499, 11501, 11503, 11505, 11507, 11509, 11511, 11513, 11515, 11517, 11519, 11521, 11523, 11525, 11527, 11529, 11531, 11533, 11535, 11537, 11539, 11541, 11543, 11545, 11547, 11549, 11551, 11553, 11555, 11557, 11559, 11561, 11563, 11565, 11567, 11569, 11571, 11573, 11575, 11577, 11579, 11581, 11583, 11585, 11587, 11589, 11591, 11593, 11595, 11597, 11599, 11601, 11603, 11605, 11607, 11609, 11611, 11613, 11615, 11617, 11619, 11621, 11623, 11625, 11627, 11629, 11631, 11633, 11635, 11637, 11639, 11641, 11643, 11645, 11647, 11649, 11651, 11653, 11655, 11657, 11659, 11661, 11663, 11665, 11667, 11669, 11671, 11673, 11675, 11677, 11679, 11681, 11683, 11685, 11687, 11689, 11691, 11693, 11695, 11697, 11699, 11701, 11703, 11705, 11707, 11709, 11711, 11713, 11715, 11717, 11719, 11721, 11723, 11725, 11727, 11729, 11731, 11733, 11735, 11737, 11739, 11741, 11743, 11745, 11747, 11749, 11751, 11753, 11755, 11757, 11759, 11761, 11763, 11765, 11767, 11769, 11771, 11773, 11775, 11777, 11779, 11781, 11783, 11785, 11787, 11789, 11791, 11793, 11795, 11797, 11799, 11801, 11803, 11805, 11807, 11809, 11811, 11813, 11815, 11817, 11819, 11821, 11823, 11825, 11827, 11829, 11831, 11833, 11835, 11837, 11839, 11841, 11843, 11845, 11847, 11849, 11851, 11853, 11855, 11857, 11859, 11861, 11863, 11865, 11867, 11869, 11871, 11873, 11875, 11877, 11879, 11881, 11883, 11885, 11887, 11889, 11891, 11893, 11895, 11897, 11899, 11901, 11903, 11905, 11907, 11909, 11911, 11913, 11915, 11917, 11919, 11921, 11923, 11925, 11927, 11929, 11931, 11933, 11935, 11937, 11939, 11941, 11943, 11945, 11947, 11949, 11951, 11953, 11955, 11957, 11959, 11961, 11963, 11965, 11967, 11969, 11971, 11973, 11975, 11977, 11979, 11981, 11983, 11985, 11987, 11989, 11991, 11993, 11995, 11997, 11999, 12001, 12003, 12005, 12007, 12009, 12011, 12013, 12015, 12017, 12019, 12021, 12023, 12025, 12027, 12029, 12031, 12033, 12035, 12037, 12039, 12041, 12043, 12045, 12047, 12049, 12051, 12053, 12055, 12057, 12059, 12061, 12063, 12065, 12067, 12069, 12071, 12073, 12075, 12077, 12079, 12081, 12083, 12085, 12087, 12089, 12091, 12093, 12095, 12097, 12099, 12101, 12103, 12105, 12107, 12109, 12111, 12113, 12115, 12117, 12119, 12121, 12123, 12125, 12127, 12129, 12131, 12133, 12135, 12137, 12139, 12141, 12143, 12145, 12147, 12149, 12151, 12153, 12155, 12157, 12159, 12161, 12163, 12165, 12167, 12169, 12171, 12173, 12175, 12177, 12179, 12181, 12183, 12185, 12187, 12189, 12191, 12193, 12195, 12197, 12199, 12201, 12203, 12205, 12207, 12209, 12211, 12213, 12215, 12217, 12219, 12221, 12223, 12225, 12227, 12229, 12231, 12233, 12235, 12237, 12239, 12241, 12243, 12245, 12247, 12249, 12251, 12253, 12255, 12257, 12259, 12261, 12263, 12265, 12267, 12269, 12271, 12273, 12275, 12277, 12279, 12281, 12283, 12285, 12287, 12289, 12291, 12293, 12295, 12297, 12299, 12301, 12303, 12305, 12307, 12309, 12311, 12313, 12315, 12317, 12319, 12321, 12323, 12325, 12327, 12329, 12331, 12333, 12335, 12337, 12339, 12341, 12343, 12345, 12347, 12349, 12351, 12353, 12355, 12357, 12359, 12361, 12363, 12365, 12367, 12369, 12371, 12373, 12375, 12377, 12379, 12381, 12383, 12385, 12387, 12389, 12391, 12393, 12395, 12397, 12399, 12401, 12403, 12405, 12407, 12409, 12411, 12413, 12415, 12417, 12419, 12421, 12423, 12425, 12427, 12429, 12431, 12433, 12435, 12437, 12439, 12441, 12443, 12445, 12447, 12449, 12451, 12453, 12455, 12457, 12459, 12461, 12463, 12465, 12467, 12469, 12471, 12473, 12475, 12477, 12479, 12481, 12483, 12485, 12487, 12489, 12491, 12493, 12495, 12497, 12499, 12501, 12503, 12505, 12507, 12509, 12511, 12513, 12515, 12517, 12519, 12521, 12523, 12525, 12527, 12529, 12531, 12533, 12535, 12537, 12539, 12541, 12543, 12545, 12547, 12549, 12551, 12553, 12555, 12557, 12559, 12561, 12563, 12565, 12567, 12569, 12571, 12573, 12575, 12577, 12579, 12581, 12583, 12585, 12587, 12589, 12591, 12593, 12595, 12597, 12599, 12601, 12603, 12605, 12607, 12609, 12611, 12613, 12615, 12617, 12619, 12621, 12623, 12625, 12627, 12629, 12631, 12633, 12635, 12637, 12639, 12641, 12643, 12645, 12647, 12649, 12651, 12653, 12655, 12657, 12659, 12661, 12663, 12665, 12667, 12669, 12671, 12673, 12675, 12677, 12679, 12681, 12683, 12685, 12687, 12689, 12691, 12693, 12695, 12697, 12699, 12701, 12703, 12705, 12707, 12709, 12711, 12713, 12715, 12717, 12719, 12721, 12723, 12725, 12727, 12729, 12731, 12733, 12735, 12737, 12739, 12741, 12743, 12745, 12747, 12749, 12751, 12753, 12755, 12757, 12759, 12761, 12763, 12765, 12767, 12769, 12771, 12773, 12775, 12777, 12779, 12781, 12783, 12785, 12787, 12789, 12791, 12793, 12795, 12797, 12799, 12801, 12803, 12805, 12807, 12809, 12811, 12813, 12815, 12817, 12819, 12821, 12823, 12825, 12827, 12829, 12831, 12833, 12835, 12837, 12839, 12841, 12843, 12845, 12847, 12849, 12851, 12853, 12855, 12857, 12859, 12861, 12863, 12865, 12867, 12869, 12871, 12873, 12875, 12877, 12879, 12881, 12883, 12885, 12887, 12889, 12891, 12893, 12895, 12897, 12899, 12901, 12903, 12905, 12907, 12909, 12911, 12913, 12915, 12917, 12919, 12921, 12923, 12925, 12927, 12929, 12931, 12933, 12935, 12937, 12939, 12941, 12943, 12945, 12947, 12949, 12951, 12953, 12955, 12957, 12959, 12961, 12963, 12965, 12967, 12969, 12971, 12973, 12975, 12977, 12979, 12981, 12983, 12985, 12987, 12989, 12991, 12993, 12995, 12997, 12999, 13001, 13003, 13005, 13007, 13009, 13011, 13013, 13015, 13017, 13019, 13021, 13023, 13025, 13027, 13029, 13031, 13033, 13035, 13037, 13039, 13041, 13043, 13045, 13047, 13049, 13051, 13053, 13055, 13057, 13059, 13061, 13063, 13065, 13067, 13069, 13071, 13073, 13075, 13077, 13079, 13081, 13083, 13085, 13087, 13089, 13091, 13093, 13095, 13097, 13099, 13101, 13103, 13105, 13107, 13109, 13111, 13113, 13115, 13117, 13119, 13121, 13123, 13125, 13127, 13129, 13131, 13133, 13135, 13137, 13139, 13141, 4588, 4589, 13145, 13147, 13149, 13151, 13153, 4610, 4611, 13157, 13159, 13161, 13163, 13165, 13167, 13169, 13171, 13173, 13175, 13177, 13179, 13181, 13183, 13185, 13187, 13189, 13191, 13193, 13195, 13197, 13199, 13201, 13203, 13205, 13207, 13209, 13211, 13213, 4743, 4744, 4747, 4748, 4751, 4752, 4755, 4756, 4759, 4760, 13225, 13227, 13229, 13231, 13233, 13235, 13237, 13239, 4815, 4816, 4818, 4819, 4820, 4821, 4829, 4830, 4832, 4833, 4834, 4835, 4838, 4841, 4844, 4845, 4848, 4849, 4866, 4869, 4872, 4873, 4876, 4877, 4878, 4879, 4880, 4881, 4888, 4889, 4890, 4891, 4892, 4893, 4894, 4895, 4896, 4897, 4898, 4899, 4900, 4901, 4902, 4903, 4904, 4905, 4906, 4907, 4910, 4911, 4916, 4917, 4920, 4921, 4928, 4929, 4930, 4931, 4932, 4933, 4935, 4936, 4939, 4940, 4945, 4946, 4947, 4949, 4950, 4952, 4953, 4954, 4955, 4956, 4957, 4958, 4959, 4964, 4965, 4969, 4970, 4971, 4972, 4982, 4984, 4987, 4990, 4998, 4999, 5002, 5003, 5006, 5007, 5010, 5011, 5030, 5031, 5034, 5035, 5051, 5052, 5053, 5054, 5055, 5056, 5065, 5066, 5067, 5068, 5069, 5070, 5074, 5075, 5078, 5079, 5082, 5083, 5086, 5087, 5094, 5095, 5098, 5099, 5102, 5103, 5106, 5107, 5110, 5111, 5114, 5115, 5118, 5119, 5122, 5123, 5130, 5131, 5134, 5135, 5138, 5139, 5140, 5141, 5143, 5144, 5151, 5152, 5159, 5160, 5161, 5162, 5165, 5166, 5176, 5177, 5183, 5184, 5195, 5196, 5199, 5200, 5201, 5202, 5204, 5205, 5209, 5210, 5211, 5212, 5213, 5214, 5219, 5220, 5222, 5223, 5225, 5226, 5227, 5228, 5231, 5232, 5237, 5238, 5243, 5244, 13426, 13428, 13430, 13432, 13434, 13436, 13438, 13440, 13442, 5309, 5312, 5337, 5338, 13448, 13450, 13452, 13454, 13456, 13458, 13460, 13462, 13464, 13466, 13468, 13470, 13472, 13474, 13476, 13478, 13480, 13482, 13484, 13486, 5441, 5442, 5464, 5465, 13492, 13494, 13496, 13498, 13500, 13502, 13504, 13506, 13508, 13510, 13512, 5530, 5531, 5535, 5536, 13518, 13520, 13522, 13524, 13526, 13528, 13530, 13532, 13534, 13536, 13538, 13540, 13542, 13544, 13546, 13548, 5607, 5608, 5609, 5610, 5637, 5638, 5643, 5644, 5647, 5648, 5653, 5654, 5655, 5656, 5657, 5658, 5661, 5662, 5667, 5668, 5677, 5678, 5681, 5682, 5686, 5687, 5692, 5693, 5697, 5698, 5701, 5702, 5709, 5710, 5713, 5716, 5721, 5722, 5724, 5725, 5726, 5727, 5728, 5729, 5743, 5744, 5747, 5748, 5751, 5752, 5753, 5754, 5761, 5762, 5763, 5764, 5765, 5766, 5768, 5769, 5770, 5771, 5775, 5776, 5777, 5778, 5779, 5780, 5781, 5782, 5785, 5786, 5789, 5790, 5793, 5794, 5795, 5796, 5799, 5800, 5801, 5802, 5811, 5812, 5814, 5815, 5819, 5820, 5821, 5822, 5827, 5828, 5835, 5836, 5840, 5841, 5844, 5845, 5870, 5871, 5872, 5873, 5878, 5879, 5904, 5905, 5924, 5925, 5937, 5938, 5941, 5942, 5945, 5946, 5949, 5950, 5951, 5952, 5957, 5958, 5963, 5964, 5967, 5968, 5983, 5984, 5987, 5988, 5989, 5990, 5993, 5994, 5997, 5998, 6023, 6024, 6049, 6050, 13688, 13690, 13692, 13694, 13696, 13698, 13700, 13702, 13704, 6107, 6108, 13708, 13710, 13712, 13714, 13716, 13718, 13720, 13722, 6141, 6142, 6148, 6149, 6152, 6153, 13730, 13732, 6165, 6166, 6169, 6170, 13738, 13740, 13742, 13744, 13746, 13748, 13750, 13752, 6226, 6227, 6246, 6247, 6268, 6269, 13760, 13762, 13764, 13766, 13768, 13770, 13772, 13774, 6313, 6314, 6315, 6316, 6318, 6319, 6320, 6321, 6326, 6336, 6337, 6338, 6339, 6340, 6348, 6349, 6350, 6351, 6352, 6360, 6361, 6362, 6363, 6364, 6365, 6369, 6370, 6371, 6372, 6404, 6421, 6422, 6425, 6426, 6461, 6462, 6463, 6464, 6470, 6471, 6473, 6474, 6475, 6476, 6481, 6482, 6489, 6490, 6495, 6496, 6499, 6500, 6503, 6504, 6509, 6510, 6515, 6518, 6519, 6520, 6522, 6523, 6526, 6527, 6530, 6531, 6536, 6537, 6538, 6539, 6540, 6541, 6542, 6543, 6551, 6552, 6558, 6559, 6562, 6563, 6566, 6567, 6570, 6571, 6574, 6575, 6578, 6579, 6582, 6583, 6590, 6591, 6593, 6594, 6598, 6599, 6602, 6603, 6606, 6607, 6610, 6611, 6614, 6615, 6618, 6619, 6620, 6621, 6630, 6631, 6634, 6635, 6640, 6641, 6645, 6646, 6650, 6651, 6655, 6657, 6665, 6666, 6668, 6669, 6670, 6671, 6677, 6680, 6681, 6682, 6684, 6685, 6686, 6687, 6688, 6689, 6692, 6693, 6696, 6697, 6700, 6701, 6704, 6705, 6712, 6715, 6718, 6719, 6722, 6723, 6751, 6754, 6756, 6758, 6763, 6766, 6770, 6771, 6776, 6777, 6778, 6779, 6780, 6784, 6785, 6786, 6791, 6792, 6795, 6796, 6799, 6800, 6803, 6804, 6807, 6808, 6813, 6814, 6819, 6820, 6823, 6824, 6827, 6828, 6831, 6834, 6837, 6838, 6841, 6842, 6843, 6844, 6846, 6847, 6851, 6854, 6857, 6860, 6861, 6862, 6863, 6867, 6868, 6871, 6872, 6874, 6876, 6877, 6879, 6880, 6884, 6887, 6888, 6889, 6894, 6895, 13992, 13994, 13996, 6934, 6935, 6938, 6939, 14002, 14004, 14006, 14008, 14010, 14012, 14014, 14016, 14018, 14020, 14022, 14024, 14026, 7017, 7018, 7034, 7037, 7040, 7043, 7045, 7046, 7049, 7052, 7055, 7058, 7061, 7064, 7067, 7070, 14044, 14046, 14048, 14050, 14052, 14054, 14056, 14058, 14060, 14062, 14064, 14066, 14068, 14070, 14072, 14074, 14076, 14078, 14080, 14082, 14084, 14086, 14088, 14090, 14092, 14094, 14096, 14098, 14100, 7257, 7258, 7259, 7260, 14106, 7297, 7298, 14110, 14112, 7310, 7311, 14116, 7321, 7322, 7323, 7324, 14122, 14124, 14126, 14128, 14130, 14132, 14134, 14136, 7701, 7704, 14140, 14142, 7721, 7722, 7723, 7724, 7727, 7728, 7729, 7730, 14152, 14154, 14156, 14158, 7775, 7776, 7777, 7778, 7784, 7789, 7790, 7791, 7792, 7798, 14170, 7901, 7902, 7910, 7911, 14176, 14178, 14180, 7926, 7927, 7935, 7936, 7937, 7938, 7939, 7940, 7941, 7942, 7945, 7946, 14194, 14196, 14198, 14200, 14202, 14204, 14206, 8457, 8458, 8459, 14211, 14213, 14215, 14217, 8495, 8496, 14221, 14223, 8591, 8592, 8593, 8594, 14229, 8603, 14232, 14234, 14236, 14238, 14240, 14242, 14244, 14246, 8693, 8694, 8695, 8696, 8697, 8698, 8703, 8708, 14256, 14258, 14260, 14262, 14264, 14266, 9068, 9069, 9073, 9074, 14272, 14274, 14276, 14278, 9115, 9116, 9117, 9125, 9126, 9127, 9128, 14287, 14289, 14291, 14293, 14295, 14297, 14299, 14301, 9213, 9222, 9225, 9228, 9232, 9233, 9234, 9610, 9611, 9791, 9801, 9980, 9981, 9983, 9984, 9988, 9989, 9991, 9992, 10007, 10009, 10011, 10013, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 15452, 15459, 14337, 14336, 14338, 14340, 14339, 14341, 14343, 14342, 14345, 14344, 14347, 14346, 14348, 14350, 14349, 15490, 14352, 14351, 15492, 14354, 14353, 15494, 14356, 14355, 15496, 14358, 14357, 15498, 14360, 14359, 14362, 14361, 14364, 14363, 14366, 14365, 14368, 14367, 14370, 14369, 14371, 14372, 14374, 14373, 14375, 14377, 14376, 14379, 14378, 15508, 14380, 15510, 15512, 14382, 14381, 14383, 14385, 14384, 14387, 14386, 15514, 14388, 15516, 15518, 14409, 14389, 15070, 14390, 14411, 14391, 15522, 14413, 14392, 15524, 14394, 14393, 14395, 14397, 14396, 14399, 14398, 15067, 15066, 14452, 14877, 14400, 15065, 15064, 14409, 14408, 15070, 15069, 14411, 14410, 15528, 14413, 14412, 15530, 15532, 15534, 14402, 14401, 14404, 14403, 14795, 14405, 15536, 15538, 15540, 15542, 15544, 15546, 15548, 15550, 15552, 15554, 14407, 14406, 15556, 14409, 14408, 14411, 14410, 15558, 14413, 14412, 15560, 14415, 14414, 14417, 14416, 14419, 14418, 15562, 15564, 15566, 14420, 15568, 14422, 14421, 15570, 14424, 14423, 14426, 14425, 15573, 14427, 15575, 14428, 15577, 15579, 15581, 15583, 14430, 14429, 15212, 15159, 15585, 14431, 14433, 14432, 15587, 15589, 14435, 14434, 14437, 14436, 14439, 14438, 14441, 14440, 14442, 14443, 14445, 14444, 14447, 14446, 14449, 14448, 14451, 14450, 14452, 14454, 14453, 15595, 14456, 14455, 15597, 14458, 14457, 15599, 14460, 14459, 15601, 14462, 14461, 14464, 14463, 14466, 14465, 14467, 14468, 14469, 14470, 14472, 14471, 14474, 14473, 14476, 14475, 14478, 14477, 15603, 14480, 14479, 15605, 14482, 14481, 14483, 14484, 14486, 14485, 14488, 14487, 14490, 14489, 14491, 14493, 14492, 14495, 14494, 15607, 15609, 15611, 14496, 14498, 14497, 14499, 14501, 14500, 14503, 14502, 15613, 15615, 15617, 14504, 14506, 14505, 15619, 14508, 14507, 15621, 14510, 14509, 15623, 14512, 14511, 15625, 15080, 14513, 14514, 14515, 14517, 14516, 15627, 14519, 14518, 15629, 14521, 14520, 15631, 14523, 14522, 15633, 14525, 14524, 15635, 14527, 14526, 15637, 14529, 14528, 15639, 14531, 14530, 15641, 14533, 14532, 14535, 14534, 14537, 14536, 15643, 14539, 14538, 15645, 14541, 14540, 15647, 15649, 14542, 15651, 14544, 14543, 14546, 14545, 14548, 14547, 15653, 14550, 14549, 14552, 14551, 14554, 14553, 15655, 15657, 14556, 14555, 15659, 14558, 14557, 14560, 14559, 14562, 14561, 14564, 14563, 14565, 15661, 14567, 14566, 14569, 14568, 14570, 15663, 14572, 14571, 14574, 14573, 14576, 14575, 14578, 14577, 14580, 14579, 15665, 14582, 14581, 15667, 15669, 14583, 15671, 14584, 14586, 14585, 15673, 15675, 15677, 14588, 14587, 15148, 14589, 15679, 14590, 15681, 14591, 15683, 15685, 14592, 14593, 15687, 14595, 14594, 14597, 14596, 15689, 14599, 14598, 14601, 14600, 15691, 14602, 14604, 14603, 14606, 14605, 14608, 14607, 14610, 14609, 14961, 14960, 14611, 15374, 15413, 15375, 15438, 15437, 15440, 15439, 14613, 14612, 14615, 14614, 15401, 15441, 15443, 14617, 14616, 14619, 14618, 14621, 14620, 14623, 14622, 15410, 15409, 14624, 14626, 14625, 14628, 14627, 14652, 14651, 15440, 14979, 14630, 14629, 14632, 14631, 15445, 14633, 14634, 14636, 14635, 15704, 15407, 14961, 14649, 15389, 14977, 14650, 15438, 15437, 15439, 15392, 15374, 15413, 14637, 14639, 14638, 14641, 14640, 14643, 14642, 14645, 14644, 14646, 15726, 15407, 14648, 14649, 14977, 15409, 14650, 14652, 14651, 15440, 14979, 14653, 15412, 14654, 14656, 14655, 14658, 14657, 14660, 14659, 14661, 14662, 15728, 14665, 14664, 14667, 14666, 14669, 14668, 14671, 14670, 14673, 14672, 14675, 14674, 14677, 14676, 14679, 14678, 14680, 14682, 14681, 15741, 14684, 14683, 14685, 15743, 14686, 14819, 14772, 14687, 14688, 15761, 15763, 14690, 14689, 14692, 14691, 14693, 14695, 14694, 14697, 14696, 14699, 14698, 14700, 14701, 14702, 14703, 14705, 14704, 14707, 14706, 15274, 14709, 14708, 14710, 14711, 14713, 14712, 15765, 14715, 14714, 14717, 14716, 15767, 14719, 14718, 15769, 14720, 14721, 14723, 14722, 15771, 15773, 15775, 14725, 14724, 15777, 14727, 14726, 14729, 14728, 15779, 14731, 14730, 14732, 14734, 14733, 14735, 14737, 14736, 15781, 14739, 14738, 15783, 14740, 14742, 14741, 15785, 15268, 15275, 14743, 14744, 15787, 14745, 14746, 14747, 15789, 14749, 14748, 15791, 14751, 14750, 14753, 14752, 14755, 14754, 15793, 14757, 14756, 14759, 14758, 14761, 14760, 14763, 14762, 15797, 14764, 15799, 15801, 15803, 14766, 14765, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14775, 14774, 14777, 14776, 15805, 14779, 14778, 15807, 14781, 14780, 15809, 15811, 14783, 14782, 14785, 14784, 14787, 14786, 15813, 15815, 15817, 14788, 15819, 15821, 14790, 14789, 14791, 15823, 15825, 15827, 15829, 14793, 14792, 15831, 14794, 14795, 15833, 14797, 14796, 15835, 15837, 14799, 14798, 15839, 15841, 14801, 14800, 14803, 14802, 14804, 14806, 14805, 14807, 15843, 14808, 15845, 14809, 14811, 14810, 15847, 15849, 14813, 14812, 14815, 14814, 15851, 14817, 14816, 14818, 15121, 14819, 14820, 15853, 14822, 14821, 14823, 15855, 14825, 14824, 15857, 14827, 14826, 14828, 14830, 14829, 14832, 14831, 14834, 14833, 14836, 14835, 14838, 14837, 14839, 14841, 14840, 14843, 14842, 14845, 14844, 14847, 14846, 14849, 14848, 15859, 15861, 14851, 14850, 14853, 14852, 15863, 14855, 14854, 14857, 14856, 14859, 14858, 14861, 14860, 14863, 14862, 14865, 14864, 14866, 14867, 14868, 14869, 14870, 14872, 14871, 14873, 14875, 14874, 14877, 14876, 15865, 14879, 14878, 14880, 14881, 14883, 14882, 14884, 14886, 14885, 14887, 14888, 14889, 14890, 14892, 14891, 14894, 14893, 14895, 15867, 14897, 14896, 14899, 14898, 14900, 14901, 14902, 14904, 14903, 14906, 14905, 15869, 14908, 14907, 15871, 14910, 14909, 15873, 14912, 14911, 15875, 15877, 14913, 14914, 14916, 14915, 15879, 14918, 14917, 14920, 14919, 15881, 14922, 14921, 15883, 14924, 14923, 14926, 14925, 14928, 14927, 15194, 14929, 14931, 14930, 14933, 14932, 14935, 14934, 15885, 14937, 14936, 15887, 15889, 14939, 14938, 15891, 14941, 14940, 15893, 15360, 15359, 15362, 15361, 15367, 14942, 15369, 15368, 15372, 15371, 15374, 15373, 14943, 15440, 15439, 15377, 15376, 15379, 15378, 14946, 15442, 15443, 15365, 14944, 15895, 15360, 15359, 15362, 15361, 15367, 15366, 15369, 15368, 15372, 15371, 15374, 14945, 15375, 15440, 15439, 15377, 15376, 15379, 15378, 14946, 15442, 14947, 15383, 15382, 15897, 15385, 15384, 15387, 15386, 15389, 15388, 14948, 15391, 15390, 15393, 15392, 15395, 15394, 15396, 14949, 15399, 15401, 15403, 14951, 14950, 15908, 15918, 14952, 14954, 14953, 14956, 14955, 15920, 15398, 14957, 15922, 14973, 14959, 15926, 15405, 15404, 15928, 14961, 14960, 14962, 14964, 14963, 15385, 15384, 15387, 15386, 15389, 15388, 14969, 15391, 15390, 15393, 15392, 15395, 15394, 14972, 15397, 15442, 14966, 14965, 15938, 15385, 14967, 15387, 15386, 14968, 14976, 14969, 15390, 14970, 15393, 15392, 15394, 14971, 14972, 15399, 15401, 14974, 14973, 15940, 15385, 14975, 15387, 15386, 14977, 14976, 15411, 15438, 14978, 15440, 14979, 15374, 15413, 15396, 14980, 14981, 14982, 15400, 14984, 14983, 15942, 14986, 14985, 14987, 14989, 14988, 14990, 14992, 14991, 15952, 15954, 14993, 15956, 15958, 14995, 14994, 14996, 14997, 14999, 14998, 15001, 15000, 15003, 15002, 15005, 15004, 15006, 15961, 15963, 15008, 15007, 15010, 15009, 15012, 15011, 15013, 15966, 15968, 15015, 15014, 15016, 15018, 15017, 15020, 15019, 15971, 15973, 15975, 15021, 15023, 15022, 15977, 15979, 15025, 15024, 15026, 15028, 15027, 15029, 15031, 15030, 15033, 15032, 15035, 15034, 15037, 15036, 15039, 15038, 15041, 15040, 15043, 15042, 15045, 15044, 15047, 15046, 15049, 15048, 15050, 15051, 15052, 15054, 15053, 15056, 15055, 15058, 15057, 15060, 15059, 15061, 15063, 15062, 15065, 15064, 15067, 15066, 15068, 15070, 15069, 15982, 15072, 15071, 15984, 15074, 15073, 15076, 15075, 15078, 15077, 15080, 15079, 15082, 15081, 15084, 15083, 15086, 15085, 15087, 15088, 15089, 15091, 15090, 15093, 15092, 15094, 15095, 15097, 15096, 15098, 15100, 15099, 15102, 15101, 15103, 15105, 15104, 15106, 15986, 15988, 15108, 15107, 15110, 15109, 15111, 15990, 15112, 15992, 15994, 15114, 15113, 15116, 15115, 15996, 15117, 15119, 15118, 15121, 15120, 15122, 15998, 15123, 15125, 15124, 15126, 16000, 15128, 15127, 16002, 15130, 15129, 16004, 15132, 15131, 15134, 15133, 16006, 15136, 15135, 15138, 15137, 15140, 15139, 16010, 15141, 16012, 15143, 15142, 16014, 15145, 15144, 16016, 15313, 15146, 15148, 15147, 16018, 16021, 16024, 15149, 15151, 15150, 15152, 15153, 15154, 15155, 16026, 15157, 15156, 15158, 15159, 15160, 16028, 15162, 15161, 16030, 15164, 15163, 16032, 15166, 15165, 16034, 15168, 15167, 16036, 15170, 15169, 16038, 15172, 15171, 16040, 15174, 15173, 15175, 15177, 15176, 15178, 16042, 15179, 16044, 15180, 15182, 15181, 16046, 15184, 15183, 16048, 15186, 15185, 16050, 15188, 15187, 16052, 15190, 15189, 16054, 15192, 15191, 16056, 16058, 15194, 15193, 15196, 15195, 15197, 15198, 15199, 15200, 16060, 15202, 15201, 16062, 15203, 15204, 15205, 15206, 16064, 15208, 15207, 15209, 16066, 15211, 15210, 15212, 16068, 15214, 15213, 15215, 15216, 15218, 15217, 15219, 15221, 15220, 15223, 15222, 16072, 15224, 16074, 16076, 15226, 15225, 15227, 15229, 15228, 15231, 15230, 16080, 15232, 16082, 16085, 15234, 15233, 16088, 15236, 15235, 16090, 15238, 15237, 16092, 15240, 15239, 16094, 15242, 15241, 15244, 15243, 15246, 15245, 15248, 15247, 15250, 15249, 16098, 15252, 15251, 16100, 15254, 15253, 15255, 15256, 15257, 15258, 15259, 15261, 15260, 15262, 15264, 15263, 15266, 15265, 15268, 15267, 15270, 15269, 15272, 15271, 15273, 15275, 15274, 15277, 15276, 15279, 15278, 15281, 15280, 15282, 15283, 15284, 15285, 15287, 15286, 15289, 15288, 15291, 15290, 15292, 16108, 15294, 15293, 15296, 15295, 16110, 15297, 15299, 15298, 16116, 15301, 15300, 15303, 15302, 16118, 15305, 15304, 16120, 15307, 15306, 16122, 15309, 15308, 16124, 15311, 15310, 16126, 15313, 15312, 15315, 15314, 16128, 15317, 15316, 15319, 15318, 16130, 15321, 15320, 16132, 15323, 15322, 16134, 15325, 15324, 15327, 15326, 15329, 15328, 16138, 15331, 15330, 16140, 16142, 15332, 16144, 15333, 15335, 15334, 15337, 15336, 15339, 15338, 15341, 15340, 15342, 15344, 15343, 16153, 15346, 15345, 16155, 15347, 15348, 16158, 15349, 16160, 15350, 15352, 15351, 15354, 15353, 16164, 15356, 15355, 15358, 15357, 16166, 15360, 15359, 15362, 15361, 15363, 15365, 15364, 15367, 15366, 15369, 15368, 15389, 15388, 15370, 15372, 15371, 15374, 15373, 15375, 15377, 15376, 15379, 15378, 15381, 15380, 16171, 15383, 15382, 16173, 15385, 15384, 15387, 15386, 15389, 15388, 15411, 15391, 15390, 15393, 15392, 15395, 15394, 15396, 15398, 15397, 15400, 15399, 15402, 15401, 15403, 15405, 15404, 16188, 15407, 15406, 15408, 15410, 15409, 15411, 15438, 15437, 15440, 15439, 15413, 15412, 15414, 15416, 15415, 15418, 15417, 15420, 15419, 15422, 15421, 15423, 16194, 15426, 15425, 15428, 15427, 15430, 15429, 15432, 15431, 15434, 15433, 15436, 15435, 15438, 15437, 15440, 15439, 15442, 15441, 15443, 15445, 15444, 15446, 15448, 15447, 15450, 15449, 15454, 15453, 15456, 15455, 15457, 16113, 16113, 15461, 15460, 15462, 15464, 15463, 15466, 15465, 15468, 15467, 15470, 15469, 15471, 15472, 15473, 16233, 16235, 15475, 15474, 15476, 16214, 15477, 15478, 16214, 15479, 15485, 15484, 15480, 15481, 15483, 15482, 15485, 15484, 15486, 15488, 15487, 16238, 15499, 15501, 15500, 16242, 15502, 15504, 15503, 15505, 15506, 16245, 16113, 16113, 16113, 16113, 16114, 16114, 16151, 16151, 16151, 16151, 16113, 16113, 16151, 16151, 16151, 16151, 15693, 15692, 15695, 15694, 15697, 15696, 15699, 15698, 15700, 15706, 15705, 15708, 15707, 15710, 15709, 15712, 15711, 15714, 15713, 15715, 15716, 15717, 15718, 16261, 16263, 15720, 15719, 16265, 16267, 15721, 15723, 15722, 15724, 16273, 16275, 16218, 16217, 15753, 15751, 15729, 15730, 15731, 15732, 15733, 16278, 16280, 16218, 15734, 15735, 15752, 15736, 15737, 15739, 15738, 16284, 15745, 15744, 15747, 15746, 15748, 15749, 15750, 16286, 15751, 15752, 16291, 16218, 16217, 15753, 15755, 15754, 15757, 15756, 16293, 16295, 16297, 16299, 15759, 15758, 16151, 16151, 16151, 16151, 16113, 16113, 16114, 16114, 16114, 16114, 16113, 16113, 16113, 16113, 16114, 16114, 16151, 16151, 16151, 16151, 16310, 15899, 15898, 15900, 15902, 15901, 15904, 15903, 15906, 15905, 16317, 15910, 15909, 15911, 15912, 15914, 15913, 15916, 15915, 16321, 16323, 15924, 15923, 15930, 15929, 15932, 15931, 15933, 15935, 15934, 15936, 16337, 16339, 15943, 15944, 15946, 15945, 15947, 15948, 15950, 15949, 16113, 16113, 16113, 16113, 16114, 16114, 16151, 16151, 16113, 16113, 16151, 16151, 16349, 16168, 16167, 16169, 16351, 16357, 16175, 16174, 16177, 16176, 16179, 16178, 16180, 16360, 16362, 16182, 16181, 16183, 16185, 16184, 16186, 16212, 16203, 16214, 16204, 16216, 16215, 16218, 16217, 16219, 16206, 16205, 16207, 16209, 16208, 16210, 16212, 16211, 16214, 16213, 16216, 16215, 16218, 16217, 16219, 16221, 16220, 16222, 16224, 16223, 16225, 16347, 16343, 16342, 16226, 16346, 16227, 16229, 16228, 16230, 16231, 16330, 16331, 16332, 16333, 16236, 16240, 16369, 16370, 16239, 16366, 16332, 16333, 16367, 16240, 16369, 16370, 16243, 16346, 16345, 16248, 16343, 16249, 16344, 16251, 16250, 16252, 16254, 16253, 16255, 16258, 16259, 16332, 16314, 16367, 16368, 16369, 16370, 16268, 16269, 16313, 16270, 16315, 16368, 16369, 16271, 16282, 16313, 16314, 16288, 16287, 16289, 16379, 16300, 16300, 16301, 16301, 16303, 16302, 16305, 16304, 16307, 16306, 16308, 16312, 16331, 16313, 16314, 16315, 16368, 16369, 16370, 16318, 16319, 16326, 16327, 16328, 16329, 16326, 16327, 16328, 16329, 16324, 16331, 16332, 16333, 16325, 16326, 16327, 16328, 16329, 16330, 16331, 16332, 16333, 16334, 16343, 16342, 16344, 16346, 16345, 16347, 16383, 16352, 16385, 16353, 16387, 16354, 16389, 16355, 16363, 16364, 16365, 16366, 16367, 16368, 16369, 16370, 16371, 16371, 16376, 16376, 16380, 16380, 16381, 16381, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 4668, 4669, 4670, 4671, 4672, 4673, 4674, 4675, 4676, 4677, 4678, 4679, 4680, 4741, 4742, 4745, 4746, 4749, 4750, 4753, 4754, 4757, 4758, 4761, 4762, 4763, 4764, 4765, 4766, 4767, 4768, 4769, 4770, 4771, 4772, 4773, 4774, 4808, 4809, 4810, 4811, 4812, 4813, 4814, 4817, 4822, 4823, 4824, 4825, 4826, 4827, 4828, 4831, 4836, 4837, 4839, 4840, 4842, 4843, 4846, 4847, 4850, 4851, 4852, 4853, 4854, 4855, 4856, 4857, 4858, 4859, 4860, 4861, 4862, 4863, 4864, 4865, 4867, 4868, 4870, 4871, 4874, 4875, 4882, 4883, 4884, 4885, 4886, 4887, 4908, 4909, 4912, 4913, 4914, 4915, 4918, 4919, 4922, 4923, 4924, 4925, 4926, 4927, 4934, 4937, 4938, 4941, 4942, 4943, 4944, 4948, 4951, 4960, 4961, 4962, 4963, 4966, 4967, 4968, 4973, 4974, 4975, 4976, 4977, 4978, 4979, 4980, 4981, 4983, 4985, 4986, 4988, 4989, 4991, 4992, 4993, 4994, 4995, 4996, 4997, 5000, 5001, 5004, 5005, 5008, 5009, 5012, 5013, 5014, 5015, 5016, 5017, 5018, 5019, 5020, 5021, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5032, 5033, 5036, 5037, 5038, 5039, 5040, 5041, 5042, 5043, 5044, 5045, 5046, 5047, 5048, 5049, 5050, 5057, 5058, 5059, 5060, 5061, 5062, 5063, 5064, 5071, 5072, 5073, 5076, 5077, 5080, 5081, 5084, 5085, 5088, 5089, 5090, 5091, 5092, 5093, 5096, 5097, 5100, 5101, 5104, 5105, 5108, 5109, 5112, 5113, 5116, 5117, 5120, 5121, 5124, 5125, 5126, 5127, 5128, 5129, 5132, 5133, 5136, 5137, 5142, 5145, 5146, 5147, 5148, 5149, 5150, 5153, 5154, 5155, 5156, 5157, 5158, 5163, 5164, 5167, 5168, 5169, 5170, 5171, 5172, 5173, 5174, 5175, 5178, 5179, 5180, 5181, 5182, 5185, 5186, 5187, 5188, 5189, 5190, 5191, 5192, 5193, 5194, 5197, 5198, 5203, 5206, 5207, 5208, 5215, 5216, 5217, 5218, 5221, 5224, 5229, 5230, 5233, 5234, 5235, 5236, 5239, 5240, 5241, 5242, 5245, 5246, 5247, 5248, 5249, 5286, 5287, 5288, 5289, 5290, 5291, 5292, 5293, 5294, 5295, 5296, 5297, 5298, 5299, 5300, 5301, 5302, 5303, 5304, 5305, 5306, 5307, 5308, 5310, 5311, 5313, 5314, 5315, 5316, 5317, 5318, 5319, 5320, 5321, 5322, 5323, 5324, 5325, 5326, 5327, 5328, 5329, 5330, 5331, 5332, 5333, 5334, 5335, 5336, 5419, 5420, 5421, 5422, 5423, 5424, 5425, 5426, 5427, 5428, 5429, 5430, 5431, 5432, 5433, 5434, 5435, 5436, 5437, 5438, 5439, 5440, 5443, 5444, 5445, 5446, 5447, 5448, 5449, 5450, 5451, 5452, 5453, 5454, 5455, 5456, 5457, 5458, 5459, 5460, 5461, 5462, 5463, 5466, 5467, 5468, 5469, 5470, 5471, 5472, 5473, 5474, 5475, 5476, 5477, 5523, 5524, 5525, 5526, 5527, 5528, 5529, 5532, 5533, 5534, 5537, 5538, 5539, 5540, 5541, 5611, 5612, 5613, 5614, 5615, 5616, 5617, 5618, 5619, 5620, 5621, 5622, 5623, 5624, 5625, 5626, 5627, 5628, 5629, 5630, 5631, 5632, 5633, 5634, 5635, 5636, 5639, 5640, 5641, 5642, 5645, 5646, 5649, 5650, 5651, 5652, 5659, 5660, 5663, 5664, 5665, 5666, 5669, 5670, 5671, 5672, 5673, 5674, 5675, 5676, 5679, 5680, 5683, 5684, 5685, 5688, 5689, 5690, 5691, 5694, 5695, 5696, 5699, 5700, 5703, 5704, 5705, 5706, 5707, 5708, 5711, 5712, 5714, 5715, 5717, 5718, 5719, 5720, 5723, 5730, 5731, 5732, 5733, 5734, 5735, 5736, 5737, 5738, 5739, 5740, 5741, 5742, 5745, 5746, 5749, 5750, 5755, 5756, 5757, 5758, 5759, 5760, 5767, 5772, 5773, 5774, 5783, 5784, 5787, 5788, 5791, 5792, 5797, 5798, 5803, 5804, 5805, 5806, 5807, 5808, 5809, 5810, 5813, 5816, 5817, 5818, 5823, 5824, 5825, 5826, 5829, 5830, 5831, 5832, 5833, 5834, 5837, 5838, 5839, 5842, 5843, 5846, 5847, 5848, 5849, 5850, 5851, 5852, 5853, 5854, 5855, 5856, 5857, 5858, 5859, 5860, 5861, 5862, 5863, 5864, 5865, 5866, 5867, 5868, 5869, 5874, 5875, 5876, 5877, 5880, 5881, 5882, 5883, 5884, 5885, 5886, 5887, 5888, 5889, 5890, 5891, 5892, 5893, 5894, 5895, 5896, 5897, 5898, 5899, 5900, 5901, 5902, 5903, 5906, 5907, 5908, 5909, 5910, 5911, 5912, 5913, 5914, 5915, 5916, 5917, 5918, 5919, 5920, 5921, 5922, 5923, 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, 5934, 5935, 5936, 5939, 5940, 5943, 5944, 5947, 5948, 5953, 5954, 5955, 5956, 5959, 5960, 5961, 5962, 5965, 5966, 5969, 5970, 5971, 5972, 5973, 5974, 5975, 5976, 5977, 5978, 5979, 5980, 5981, 5982, 5985, 5986, 5991, 5992, 5995, 5996, 5999, 6000, 6001, 6002, 6003, 6004, 6005, 6006, 6007, 6008, 6009, 6010, 6011, 6012, 6013, 6014, 6015, 6016, 6017, 6018, 6019, 6020, 6021, 6022, 6025, 6026, 6027, 6028, 6029, 6030, 6031, 6032, 6033, 6034, 6035, 6036, 6037, 6038, 6039, 6040, 6041, 6042, 6043, 6044, 6045, 6046, 6047, 6048, 6087, 6088, 6089, 6090, 6091, 6092, 6093, 6094, 6095, 6096, 6097, 6098, 6099, 6100, 6101, 6102, 6103, 6104, 6105, 6106, 6143, 6144, 6145, 6146, 6147, 6150, 6151, 6163, 6164, 6167, 6168, 6203, 6204, 6205, 6206, 6207, 6208, 6209, 6210, 6211, 6212, 6213, 6214, 6215, 6216, 6217, 6218, 6219, 6220, 6221, 6222, 6223, 6224, 6225, 6228, 6229, 6230, 6231, 6232, 6233, 6234, 6235, 6236, 6237, 6238, 6239, 6240, 6241, 6242, 6243, 6244, 6245, 6248, 6249, 6250, 6251, 6252, 6253, 6254, 6255, 6256, 6257, 6258, 6259, 6260, 6261, 6262, 6263, 6264, 6265, 6266, 6267, 6270, 6271, 6272, 6273, 6274, 6275, 6311, 6312, 6317, 6322, 6323, 6324, 6325, 6327, 6328, 6329, 6330, 6331, 6332, 6333, 6334, 6335, 6341, 6342, 6343, 6344, 6345, 6346, 6347, 6353, 6354, 6355, 6356, 6357, 6358, 6359, 6366, 6367, 6368, 6373, 6374, 6375, 6376, 6377, 6378, 6379, 6380, 6381, 6382, 6383, 6384, 6385, 6386, 6387, 6388, 6389, 6390, 6391, 6392, 6393, 6394, 6395, 6396, 6397, 6398, 6399, 6400, 6401, 6402, 6403, 6405, 6406, 6407, 6408, 6409, 6410, 6411, 6412, 6413, 6414, 6415, 6416, 6417, 6418, 6419, 6420, 6423, 6424, 6427, 6428, 6429, 6430, 6431, 6432, 6433, 6434, 6435, 6436, 6437, 6438, 6439, 6440, 6441, 6442, 6443, 6444, 6445, 6446, 6447, 6448, 6449, 6450, 6451, 6452, 6453, 6454, 6455, 6456, 6457, 6458, 6459, 6460, 6465, 6466, 6467, 6468, 6469, 6472, 6477, 6478, 6479, 6480, 6483, 6484, 6485, 6486, 6487, 6488, 6491, 6492, 6493, 6494, 6497, 6498, 6501, 6502, 6505, 6506, 6507, 6508, 6511, 6512, 6513, 6514, 6516, 6517, 6521, 6524, 6525, 6528, 6529, 6532, 6533, 6534, 6535, 6544, 6545, 6546, 6547, 6548, 6549, 6550, 6553, 6554, 6555, 6556, 6557, 6560, 6561, 6564, 6565, 6568, 6569, 6572, 6573, 6576, 6577, 6580, 6581, 6584, 6585, 6586, 6587, 6588, 6589, 6592, 6595, 6596, 6597, 6600, 6601, 6604, 6605, 6608, 6609, 6612, 6613, 6616, 6617, 6622, 6623, 6624, 6625, 6626, 6627, 6628, 6629, 6632, 6633, 6636, 6637, 6638, 6639, 6642, 6643, 6644, 6647, 6648, 6649, 6652, 6653, 6654, 6656, 6658, 6659, 6660, 6661, 6662, 6663, 6664, 6667, 6672, 6673, 6674, 6675, 6676, 6678, 6679, 6683, 6690, 6691, 6694, 6695, 6698, 6699, 6702, 6703, 6706, 6707, 6708, 6709, 6710, 6711, 6713, 6714, 6716, 6717, 6720, 6721, 6724, 6725, 6726, 6727, 6728, 6729, 6730, 6731, 6732, 6733, 6734, 6735, 6736, 6737, 6738, 6739, 6740, 6741, 6742, 6743, 6744, 6745, 6746, 6747, 6748, 6749, 6750, 6752, 6753, 6755, 6757, 6759, 6760, 6761, 6762, 6764, 6765, 6767, 6768, 6769, 6772, 6773, 6774, 6775, 6781, 6782, 6783, 6787, 6788, 6789, 6790, 6793, 6794, 6797, 6798, 6801, 6802, 6805, 6806, 6809, 6810, 6811, 6812, 6815, 6816, 6817, 6818, 6821, 6822, 6825, 6826, 6829, 6830, 6832, 6833, 6835, 6836, 6839, 6840, 6845, 6848, 6849, 6850, 6852, 6853, 6855, 6856, 6858, 6859, 6864, 6865, 6866, 6869, 6870, 6873, 6875, 6878, 6881, 6882, 6883, 6885, 6886, 6890, 6891, 6892, 6893, 6896, 6897, 6898, 6899, 6913, 6914, 6915, 6916, 6917, 6918, 6919, 6920, 6921, 6922, 6923, 6924, 6925, 6926, 6927, 6928, 6929, 6930, 6931, 6932, 6933, 6936, 6937, 6994, 6995, 6996, 6997, 6998, 6999, 7000, 7001, 7002, 7003, 7004, 7005, 7006, 7007, 7008, 7009, 7010, 7011, 7012, 7013, 7014, 7015, 7016, 7019, 7020, 7021, 7022, 7023, 7024, 7025, 7026, 7027, 7028, 7029, 7030, 7031, 7032, 7033, 7035, 7036, 7038, 7039, 7041, 7042, 7044, 7047, 7048, 7050, 7051, 7053, 7054, 7056, 7057, 7059, 7060, 7062, 7063, 7065, 7066, 7068, 7069, 7071, 7072, 7073, 7074, 7075, 7076, 7077, 7078, 7079, 7080, 7201, 7202, 7207, 7208, 7217, 16527, 16516, 7223, 7224, 16532, 16530, 7230, 7231, 7232, 7237, 7238, 7239, 7240, 7241, 7242, 7243, 7244, 7245, 7246, 7247, 7261, 7262, 7263, 7264, 7265, 7266, 7267, 7268, 7269, 7270, 7271, 7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7299, 7300, 7301, 7312, 7317, 7318, 7319, 7320, 16470, 16469, 16481, 16480, 16527, 16516, 7374, 7375, 16532, 16530, 16527, 16526, 7411, 7412, 7415, 7416, 16532, 16530, 16552, 16551, 7453, 7454, 7455, 7456, 16569, 16567, 16650, 16649, 16661, 16660, 7569, 7570, 7594, 7595, 7596, 7597, 7642, 7643, 7644, 7645, 7646, 7647, 7648, 7649, 7650, 7697, 7698, 7699, 7700, 7702, 7703, 7705, 7706, 7707, 7708, 7709, 7710, 7711, 7712, 7725, 7726, 7731, 7732, 7733, 7734, 7779, 7780, 7781, 7782, 7783, 7785, 7786, 7787, 7788, 7793, 7794, 7795, 7796, 7797, 7799, 7800, 7801, 17431, 17430, 17440, 17413, 16975, 17415, 7903, 7904, 7905, 7906, 7907, 7908, 7909, 7912, 7913, 7928, 7929, 7930, 7931, 7932, 7933, 7934, 7943, 7944, 17430, 16970, 17440, 16972, 16975, 17415, 16970, 17412, 16972, 16971, 17415, 17449, 16970, 17412, 16972, 16971, 16975, 17415, 8127, 8128, 8129, 8130, 17027, 17026, 8162, 8163, 8169, 8170, 8171, 8172, 8261, 8262, 8263, 8264, 8268, 8269, 8375, 8376, 8377, 8378, 8460, 8461, 8462, 8463, 8464, 8465, 8466, 8467, 8468, 8497, 8498, 8499, 8500, 8501, 8502, 8503, 8504, 8595, 8596, 8604, 8605, 8606, 8607, 8608, 8609, 8610, 8611, 8699, 8700, 8701, 8702, 8704, 8705, 8706, 8707, 17431, 17412, 17440, 17413, 17415, 17449, 17431, 17430, 17440, 17439, 17449, 17448, 8812, 8813, 8814, 8815, 8819, 8820, 8847, 8848, 17600, 17599, 17702, 17701, 17713, 17712, 8988, 8989, 9020, 9021, 9070, 9071, 9072, 9118, 9119, 9120, 9121, 9122, 9123, 9124, 9129, 9130, 9131, 9132, 9133, 9134, 9204, 9205, 9206, 9207, 9208, 9209, 9210, 9211, 9212, 9214, 9215, 9216, 9217, 9218, 9219, 9220, 9221, 9223, 9224, 9226, 9227, 9229, 9230, 9231, 9235, 9236, 9237, 9238, 9239, 9240, 9242, 9244, 9245, 9246, 9247, 9251, 9260, 9261, 9281, 9291, 17992, 17991, 9324, 9325, 9326, 9327, 9330, 9331, 9332, 9333, 18012, 9349, 9350, 9351, 9352, 9355, 9356, 9357, 9358, 18016, 9367, 18022, 9478, 9479, 9480, 9481, 9482, 9483, 9495, 9496, 9497, 9498, 9499, 9500, 9512, 9513, 9514, 9515, 9518, 9519, 9520, 9521, 18063, 18062, 18067, 18066, 9537, 9538, 9539, 9540, 9543, 9544, 9545, 9546, 18073, 18072, 18084, 18083, 9584, 9585, 9586, 18093, 18101, 9598, 9599, 9600, 18104, 18115, 18112, 18113, 18115, 18114, 9616, 9617, 9618, 9619, 9747, 9748, 9749, 9750, 9751, 9752, 9753, 18138, 9766, 9767, 9768, 9769, 9772, 9773, 9774, 9775, 18148, 9792, 9802, 9805, 9806, 9809, 9810, 18158, 18157, 9821, 9822, 9825, 9826, 9835, 9836, 9837, 9838, 9839, 9850, 9851, 9854, 9855, 9864, 9865, 9866, 9867, 9868, 18170, 18169, 9965, 9966, 9967, 9968, 9969, 9970, 18191, 18205, 18195, 9982, 9985, 9990, 9993, 18196, 18205, 18204, 10006, 10008, 10010, 10012, 10016, 10017, 10018, 10019, 10024, 10025, 10032, 10033, 10543, 10544, 10550, 10551, 28, 29, 30, 31, 18401, 18404, 18407, 18409, 18411, 18414, 18416, 18418, 18420, 18422, 18424, 18426, 18428, 18430, 18432, 18434, 18438, 18441, 18443, 18446, 18449, 18451, 18454, 18456, 18458, 18460, 18462, 18465, 18467, 18469, 18472, 18474, 18476, 18478, 18480, 18482, 18484, 18486, 18488, 18490, 18492, 18494, 18496, 18498, 18500, 18502, 18505, 18507, 18509, 18513, 18515, 18518, 18520, 18522, 18524, 18526, 18530, 18532, 18534, 18536, 18539, 18541, 18543, 18545, 18547, 18549, 18551, 18557, 18559, 18561, 18563, 18565, 18567, 18571, 18573, 18575, 18578, 18580, 18583, 18586, 18588, 18591, 18593, 18595, 18597, 18599, 18603, 18605, 18607, 18609, 18611, 18613, 18615, 18617, 18619, 18621, 18623, 18625, 18627, 18630, 18632, 18634, 18636, 18638, 18640, 18642, 18644, 18646, 18648, 18650, 18653, 18655, 18658, 18660, 18662, 18664, 18666, 18668, 18672, 18674, 18676, 18682, 18684, 18686, 18688, 18691, 18693, 18695, 18697, 18699, 18702, 18705, 18707, 18709, 18711, 18713, 18716, 18718, 18720, 18722, 18724, 18727, 18729, 18731, 18733, 18735, 18737, 18739, 18742, 18744, 18747, 18750, 18752, 18754, 18757, 18759, 18761, 18763, 18766, 18769, 18772, 18774, 18776, 18779, 18781, 18783, 18787, 18789, 18791, 18793, 18795, 18797, 18799, 18801, 18804, 18806, 18810, 18814, 18816, 18819, 18821, 18823, 18829, 18831, 18834, 18838, 18840, 18842, 18844, 18848, 18850, 18852, 18854, 18856, 18859, 18862, 18864, 18867, 18876, 18878, 18880, 18882, 18884, 18886, 18888, 18890, 18893, 18902, 18904, 18906, 18908, 18910, 18912, 18914, 18917, 18920, 18924, 18926, 18928, 18930, 18933, 18938, 18940, 18942, 18944, 18950, 18953, 18955, 18958, 18960, 18962, 18964, 18966, 18969, 18971, 18973, 18975, 18977, 18979, 18981, 18983, 18985, 18987, 18989, 18991, 18993, 19000, 19003, 19005, 19007, 19011, 19014, 19020, 19022, 19025, 19027, 19032, 19034, 19036, 19038, 19040, 19044, 19046, 19048, 19050, 19052, 19054, 19056, 19058, 19060, 19062, 19064, 19066, 19068, 19070, 19072, 19074, 19076, 19078, 19080, 19082, 19085, 19087, 19089, 19091, 19094, 19096, 19098, 19100, 19102, 19104, 19106, 19109, 19111, 19113, 19115, 19118, 19120, 19122, 19124, 19127, 19129, 19131, 19138, 19141, 19143, 19147, 19149, 19151, 19154, 19156, 19158, 19160, 19163, 19165, 19167, 19172, 19174, 19176, 19178, 19181, 19183, 19185, 19190, 19192, 19194, 19196, 19199, 19201, 19203, 19210, 19212, 19215, 19218, 19221, 19225, 19227, 19229, 19231, 19234, 19236, 19238, 19241, 19244, 19246, 19249, 19251, 19254, 19257, 19259, 19261, 19263, 19265, 19267, 19269, 19271, 19273, 19275, 19280, 19282, 19284, 19286, 19289, 19291, 19293, 19296, 19298, 19300, 19302, 19304, 19306, 19308, 19310, 19312, 19317, 19319, 19323, 19326, 19328, 19331, 19334, 19336, 19340, 19342, 19345, 19347, 19351, 19354, 19356, 19358, 19360, 19362, 19364, 19366, 19369, 19371, 19373, 19375, 19378, 19384, 19389, 19391, 19393, 19395, 19397, 19399, 19401, 19404, 19409, 19411, 19413, 19415, 19417, 19419, 19421, 19423, 19429, 19435, 19438, 19441, 19445, 19448, 19450, 19453, 19456, 19458, 19461, 19463, 19465, 19467, 19469, 19471, 19473, 19475, 19477, 19479, 19481, 19488, 19491, 19493, 19495, 19497, 19499, 19502, 19504, 19506, 19508, 19514, 19516, 19518, 19521, 19523, 19526, 19528, 19530, 19532, 19534, 19536, 19538, 19540, 19542, 19544, 19546, 19548, 19550, 19552, 19554, 19556, 19558, 19562, 19564, 19566, 19568, 19571, 19573, 19579, 19581, 19583, 19585, 19587, 19589, 19592, 19594, 19596, 19598, 19601, 19603, 19606, 19608, 19610, 19612, 19614, 19616, 19618, 19621, 19623, 19625, 19628, 19630, 19632, 19635, 19637, 19640, 19643, 19645, 19647, 19650, 19652, 19654, 19656, 19659, 19661, 19663, 19665, 19667, 19669, 19671, 19673, 19675, 19678, 19681, 19683, 19685, 19687, 7218, 7219, 17065, 16113, 16114, 16114, 7227, 7228, 19696, 19699, 19701, 19703, 19705, 19710, 19713, 19716, 19718, 19722, 19724, 19727, 18436, 18435, 19730, 19733, 7328, 7329, 16467, 7334, 7335, 16478, 7360, 7361, 17065, 16113, 19743, 16114, 16114, 7380, 7381, 17642, 7397, 7398, 16113, 16114, 7417, 7418, 16553, 7444, 7445, 16565, 16563, 19757, 19759, 16156, 16156, 7459, 7460, 18554, 19009, 18553, 19017, 18528, 18527, 18554, 19009, 18553, 18568, 19017, 16651, 7520, 7521, 16662, 7526, 7527, 19486, 19484, 19483, 19314, 19511, 17833, 17214, 16113, 16799, 17854, 17833, 17835, 19769, 19771, 17856, 17854, 18651, 18656, 16770, 16768, 16783, 16781, 19432, 18680, 18679, 17854, 16799, 19773, 19775, 19777, 19779, 19782, 19784, 19786, 19788, 19790, 19796, 19799, 18764, 18785, 19802, 19805, 19811, 19814, 19817, 7805, 7806, 7810, 7811, 17450, 7816, 7817, 19278, 19223, 19484, 17640, 16923, 19427, 18808, 18921, 19382, 19381, 19329, 19386, 19332, 17835, 17833, 18812, 18811, 19382, 19430, 17854, 17789, 19825, 19827, 19834, 19837, 19839, 19841, 7950, 7951, 7955, 7956, 17450, 7961, 7962, 19278, 18994, 18817, 18826, 18824, 18995, 18836, 18835, 8002, 8003, 8007, 8008, 17450, 8013, 8014, 19278, 19484, 18845, 8032, 8033, 8037, 8038, 17450, 8043, 8044, 19278, 18994, 18865, 19511, 19314, 17642, 17066, 19427, 19424, 18871, 19432, 19430, 19443, 19442, 17093, 17091, 19861, 19863, 16156, 16156, 19385, 19352, 19332, 8151, 8152, 17024, 18895, 18894, 19867, 18897, 18896, 16113, 18900, 18899, 19869, 19871, 18951, 19386, 19332, 17642, 17058, 19427, 19379, 18921, 19382, 19381, 19329, 19386, 19332, 17066, 17065, 19427, 19426, 18921, 19432, 19430, 18922, 19439, 17093, 17091, 18946, 18945, 19873, 19875, 18948, 18947, 16114, 18951, 19386, 19332, 19486, 18994, 19483, 18996, 18995, 19009, 19486, 19484, 19017, 19015, 17245, 17214, 16113, 16113, 17856, 17246, 17245, 17214, 19879, 19881, 17856, 17246, 17835, 17245, 19430, 19382, 17856, 17246, 19883, 19886, 19888, 19890, 19135, 19134, 19133, 19892, 19896, 19898, 19170, 19169, 19188, 19187, 19208, 19144, 19207, 19206, 19145, 19170, 19169, 19188, 19187, 19208, 19144, 19207, 19206, 19145, 19900, 19902, 19904, 19907, 19170, 19169, 19188, 19187, 19208, 19207, 19206, 19205, 19912, 19916, 8712, 8713, 8717, 8718, 17450, 8723, 8724, 19278, 19223, 19484, 8744, 8745, 8749, 8750, 17450, 8755, 8756, 19278, 19484, 19276, 19314, 19511, 17548, 17642, 17601, 17556, 19930, 19932, 16114, 19329, 19386, 19332, 17642, 17548, 17601, 17556, 16151, 19936, 16156, 16156, 19349, 19352, 19387, 17642, 17586, 17601, 8877, 8878, 19424, 19427, 19379, 19382, 19381, 19385, 19386, 19387, 17642, 17640, 19427, 19426, 19424, 19432, 19430, 19436, 19439, 19443, 19442, 8932, 8933, 17699, 8938, 8939, 17710, 19486, 19484, 19483, 19511, 19510, 19509, 17835, 17833, 16113, 16114, 16114, 17854, 17789, 17835, 17833, 16151, 16156, 16156, 17856, 17854, 19948, 19951, 19953, 19955, 19958, 19961, 19657, 19964, 19966, 19968, 19970, 19973, 19976, 19979, 19981, 19983, 19985, 19988, 19991, 19995, 19997, 20000, 19708, 19706, 19708, 19706, 9292, 9293, 19720, 19719, 19720, 19719, 9334, 19909, 19728, 19914, 19913, 9359, 19731, 19910, 19914, 19908, 19735, 19734, 9375, 20026, 20029, 19793, 19780, 20032, 20035, 19793, 19791, 9522, 9523, 19808, 19806, 9528, 9529, 9547, 9548, 19808, 19806, 9553, 9554, 9587, 19830, 19829, 9593, 19832, 19831, 20067, 9601, 9608, 9609, 9612, 9613, 9614, 20076, 20078, 20080, 20082, 20084, 9754, 9776, 19894, 19893, 9811, 9812, 19910, 19909, 19914, 19913, 19909, 19905, 19914, 19908, 9869, 9870, 19910, 19909, 19914, 19913, 20125, 20128, 9971, 9974, 9975, 9994, 9998, 9999, 20149, 20151, 20039, 19998, 20043, 20041, 20051, 20049, 20055, 20053, 20016, 20015, 20014, 20020, 20018, 20089, 20088, 20087, 20093, 20091, 20039, 20037, 20043, 20041, 20051, 20049, 20055, 20053, 20007, 20006, 20005, 20011, 20009, 20016, 20015, 20014, 20020, 20018, 20089, 20088, 20087, 20093, 20023, 20039, 20037, 20043, 20041, 20051, 20049, 20055, 20053, 20062, 20143, 20061, 20146, 20144, 18355, 18353, 18357, 18303, 20143, 20142, 20141, 20140, 20146, 20144, 20089, 20088, 20087, 20093, 20091, 16380, 16381, 20098, 20100, 20104, 20106, 20110, 20109, 20108, 20113, 20115, 20119, 20118, 20117, 18355, 18353, 18359, 18357, 20143, 20142, 20141, 20140, 20146, 20144, 28, 29, 30, 31, 20615, 20278, 20426, 20618, 7220, 20685, 17071, 7222, 7225, 7226, 20691, 20199, 20161, 20160, 20164, 20163, 20162, 20166, 20165, 20167, 20169, 20168, 20171, 20170, 20175, 20174, 20173, 20172, 7291, 7292, 20178, 20177, 20176, 7330, 20709, 20181, 20180, 20179, 7336, 20712, 20183, 20182, 20185, 20184, 20188, 20187, 20186, 20191, 20190, 20189, 20193, 20192, 20195, 20194, 20372, 20560, 20373, 20549, 20563, 20378, 20205, 20204, 20541, 7362, 20715, 20569, 20368, 20626, 20625, 20624, 20206, 20208, 20207, 17071, 20197, 20558, 7376, 20634, 7378, 7379, 20722, 20198, 17683, 20210, 16575, 20638, 20372, 20547, 20373, 20549, 20563, 20378, 20205, 20204, 20551, 7396, 20554, 20368, 20626, 20625, 20624, 20206, 20208, 20207, 17662, 20631, 20630, 7410, 20576, 7414, 20729, 20199, 17683, 20210, 16575, 20423, 20520, 20407, 20521, 20408, 20524, 20357, 20200, 20332, 20202, 20201, 20372, 20203, 20373, 20563, 20549, 20378, 20541, 20205, 20204, 7443, 20554, 20368, 20208, 20207, 20206, 7451, 7452, 20736, 7457, 7458, 20740, 20209, 17683, 20210, 16575, 20520, 20521, 20407, 20524, 20523, 20211, 20241, 20242, 20244, 20223, 20224, 20226, 7477, 7478, 7479, 20599, 20411, 20227, 20212, 20213, 20215, 7486, 7487, 7488, 20413, 20407, 20406, 20217, 20216, 20219, 20218, 20357, 20221, 20220, 20223, 20222, 20224, 20226, 7503, 7504, 7505, 20597, 20227, 20229, 20231, 20230, 20232, 7512, 7513, 20234, 20233, 20237, 20236, 20235, 7519, 20240, 20239, 20238, 7525, 20242, 20241, 20244, 20243, 20590, 20245, 7534, 7535, 7536, 20411, 20410, 20597, 20600, 20602, 7542, 7543, 20412, 20413, 20247, 20246, 20249, 20248, 20251, 20250, 17210, 20253, 20252, 20255, 20254, 20257, 20256, 20258, 20276, 20277, 7562, 7563, 20632, 20631, 20544, 20629, 7568, 7571, 7572, 20421, 16737, 20267, 20259, 20261, 20262, 20264, 20277, 20276, 7582, 7583, 20615, 20278, 20618, 20426, 20279, 16734, 20632, 20631, 20630, 20575, 20771, 7598, 7599, 20265, 16737, 20267, 20268, 7604, 20270, 7606, 20272, 20275, 20274, 20277, 20276, 7612, 7613, 20278, 20424, 20425, 20426, 20279, 7619, 7620, 20634, 20633, 7623, 7624, 7625, 16789, 20282, 16794, 20284, 7630, 7631, 20286, 20285, 20289, 20288, 20287, 20292, 20291, 20290, 20295, 20294, 20293, 20297, 20296, 20300, 20299, 20298, 20304, 20303, 20302, 20301, 20307, 20306, 20305, 20308, 20310, 20309, 20313, 20312, 20311, 20317, 20316, 20315, 20314, 7744, 20319, 20318, 20322, 20321, 20320, 20325, 20324, 20323, 7753, 20329, 20328, 20327, 20326, 20330, 20498, 20497, 20493, 20804, 20501, 20500, 20499, 20806, 20502, 20504, 20503, 7815, 20505, 20332, 20507, 20346, 20508, 20494, 20511, 20513, 20514, 20517, 20516, 7829, 7830, 7831, 20599, 20495, 20518, 20536, 20569, 20570, 20571, 20334, 17008, 20561, 20376, 20548, 20550, 20549, 20540, 20335, 20551, 7849, 7850, 20544, 20537, 7853, 7854, 7855, 20612, 20336, 7858, 7859, 17110, 7861, 17683, 7863, 17114, 7865, 20616, 20615, 20618, 20617, 20619, 17811, 20623, 20622, 20626, 20625, 20624, 20628, 20627, 7879, 7880, 20632, 20631, 20630, 20629, 7885, 7886, 20634, 20612, 7889, 7890, 7891, 7892, 20636, 20613, 17204, 20423, 20497, 20349, 20496, 20838, 20501, 20500, 20499, 20840, 20502, 20504, 20503, 7960, 20526, 20345, 20354, 20353, 20356, 20337, 20338, 20511, 20513, 7972, 7973, 7974, 20599, 20518, 20521, 20520, 20519, 20524, 20523, 20339, 20525, 20352, 20340, 7986, 7987, 20343, 20342, 18832, 20533, 20532, 7993, 7994, 7995, 20609, 20535, 20534, 20498, 20497, 20493, 20853, 20501, 20500, 20499, 20855, 20502, 20504, 20503, 8012, 20505, 20345, 20507, 20346, 20348, 20347, 20517, 20516, 8023, 8024, 8025, 20599, 20495, 20518, 20497, 20349, 20496, 20863, 20501, 20500, 20499, 20865, 20502, 20504, 20350, 8042, 20352, 20351, 20354, 20353, 20356, 20355, 20494, 20511, 20513, 8054, 8055, 8056, 20495, 20518, 20521, 20520, 20519, 20524, 20522, 20357, 20526, 20525, 20527, 18868, 20530, 18869, 20533, 20532, 8073, 8074, 20609, 20535, 20534, 20561, 20547, 20548, 20564, 20563, 20540, 20567, 20566, 8086, 8087, 20536, 20569, 20570, 20571, 20573, 20572, 17071, 20632, 20631, 20630, 20575, 8099, 8100, 8101, 20634, 20576, 8104, 8105, 17568, 8107, 8108, 20376, 20561, 20548, 20550, 20564, 20540, 20379, 20380, 8117, 8118, 20536, 20381, 20571, 20570, 20382, 17008, 20544, 20359, 20886, 20612, 20634, 8133, 8134, 17679, 8136, 17683, 8138, 17114, 8140, 20376, 20561, 20548, 20564, 20377, 20363, 20362, 20379, 20365, 20364, 8153, 20893, 20536, 20381, 20570, 20571, 20382, 17028, 8160, 8161, 8164, 8165, 8166, 8167, 8168, 20904, 17110, 8174, 17683, 8176, 17114, 8178, 20569, 20368, 20570, 20571, 20370, 20369, 17049, 20547, 20372, 20373, 20550, 20564, 20378, 20567, 20566, 8194, 8195, 20631, 20558, 8198, 8199, 8200, 20634, 20633, 8203, 8204, 17679, 8206, 17683, 8208, 17568, 8210, 20561, 20547, 20548, 20564, 20563, 20540, 20566, 20374, 8219, 8220, 20569, 20536, 20570, 20571, 20572, 20375, 17071, 20632, 20631, 20630, 20575, 8232, 8233, 8234, 20634, 20612, 8237, 8238, 17679, 8240, 17683, 8242, 20376, 20561, 20548, 20564, 20377, 20378, 20380, 20379, 8251, 8252, 20536, 20381, 20570, 20571, 20382, 17103, 8259, 8260, 20932, 8265, 8266, 8267, 17110, 8271, 17683, 8273, 17114, 8275, 20389, 20388, 20387, 20391, 20390, 20394, 20393, 20392, 20396, 20395, 20587, 20397, 20399, 20398, 20400, 20402, 20403, 20405, 8294, 8295, 8296, 20411, 20410, 20597, 20600, 20602, 8302, 8303, 20412, 20413, 20407, 20521, 20406, 20524, 20523, 20408, 20587, 20586, 20589, 20588, 20514, 20596, 8318, 8319, 8320, 20411, 20597, 20410, 20603, 20606, 20605, 8327, 8328, 20413, 20412, 20424, 20616, 20425, 20617, 20427, 17210, 20429, 20626, 20625, 20624, 20432, 20431, 8343, 8344, 20632, 20631, 20630, 20415, 8349, 8350, 8351, 8352, 20417, 20416, 17204, 20423, 20616, 20424, 20426, 20425, 20427, 17210, 20429, 20626, 20625, 20624, 20432, 20431, 8369, 8370, 20632, 20631, 20630, 20575, 20958, 8379, 8380, 20421, 17862, 20423, 20616, 20424, 20426, 20425, 20427, 17811, 20429, 20626, 20625, 20624, 20432, 20431, 8396, 8397, 20634, 20612, 8400, 8401, 8402, 8403, 20433, 17862, 20434, 20438, 20437, 20436, 20435, 20441, 20440, 20439, 20444, 20443, 20442, 20445, 20449, 20448, 20447, 20446, 20452, 20451, 20450, 20455, 20454, 20453, 20456, 20459, 20458, 20457, 20462, 20461, 20460, 8475, 8476, 8477, 20463, 20472, 20471, 20470, 20475, 20474, 20473, 8511, 8512, 20465, 20479, 20478, 20477, 20482, 20481, 20480, 8520, 8521, 20483, 20486, 20485, 20484, 20489, 20488, 20487, 8529, 8530, 8531, 8532, 20467, 20492, 20491, 20665, 20664, 20663, 20669, 20668, 20667, 20666, 8543, 20472, 20471, 20464, 20475, 20474, 20473, 8554, 8555, 20465, 20479, 20478, 20477, 20482, 20481, 20480, 8563, 8564, 20483, 20486, 20485, 20484, 20489, 20488, 20487, 8572, 8573, 8574, 8575, 20467, 20492, 20491, 20665, 20664, 20663, 20669, 20668, 20667, 20666, 8586, 20466, 20467, 20468, 20673, 20672, 20677, 20676, 20646, 20679, 20678, 20680, 20468, 20673, 20672, 20677, 20676, 20646, 20679, 20678, 20680, 20472, 20471, 20470, 20475, 20474, 20473, 8652, 8653, 20476, 20479, 20478, 20477, 20482, 20481, 20480, 8661, 8662, 20483, 20486, 20485, 20484, 20489, 20488, 20487, 8670, 8671, 8672, 8673, 20490, 20492, 20491, 20498, 20497, 20493, 21010, 20501, 20500, 20499, 21012, 20502, 20504, 20503, 8722, 20525, 20505, 20507, 20506, 20508, 20494, 20511, 20513, 20514, 20517, 20516, 8736, 8737, 8738, 20495, 20518, 20498, 20497, 20496, 21020, 20501, 20500, 20499, 21022, 20504, 20503, 20502, 8754, 20525, 20505, 20507, 20506, 20508, 20510, 20511, 20513, 20514, 20517, 20516, 8768, 8769, 8770, 20599, 20518, 20521, 20520, 20519, 20524, 20523, 20522, 20526, 20525, 20527, 20600, 20530, 20603, 20533, 20532, 8787, 8788, 20609, 20535, 20534, 20561, 20560, 20548, 20564, 20550, 20540, 20553, 20552, 20541, 8801, 8802, 20569, 20536, 20570, 20571, 20542, 8808, 8809, 20544, 20537, 21036, 20612, 20634, 8818, 17679, 8822, 17683, 8824, 17568, 8826, 20547, 20561, 20548, 20564, 20550, 20540, 20553, 20552, 20541, 8836, 8837, 20569, 20568, 20571, 20555, 20542, 8843, 8844, 20545, 20544, 8849, 20612, 20634, 8852, 8853, 17563, 8855, 17683, 8857, 17568, 8859, 20561, 20547, 20548, 20550, 20549, 20565, 20553, 20552, 20551, 8869, 8870, 20554, 20568, 20571, 20555, 20556, 8876, 20631, 20558, 8881, 8882, 8883, 20612, 20634, 8886, 8887, 17609, 8889, 17683, 8891, 17687, 8893, 20561, 20560, 20562, 20564, 20563, 20565, 20567, 20566, 8902, 8903, 20569, 20568, 20571, 20570, 20573, 20572, 17662, 20632, 20631, 20630, 20575, 8915, 8916, 8917, 20576, 20634, 8920, 8921, 17679, 8923, 17683, 8925, 17687, 8927, 8928, 20582, 20581, 20580, 8934, 21077, 20585, 20584, 20583, 8940, 21080, 20587, 20586, 20589, 20588, 20590, 20593, 20592, 20595, 20594, 20596, 8951, 8952, 8953, 20599, 20598, 20597, 20600, 20602, 20603, 20606, 20605, 8962, 8963, 8964, 20609, 20608, 20607, 20616, 20615, 20617, 20618, 20619, 17811, 20623, 20622, 20626, 20625, 20624, 20628, 20627, 8981, 8982, 20632, 20631, 20630, 20629, 8987, 20634, 20612, 8992, 8993, 8994, 8995, 20636, 20613, 17862, 20638, 20616, 20615, 20618, 20617, 20619, 17811, 20623, 20622, 20626, 20625, 20624, 20628, 20627, 9013, 9014, 20632, 20631, 20630, 20629, 9019, 20634, 20633, 9024, 9025, 9026, 9027, 20636, 20635, 17862, 20638, 20643, 20642, 20640, 20639, 20677, 20646, 20645, 20678, 20648, 20647, 20650, 20641, 20643, 20642, 20644, 20677, 20646, 20645, 20678, 20648, 20647, 20650, 20641, 20644, 20643, 20642, 20677, 20646, 20645, 20678, 20648, 20647, 20650, 20649, 20653, 20652, 20651, 20656, 20655, 20654, 20659, 20658, 20657, 20660, 20662, 20661, 20665, 20664, 20663, 20669, 20668, 20667, 20666, 9154, 20673, 20672, 20671, 20670, 20677, 20676, 20675, 20674, 20679, 20678, 20680, 20692, 20682, 20694, 20693, 20700, 20683, 20702, 20698, 20700, 20699, 20702, 20701, 20833, 20998, 20995, 20707, 20790, 20692, 20786, 9279, 9280, 20791, 20790, 20694, 20693, 20696, 20695, 9288, 9289, 21129, 20700, 20699, 20798, 20697, 9298, 9299, 20800, 20702, 20698, 20801, 19725, 20700, 20699, 20798, 9308, 9309, 20800, 20702, 20701, 19725, 20997, 20996, 9337, 9338, 20998, 9340, 9341, 20706, 20832, 9361, 9362, 20998, 9364, 9365, 21008, 21117, 20974, 20707, 9371, 9372, 20976, 20975, 21107, 20970, 20785, 20790, 20786, 20788, 20787, 9489, 9490, 20789, 20791, 20790, 20793, 20792, 9506, 9507, 21156, 20798, 20794, 9526, 9527, 21160, 20800, 20795, 19800, 21162, 20798, 20799, 9551, 9552, 21166, 20800, 20801, 19815, 20832, 20997, 20831, 9591, 9592, 9594, 9595, 20833, 20967, 20835, 20834, 21107, 20970, 21176, 21179, 20836, 20967, 20969, 20968, 21107, 20970, 21117, 20974, 9779, 9780, 20976, 20975, 21190, 9813, 9814, 21007, 9816, 9817, 20995, 20997, 20996, 9842, 9843, 20998, 9845, 9846, 21008, 21200, 9871, 9872, 21007, 9874, 9875, 21008, 21105, 21102, 21209, 21107, 21106, 21105, 21104, 21103, 21212, 21107, 21106, 21109, 21112, 21111, 21110, 21114, 21113, 21115, 21118, 21117, 21116, 21120, 21119, 21147, 21148, 21122, 21121, 10084, 10085, 10087, 10088, 10095, 10096, 10098, 10099, 21184, 21183, 21123, 10153, 10154, 10155, 10157, 10158, 10165, 10166, 10167, 10169, 10170, 21148, 21147, 21152, 21151, 10218, 10219, 10221, 10222, 10229, 10230, 10232, 10233, 10282, 10283, 10284, 10286, 10287, 10294, 10295, 10296, 10298, 10299, 10306, 10307, 10308, 10310, 10311, 21184, 21183, 21182, 21148, 21147, 21152, 21151, 10368, 10369, 10371, 10372, 10379, 10380, 10382, 10383, 10409, 10410, 10411, 10413, 10414, 21173, 21184, 21206, 21205, 10457, 10458, 10460, 10461, 10466, 10467, 10468, 10469, 10471, 10472, 21184, 21183, 21182, 10530, 10531, 10532, 10534, 10535, 10542, 10549, 10553, 10555, 10560, 10562, 10567, 10568, 10569, 10574, 10576, 10581, 10582, 10583, 21206, 21205, 10620, 10621, 10623, 10624, 10629, 10630, 10631, 10632, 10634, 10635, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 7193, 7194, 7195, 7196, 21316, 7221, 19691, 21321, 7229, 7248, 7249, 7250, 7251, 7252, 7280, 7281, 7282, 7283, 7284, 7285, 7286, 7287, 7288, 7289, 7290, 21341, 7325, 7326, 7327, 21345, 7331, 7332, 7333, 21350, 7337, 7338, 7339, 7340, 7341, 7342, 7343, 7344, 7345, 7346, 7347, 7348, 7349, 7350, 7351, 7352, 7353, 7354, 7355, 7356, 7357, 7358, 7359, 21375, 7363, 7364, 7365, 7366, 7367, 7368, 7369, 7370, 7371, 7372, 7373, 21388, 7377, 21391, 7382, 7383, 7384, 7385, 7386, 7387, 7388, 7389, 7390, 7391, 7392, 7393, 7394, 7395, 20724, 7399, 7400, 7401, 7402, 7403, 7404, 7405, 7406, 7407, 7408, 7409, 19748, 7413, 19750, 7419, 7420, 7421, 7422, 7423, 7424, 7425, 7426, 7427, 7428, 7429, 7430, 7431, 7432, 7433, 7434, 7435, 7436, 7437, 7438, 7439, 7440, 7441, 7442, 20731, 7446, 7447, 7448, 7449, 7450, 21454, 21457, 7461, 7462, 7463, 7464, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 7474, 7475, 7476, 21476, 7480, 7481, 7482, 7483, 7484, 7485, 21485, 7489, 7490, 7491, 7492, 7493, 7494, 7495, 7496, 7497, 7498, 7499, 7500, 7501, 7502, 21502, 7506, 7507, 7508, 7509, 7510, 7511, 21511, 7514, 7515, 7516, 7517, 7518, 20753, 7522, 7523, 7524, 20756, 7528, 7529, 7530, 7531, 7532, 7533, 21529, 7537, 7538, 7539, 7540, 7541, 21537, 7544, 7545, 7546, 7547, 7548, 7549, 7550, 7551, 7552, 7553, 7554, 7555, 7556, 7557, 7558, 7559, 7560, 7561, 21557, 7564, 7565, 7566, 7567, 19766, 21564, 7573, 7574, 7575, 7576, 7577, 7578, 7579, 7580, 7581, 21575, 7584, 7585, 7586, 7587, 7588, 7589, 7590, 7591, 7592, 7593, 21588, 7600, 7601, 7602, 7603, 7605, 7607, 7608, 7609, 7610, 7611, 21602, 7614, 7615, 7616, 7617, 7618, 21609, 7621, 7622, 21613, 7626, 7627, 7628, 7629, 21620, 7632, 7633, 7651, 7652, 7653, 7654, 7655, 7656, 7657, 7658, 7659, 7660, 7661, 7662, 7663, 7664, 7665, 7666, 7667, 7668, 7669, 7670, 7671, 7672, 7735, 7736, 7737, 7738, 7739, 7740, 7741, 7742, 7743, 7745, 7746, 7747, 7748, 7749, 7750, 7751, 7752, 7766, 7767, 7768, 7769, 7770, 7802, 7803, 7804, 7807, 7808, 7809, 7812, 7813, 7814, 20808, 7818, 7819, 7820, 7821, 7822, 7823, 7824, 7825, 7826, 7827, 7828, 21693, 7832, 7833, 7834, 7835, 7836, 7837, 7838, 7839, 7840, 7841, 7842, 7843, 7844, 7845, 7846, 7847, 7848, 21713, 7851, 7852, 21717, 7856, 7857, 21722, 7860, 7862, 7864, 7866, 7867, 7868, 7869, 7870, 7871, 7872, 7873, 7874, 7875, 7876, 7877, 7878, 21743, 7881, 7882, 7883, 7884, 21749, 7887, 7888, 21753, 21755, 7893, 7894, 7895, 7896, 7947, 7948, 7949, 7952, 7953, 7954, 7957, 7958, 7959, 20842, 7963, 7964, 7965, 7966, 7967, 7968, 7969, 7970, 7971, 21782, 7975, 7976, 7977, 7978, 7979, 7980, 7981, 7982, 7983, 7984, 7985, 21796, 7988, 7989, 7990, 7991, 7992, 21803, 7996, 7997, 7998, 7999, 8000, 8001, 8004, 8005, 8006, 8009, 8010, 8011, 20857, 8015, 8016, 8017, 8018, 8019, 8020, 8021, 8022, 21829, 8026, 8027, 8028, 8029, 8030, 8031, 8034, 8035, 8036, 8039, 8040, 8041, 20867, 8045, 8046, 8047, 8048, 8049, 8050, 8051, 8052, 8053, 21856, 8057, 8058, 8059, 8060, 8061, 8062, 8063, 8064, 8065, 8066, 8067, 8068, 8069, 8070, 8071, 8072, 21875, 8075, 8076, 8077, 8078, 8079, 8080, 8081, 8082, 8083, 8084, 8085, 21888, 8088, 8089, 8090, 8091, 8092, 8093, 8094, 8095, 8096, 8097, 8098, 21901, 8102, 8103, 21906, 8106, 21909, 8109, 8110, 8111, 8112, 8113, 8114, 8115, 8116, 21919, 8119, 8120, 8121, 8122, 8123, 8124, 8125, 8126, 8131, 8132, 21932, 8135, 8137, 8139, 8141, 8142, 8143, 8144, 8145, 8146, 8147, 8148, 8149, 8150, 21949, 8154, 8155, 8156, 8157, 8158, 8159, 21958, 21960, 21963, 8173, 8175, 8177, 8179, 8180, 8181, 8182, 8183, 8184, 8185, 8186, 8187, 8188, 8189, 8190, 8191, 8192, 8193, 21987, 8196, 8197, 21991, 8201, 8202, 21996, 8205, 8207, 8209, 8211, 8212, 8213, 8214, 8215, 8216, 8217, 8218, 22012, 8221, 8222, 8223, 8224, 8225, 8226, 8227, 8228, 8229, 8230, 8231, 22025, 8235, 8236, 22030, 8239, 8241, 8243, 8244, 8245, 8246, 8247, 8248, 8249, 8250, 22044, 8253, 8254, 8255, 8256, 8257, 8258, 22052, 22055, 19876, 8270, 8272, 8274, 8276, 8277, 8278, 8279, 8280, 8281, 8282, 8283, 8284, 8285, 8286, 8287, 8288, 8289, 8290, 8291, 8292, 8293, 22082, 8297, 8298, 8299, 8300, 8301, 22090, 8304, 8305, 8306, 8307, 8308, 8309, 8310, 8311, 8312, 8313, 8314, 8315, 8316, 8317, 22106, 8321, 8322, 8323, 8324, 8325, 8326, 22115, 8329, 8330, 8331, 8332, 8333, 8334, 8335, 8336, 8337, 8338, 8339, 8340, 8341, 8342, 22131, 8345, 8346, 8347, 8348, 22137, 22139, 8353, 8354, 8355, 8356, 8357, 8358, 8359, 8360, 8361, 8362, 8363, 8364, 8365, 8366, 8367, 8368, 22157, 8371, 8372, 8373, 8374, 22164, 8381, 8382, 8383, 8384, 8385, 8386, 8387, 8388, 8389, 8390, 8391, 8392, 8393, 8394, 8395, 22181, 8398, 8399, 22185, 22187, 8404, 8405, 8406, 8407, 8408, 8409, 8410, 8411, 8412, 8413, 8414, 8415, 8416, 8417, 8418, 8419, 8420, 8421, 8422, 8423, 8424, 8425, 8426, 8427, 8428, 8469, 8470, 8471, 8472, 8473, 8474, 22220, 8478, 8505, 8506, 8507, 8508, 8509, 8510, 22230, 8513, 8514, 8515, 8516, 8517, 8518, 8519, 22239, 8522, 8523, 8524, 8525, 8526, 8527, 8528, 22248, 22250, 8533, 8534, 8535, 8536, 8537, 8538, 8539, 8540, 8541, 8542, 8548, 8549, 8550, 8551, 8552, 8553, 22269, 8556, 8557, 8558, 8559, 8560, 8561, 8562, 22278, 8565, 8566, 8567, 8568, 8569, 8570, 8571, 22287, 22289, 8576, 8577, 8578, 8579, 8580, 8581, 8582, 8583, 8584, 8585, 8597, 8598, 8612, 8613, 8614, 8615, 8616, 8617, 8618, 8619, 8620, 8629, 8630, 8631, 8632, 8633, 8634, 8635, 8636, 8637, 8646, 8647, 8648, 8649, 8650, 8651, 22328, 8654, 8655, 8656, 8657, 8658, 8659, 8660, 22337, 8663, 8664, 8665, 8666, 8667, 8668, 8669, 22346, 22348, 8674, 8675, 8676, 8709, 8710, 8711, 8714, 8715, 8716, 8719, 8720, 8721, 21014, 8725, 8726, 8727, 8728, 8729, 8730, 8731, 8732, 8733, 8734, 8735, 22376, 8739, 8740, 8741, 8742, 8743, 8746, 8747, 8748, 8751, 8752, 8753, 21024, 8757, 8758, 8759, 8760, 8761, 8762, 8763, 8764, 8765, 8766, 8767, 22404, 8771, 8772, 8773, 8774, 8775, 8776, 8777, 8778, 8779, 8780, 8781, 8782, 8783, 8784, 8785, 8786, 22423, 8789, 8790, 8791, 8792, 8793, 8794, 8795, 8796, 8797, 8798, 8799, 8800, 22437, 8803, 8804, 8805, 8806, 8807, 22444, 8810, 8811, 8816, 8817, 19933, 8821, 8823, 8825, 8827, 8828, 8829, 8830, 8831, 8832, 8833, 8834, 8835, 22467, 8838, 8839, 8840, 8841, 8842, 22474, 8845, 8846, 22477, 8850, 8851, 22481, 8854, 8856, 8858, 8860, 8861, 8862, 8863, 8864, 8865, 8866, 8867, 8868, 22498, 8871, 8872, 8873, 8874, 8875, 21055, 8879, 8880, 22508, 8884, 8885, 22513, 8888, 8890, 8892, 8894, 8895, 8896, 8897, 8898, 8899, 8900, 8901, 22529, 8904, 8905, 8906, 8907, 8908, 8909, 8910, 8911, 8912, 8913, 8914, 22542, 8918, 8919, 22547, 8922, 8924, 8926, 22554, 8929, 8930, 8931, 22558, 8935, 8936, 8937, 22563, 8941, 8942, 8943, 8944, 8945, 8946, 8947, 8948, 8949, 8950, 22576, 8954, 8955, 8956, 8957, 8958, 8959, 8960, 8961, 22587, 8965, 8966, 8967, 8968, 8969, 8970, 8971, 8972, 8973, 8974, 8975, 8976, 8977, 8978, 8979, 8980, 22606, 8983, 8984, 8985, 8986, 19943, 8990, 8991, 22615, 22617, 8996, 8997, 8998, 8999, 9000, 9001, 9002, 9003, 9004, 9005, 9006, 9007, 9008, 9009, 9010, 9011, 9012, 22636, 9015, 9016, 9017, 9018, 19945, 9022, 9023, 22645, 22647, 9028, 9029, 9030, 9031, 9032, 9033, 9034, 9035, 9036, 9037, 9038, 9039, 9040, 9041, 9042, 9043, 9075, 9076, 9077, 9078, 9079, 9080, 9081, 9082, 9083, 9084, 9085, 9095, 9096, 9097, 9098, 9099, 9100, 9101, 9102, 9103, 9104, 9105, 9135, 9136, 9137, 9138, 9139, 9140, 9141, 9142, 9143, 9144, 9145, 9146, 9147, 9148, 9149, 9150, 9151, 9152, 9153, 9174, 9175, 9176, 9177, 9178, 9179, 9180, 9181, 9182, 9183, 9184, 9243, 9248, 9249, 9250, 9252, 9253, 9254, 9255, 9256, 9257, 9258, 9259, 9262, 9263, 9264, 9265, 9276, 9277, 9278, 22737, 9282, 9283, 9284, 9285, 9286, 9287, 22745, 9294, 9295, 9296, 9297, 22752, 9300, 9301, 9302, 9303, 9304, 9305, 9306, 9307, 22762, 9310, 9311, 9312, 9313, 9335, 9336, 22770, 9339, 22773, 9342, 9360, 22777, 9363, 22780, 9366, 9368, 9369, 9370, 22786, 9373, 9374, 9376, 9377, 9484, 9485, 9486, 9487, 9488, 22797, 9501, 9502, 9503, 9504, 9505, 22804, 9524, 9525, 22809, 9530, 9531, 9532, 9549, 9550, 22818, 9555, 9556, 9557, 9588, 9589, 9590, 22827, 22829, 9602, 9603, 9604, 9605, 9606, 9607, 9615, 9755, 9756, 9757, 9758, 9759, 9777, 9778, 22847, 9781, 9782, 22852, 9815, 22855, 9818, 9840, 9841, 22860, 9844, 22863, 9847, 22867, 9873, 22870, 9876, 9972, 9973, 9976, 9977, 9995, 9996, 9997, 10000, 10001, 10020, 10021, 10022, 10023, 10026, 10027, 10028, 10029, 10030, 10031, 10034, 10035, 10072, 10073, 10078, 10079, 22900, 22902, 22904, 22906, 10145, 10146, 10147, 22911, 22914, 22916, 22919, 10206, 10207, 10212, 10213, 22925, 22927, 22929, 22931, 22933, 22936, 22938, 22941, 22943, 22946, 10315, 10316, 10317, 10356, 10357, 10362, 10363, 22955, 22957, 22959, 22961, 22963, 22966, 10420, 10421, 10452, 10453, 22972, 22974, 22976, 22978, 22980, 10522, 10523, 10524, 22985, 22988, 20152, 20154, 20121, 22996, 23001, 20121, 10615, 10616, 23006, 23008, 23010, 23012, 23014, 23, 24, 25, 26, 27, 28, 29, 30, 31, 23041, 23043, 19692, 23050, 23052, 23055, 23058, 23060, 23062, 23064, 23067, 23071, 23075, 23077, 23079, 23082, 23085, 23087, 23089, 23092, 23095, 23099, 23101, 23104, 23108, 23118, 23121, 23124, 20725, 23128, 23130, 23133, 23137, 19749, 19751, 23147, 23150, 23153, 23155, 23157, 23160, 23163, 20732, 23167, 23169, 23178, 23181, 23184, 23186, 21477, 23191, 21486, 23199, 23201, 23203, 23206, 23208, 21503, 23216, 23220, 23222, 20754, 23226, 20757, 23230, 23232, 21530, 23237, 23243, 23245, 23247, 23249, 23252, 23254, 23256, 23259, 23262, 23264, 19767, 23275, 23278, 23280, 23284, 23286, 23295, 23297, 23300, 23302, 23306, 21614, 23314, 23316, 23319, 23322, 23325, 23327, 23330, 23332, 23334, 23338, 23340, 23343, 23345, 23347, 23349, 23352, 23355, 23357, 23360, 23363, 23366, 20809, 23370, 23372, 23379, 21694, 23382, 23385, 23387, 23391, 23394, 23397, 23400, 21718, 23403, 23409, 23411, 23415, 23417, 23420, 23423, 23425, 23428, 23432, 23436, 23439, 23442, 20843, 23446, 23448, 23450, 21783, 23456, 23458, 23461, 23464, 23468, 23471, 21804, 23474, 23477, 23480, 23483, 20858, 23487, 23489, 23491, 23493, 21830, 23496, 23499, 23502, 23505, 20868, 23509, 23511, 23513, 21857, 23519, 23521, 23524, 23527, 23533, 23536, 23539, 23542, 23545, 23548, 23550, 23552, 23555, 23557, 21902, 23560, 23565, 23568, 23571, 23574, 23576, 23580, 23582, 23588, 23591, 23593, 23595, 23599, 23601, 23611, 23613, 23615, 23618, 23621, 23624, 23627, 21992, 23630, 23636, 23639, 23642, 23645, 23647, 23649, 23652, 23654, 22026, 23657, 23662, 23665, 23668, 23671, 23673, 19877, 23683, 23686, 23688, 23691, 23693, 23695, 22083, 23702, 23708, 23710, 23713, 23716, 23718, 22107, 23723, 23727, 23730, 23732, 23734, 23739, 23742, 23745, 23747, 23751, 23755, 23757, 23762, 23765, 23768, 23770, 23776, 23778, 23783, 23786, 23789, 23796, 23798, 23800, 23803, 23807, 23809, 23811, 23814, 23818, 23821, 22221, 23826, 23829, 23834, 23837, 23842, 23845, 23848, 23851, 23853, 23856, 23858, 23860, 23863, 23868, 23871, 23876, 23879, 23882, 23885, 23887, 23890, 23892, 23896, 23899, 23902, 23905, 23908, 23911, 23914, 23917, 23922, 23925, 23930, 23933, 23936, 23939, 23941, 23944, 23947, 21015, 23951, 23953, 23960, 22377, 23963, 23965, 23968, 23971, 21025, 23975, 23977, 23984, 22405, 23987, 23989, 23992, 23995, 24001, 24004, 24007, 24010, 24013, 24017, 24019, 24023, 24025, 19934, 24031, 24034, 24037, 24041, 24043, 24047, 24050, 24056, 24059, 24062, 24066, 24068, 21056, 24072, 22509, 24075, 24081, 24084, 24087, 24090, 24092, 24094, 24097, 24099, 22543, 24102, 24109, 24113, 24117, 24119, 24122, 24124, 22577, 24128, 24134, 22588, 24137, 24140, 24142, 24146, 24148, 24151, 24154, 24156, 19944, 24159, 24163, 24167, 24169, 24173, 24175, 24178, 24181, 24183, 19946, 24186, 24190, 24194, 24196, 24198, 24201, 24204, 24206, 24209, 24212, 24215, 24217, 24220, 24223, 24226, 24228, 24231, 24234, 24238, 24240, 24243, 24245, 24247, 24249, 24251, 24253, 24255, 24260, 24262, 24264, 24266, 24268, 23176, 23174, 21322, 24274, 24278, 24280, 24282, 24285, 24290, 24295, 24299, 23065, 23927, 24303, 24314, 24318, 24320, 24130, 23110, 23115, 23113, 21392, 23144, 23142, 21422, 24130, 23176, 23174, 21458, 23187, 23194, 23192, 23209, 23213, 23233, 23239, 23268, 23266, 23272, 23270, 23281, 23289, 23287, 23292, 23291, 23303, 23310, 23308, 24323, 24325, 24329, 24331, 23375, 23373, 23388, 23407, 23406, 23405, 23412, 23433, 24346, 24351, 24353, 24355, 23452, 23515, 23529, 23562, 23577, 23586, 23585, 23584, 23602, 23606, 23605, 23604, 23609, 23608, 23607, 23634, 23633, 23632, 23660, 23659, 23674, 23676, 23681, 23680, 23679, 23698, 23696, 23704, 23719, 23735, 23752, 23758, 23773, 23771, 23779, 23793, 23791, 24359, 24361, 24363, 24366, 23831, 23839, 23865, 23873, 23919, 23927, 24372, 23919, 23927, 23956, 23954, 23980, 23978, 23997, 24020, 24029, 24028, 24027, 24044, 24054, 24053, 24052, 24079, 24078, 24077, 24106, 24105, 24104, 24130, 24143, 24164, 24170, 24191, 24382, 24384, 24386, 24389, 24392, 24395, 24398, 24401, 24403, 24321, 24405, 24334, 24337, 24340, 24343, 24411, 21185, 22912, 21139, 24311, 24309, 22917, 21186, 24418, 24420, 24287, 24292, 24340, 24343, 22934, 24306, 24304, 22939, 21139, 24311, 24309, 22944, 24432, 24435, 24437, 22805, 24334, 22810, 24337, 22814, 24340, 22819, 24343, 22964, 24445, 24447, 24451, 24454, 21185, 22986, 20153, 20155, 10556, 24369, 24367, 22997, 24375, 24373, 23002, 10584, 24379, 24377, 24465, 24469, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 23053, 24489, 23068, 23072, 23080, 23083, 23096, 23102, 23105, 23125, 23131, 23134, 23148, 23151, 23164, 23170, 23179, 23182, 24533, 23204, 23223, 23227, 23238, 24557, 24563, 23317, 23320, 23323, 23328, 24577, 23335, 23341, 24582, 23350, 23353, 24587, 23361, 23364, 23367, 23383, 23418, 24611, 23437, 23440, 23443, 23459, 23462, 23475, 23478, 23481, 23484, 23497, 23500, 23503, 23506, 23522, 23525, 23537, 24661, 23596, 24693, 23684, 23689, 23703, 23711, 23714, 23724, 23740, 24724, 23763, 24731, 23784, 24738, 23801, 23804, 24742, 23812, 23815, 23819, 23822, 23827, 23830, 23835, 23838, 23843, 23846, 23854, 24758, 23861, 23864, 23869, 23872, 23877, 23880, 23888, 24769, 23897, 23900, 23906, 23909, 23915, 23918, 23923, 23926, 23931, 23934, 23942, 23945, 23948, 23966, 23969, 23972, 23990, 23993, 24005, 24014, 24038, 24063, 24838, 24110, 24114, 24129, 24138, 24149, 24858, 24176, 24868, 24873, 24199, 24202, 24207, 24210, 24213, 24218, 24221, 24224, 24229, 24232, 24235, 24241, 24891, 24893, 24895, 24480, 24520, 24519, 24612, 9273, 9274, 9275, 24275, 24907, 24286, 24291, 24296, 24300, 24486, 24485, 9317, 9319, 24782, 24896, 24747, 24782, 24896, 24315, 24492, 24496, 24846, 24120, 24132, 9387, 24499, 24498, 9394, 24504, 9396, 9397, 9398, 24506, 24505, 23139, 24512, 9406, 9407, 9408, 24517, 24846, 24120, 24132, 9415, 24520, 24519, 24612, 9424, 9425, 9426, 24527, 9429, 24529, 9431, 9432, 24531, 24535, 9436, 24537, 24538, 9439, 23218, 24544, 9444, 9446, 23241, 24549, 24551, 24554, 24552, 24555, 9454, 9455, 9456, 9457, 24559, 24560, 9460, 9462, 9463, 23293, 9465, 9466, 24565, 24566, 9469, 24568, 23312, 9472, 9473, 24592, 23377, 9563, 9564, 24597, 9567, 24600, 24599, 24601, 24604, 24602, 9573, 9574, 9575, 24605, 9577, 24609, 24612, 9582, 23430, 24347, 24618, 9624, 24620, 24621, 24625, 23469, 23466, 24634, 24636, 24644, 9642, 24646, 24647, 24651, 23531, 9648, 24655, 24654, 24656, 24657, 24659, 24663, 9657, 24665, 24664, 24666, 24667, 9662, 24670, 24669, 9665, 9666, 9667, 24672, 24671, 24675, 9672, 9673, 9674, 9675, 9676, 9677, 9678, 24677, 24679, 24681, 24680, 24682, 24685, 24683, 9686, 9687, 9688, 24687, 24686, 24688, 24689, 24691, 24695, 9696, 9697, 24697, 24696, 24698, 24699, 9702, 23677, 9704, 9705, 9706, 9707, 24706, 9711, 9712, 9714, 23706, 24713, 9718, 23725, 23728, 24719, 9723, 24722, 9727, 23749, 24726, 9730, 24729, 9734, 9735, 24732, 9737, 24735, 24736, 9741, 9742, 24747, 24782, 24896, 9784, 9786, 24754, 9794, 9796, 24765, 24772, 24775, 24772, 24775, 9828, 9830, 24782, 24772, 24775, 9857, 9859, 24782, 24788, 23958, 9882, 9883, 24791, 24797, 23982, 9890, 9891, 24800, 24804, 23999, 9896, 24808, 24807, 24810, 9902, 24813, 24812, 9905, 9906, 9907, 24816, 24815, 24818, 9912, 24821, 24820, 9915, 9916, 9917, 24823, 24822, 24825, 24069, 24830, 24828, 9925, 9926, 9927, 24832, 24831, 24833, 24834, 24836, 24840, 9935, 9936, 9937, 24843, 24846, 24120, 24132, 9945, 24852, 9948, 24856, 24860, 9953, 24161, 24862, 9956, 24866, 24870, 9961, 24188, 24387, 24896, 24393, 24399, 10074, 24951, 24258, 24953, 22746, 10090, 22810, 10092, 22814, 10101, 22819, 10103, 24412, 10148, 25003, 10159, 10160, 10161, 10171, 24316, 24951, 24908, 10224, 10226, 10235, 10237, 21134, 10289, 10290, 10300, 10301, 10302, 24316, 24433, 21146, 24964, 24321, 24951, 24327, 24953, 10373, 10374, 10375, 10376, 10384, 10385, 10386, 10387, 24348, 24349, 21174, 24964, 21207, 22836, 22837, 21180, 21181, 24455, 10525, 25003, 21186, 24364, 10557, 10558, 20112, 10571, 10572, 10585, 10586, 21207, 22874, 22880, 21213, 21214, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 9241, 9266, 9267, 25134, 24523, 25135, 9271, 25161, 25268, 24483, 9314, 9315, 25121, 25222, 25224, 9321, 24888, 25260, 25261, 9329, 25198, 9344, 25224, 9346, 24888, 25260, 25261, 9354, 25123, 25122, 9380, 25124, 9382, 9383, 9384, 24847, 9386, 24850, 9389, 9390, 25126, 24501, 25128, 9395, 25297, 9399, 9400, 25129, 24509, 25131, 9404, 9405, 25304, 25132, 9410, 9411, 9412, 24847, 9414, 24850, 9417, 9418, 25134, 24523, 25135, 9422, 25161, 25315, 25136, 9428, 9430, 25321, 9433, 25138, 9435, 9437, 9438, 9440, 25141, 25140, 9443, 24546, 9447, 9448, 9449, 9450, 9451, 9452, 25143, 25339, 25341, 9458, 9459, 25144, 25346, 9464, 9467, 9468, 9470, 9471, 25145, 25147, 25148, 25150, 25145, 25147, 25148, 25150, 24579, 25152, 24583, 25154, 25261, 25155, 24579, 25152, 24583, 25154, 25261, 25155, 25158, 25157, 25156, 9561, 9562, 24595, 9566, 9568, 9569, 9570, 9571, 9572, 25369, 9576, 24607, 9579, 9580, 25161, 9583, 25247, 25249, 25164, 25163, 25162, 9623, 9625, 9626, 25165, 9628, 9629, 9630, 24628, 25170, 25169, 25168, 9635, 9636, 24638, 25174, 25173, 25172, 9641, 9643, 9644, 25175, 9646, 9647, 23534, 9650, 9651, 9652, 9653, 9654, 9655, 25178, 9658, 9659, 9660, 9661, 9663, 9664, 25409, 9668, 9669, 25179, 9671, 25416, 25419, 9679, 9680, 9681, 9682, 9683, 9684, 9685, 25429, 9689, 9690, 9691, 9692, 9693, 9694, 25180, 25438, 9698, 9699, 9700, 9701, 9703, 25447, 25182, 25181, 9710, 25451, 24708, 9715, 25184, 9717, 24715, 9720, 9721, 9722, 23737, 9725, 25188, 9728, 9729, 23760, 9732, 25190, 25467, 9736, 23781, 9739, 9740, 25473, 25192, 25194, 25195, 25197, 25198, 9761, 25224, 9763, 24888, 25260, 25261, 9771, 25200, 25202, 25204, 9788, 24755, 25207, 25208, 25210, 25212, 9798, 24766, 25215, 25216, 9804, 25218, 9808, 25216, 9820, 25218, 9824, 25220, 25222, 25224, 9832, 24888, 25260, 25216, 9849, 25218, 9853, 25220, 25222, 25224, 9861, 24783, 25260, 25228, 25227, 25226, 9880, 9881, 9884, 25231, 25230, 25229, 9888, 9889, 9892, 25232, 9894, 9895, 24002, 9898, 9899, 25235, 9901, 9903, 9904, 25515, 9908, 9909, 25236, 9911, 9913, 9914, 25524, 9918, 9919, 25237, 9921, 9922, 9923, 9924, 25533, 9928, 9929, 9930, 9931, 9932, 9933, 25238, 25542, 25240, 25239, 9940, 9941, 9942, 24847, 9944, 24850, 9947, 24854, 9950, 9951, 25244, 9954, 9955, 24864, 9958, 9959, 25246, 9962, 25247, 25249, 25250, 25252, 25253, 25255, 25256, 25258, 24888, 25260, 25261, 10015, 10075, 10080, 10081, 10089, 10091, 10100, 10102, 10149, 25582, 10172, 24321, 10209, 24327, 10215, 22746, 22810, 22814, 22819, 10288, 25593, 25596, 21186, 10313, 10318, 10319, 10358, 10359, 10364, 10365, 21167, 10416, 21170, 10418, 10422, 10423, 10454, 10455, 21177, 10463, 24356, 10474, 24396, 10476, 10526, 10536, 10537, 25628, 10570, 25631, 25633, 10617, 10618, 21210, 10626, 24390, 10637, 24396, 10639, 25607, 25605, 25611, 25609, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 25666, 9268, 9269, 9270, 9272, 25269, 9290, 25675, 9316, 9318, 9320, 9322, 9323, 9328, 9343, 9345, 9347, 9348, 9353, 9378, 9379, 9381, 25698, 9385, 25291, 9388, 25703, 9391, 9392, 9393, 25707, 25298, 25710, 9401, 9402, 9403, 25715, 25305, 9409, 25720, 9413, 25310, 9416, 25725, 9419, 9420, 9421, 9423, 25316, 9427, 9434, 25327, 9441, 9442, 9445, 25750, 9453, 9461, 25348, 25355, 9474, 9475, 9476, 9477, 9491, 9492, 9493, 9494, 9508, 9509, 9510, 9511, 9516, 9517, 9533, 9534, 9535, 9536, 9541, 9542, 9558, 9559, 9560, 25359, 9565, 25792, 25795, 25370, 9578, 9581, 25802, 9596, 9597, 9620, 9621, 9622, 25809, 9627, 25814, 9631, 9632, 9633, 9634, 9637, 9638, 9639, 9640, 25826, 9645, 25393, 9649, 25833, 9656, 25840, 25844, 25410, 25847, 9670, 25417, 25420, 25855, 25858, 25430, 25861, 9695, 25869, 25445, 25448, 9708, 9709, 9713, 9716, 9719, 9724, 9726, 25889, 9731, 9733, 9738, 9743, 9744, 9745, 9746, 9760, 9762, 9764, 9765, 9770, 9783, 9785, 9787, 9789, 9790, 9793, 9795, 9797, 9799, 9800, 9803, 9807, 9819, 9823, 9827, 9829, 9831, 9833, 9834, 9848, 9852, 9856, 9858, 9860, 9862, 9863, 9877, 9878, 9879, 25497, 9885, 9886, 9887, 25502, 9893, 25507, 9897, 25965, 9900, 25969, 25516, 25972, 9910, 25976, 25525, 25979, 9920, 25984, 25534, 25987, 9934, 25543, 9938, 9939, 25998, 9943, 25548, 9946, 9949, 9952, 26007, 9957, 9960, 26013, 9963, 9964, 9978, 9979, 9986, 9987, 10002, 10003, 10004, 10005, 10014, 25735, 25318, 25324, 25331, 25664, 25756, 25754, 25761, 25871, 25849, 25842, 25852, 25989, 25452, 25883, 25885, 25890, 25895, 25898, 25735, 25318, 25324, 25331, 25747, 25756, 25754, 25761, 10208, 10214, 10223, 10225, 10234, 10236, 25871, 25852, 25842, 25989, 25849, 25452, 25883, 25885, 25890, 25895, 25898, 10312, 25735, 25318, 25324, 25331, 25747, 25756, 25754, 25761, 25790, 25852, 25989, 25797, 10415, 10417, 25967, 25974, 25981, 25989, 26002, 26008, 10462, 10473, 10475, 25835, 25842, 25849, 25852, 25863, 25871, 25452, 25883, 25885, 25890, 25895, 25898, 25967, 25974, 25981, 25989, 26002, 26008, 10625, 10636, 10638, 25565, 26027, 26030, 26029, 26032, 26031, 25578, 25580, 25583, 26044, 25594, 26049, 26051, 26053, 10751, 10752, 10755, 10756, 26059, 26061, 25623, 26070, 25097, 26073, 25104, 26076, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 26116, 26132, 26159, 26165, 25349, 25356, 26193, 25360, 26201, 26206, 26213, 26217, 26224, 26236, 26241, 26287, 25498, 26291, 25503, 26310, 26313, 26319, 26322, 26133, 26136, 26134, 26140, 26138, 26142, 26146, 26144, 26148, 26150, 26153, 26151, 26157, 26155, 26161, 10053, 10054, 26162, 26163, 10057, 10059, 25330, 10061, 26167, 26168, 10064, 10065, 26169, 10067, 26174, 26172, 26178, 26176, 26182, 26118, 26184, 26188, 26186, 26190, 26220, 26221, 25820, 26209, 26210, 26208, 26219, 10114, 26237, 26238, 10117, 26119, 26230, 10120, 26225, 26226, 26232, 10124, 26233, 10126, 26309, 10130, 25877, 26243, 10133, 25455, 26245, 10136, 26246, 26248, 10139, 26249, 26250, 10142, 10143, 26203, 26128, 26127, 26126, 26130, 26257, 26256, 26255, 26259, 26133, 26136, 26134, 26114, 26112, 26150, 26153, 26151, 26157, 26155, 26161, 10187, 10188, 26162, 26163, 10191, 10193, 25330, 26167, 10196, 26168, 10198, 10199, 26169, 10201, 26174, 26172, 26178, 26176, 26182, 26118, 26184, 26188, 26186, 26190, 26209, 26210, 26220, 26221, 25820, 26219, 26208, 10248, 26237, 26238, 26232, 10252, 26233, 10254, 26225, 26226, 10257, 26309, 10260, 26119, 26230, 10264, 25877, 26243, 10267, 25455, 26245, 10270, 26246, 26248, 10273, 26249, 26250, 10276, 10277, 26123, 26122, 26121, 26120, 26125, 26128, 26127, 26126, 26130, 26257, 26256, 26255, 26259, 26203, 26133, 26136, 26134, 26140, 26138, 26142, 26146, 26144, 26148, 26150, 26153, 26151, 26157, 26155, 26161, 10337, 10338, 26162, 26163, 10341, 10343, 25330, 26167, 10346, 26168, 10348, 10349, 26169, 10351, 26174, 26172, 26178, 26176, 26182, 26180, 26184, 26188, 26186, 26190, 26294, 26295, 26197, 10393, 26198, 26232, 10396, 26233, 10398, 26309, 26316, 26314, 26200, 10405, 26332, 26330, 26334, 26203, 26294, 26295, 10430, 26297, 26299, 10433, 26301, 26303, 10436, 26305, 26307, 10439, 26309, 26316, 26314, 26318, 10446, 26321, 10449, 26324, 26326, 26328, 26332, 26330, 26334, 26208, 26209, 26210, 25820, 26219, 26220, 26221, 10487, 26223, 10490, 26225, 26226, 10493, 26228, 26230, 26232, 10497, 26233, 10499, 26235, 10502, 26237, 26238, 10506, 25877, 26243, 10509, 25455, 26245, 10512, 26246, 26248, 10515, 26249, 26250, 10518, 10519, 26253, 26251, 26257, 26256, 26255, 26259, 26263, 26262, 26261, 26260, 26268, 26267, 26266, 26265, 26270, 26271, 26272, 26273, 26277, 26276, 26275, 26274, 26279, 26280, 26284, 26283, 26282, 26281, 26294, 26295, 10593, 26297, 26299, 10596, 26301, 26303, 10599, 26305, 26307, 10602, 26309, 26316, 26314, 26318, 10609, 26321, 10612, 26324, 26326, 26328, 26332, 26330, 26334, 10652, 10654, 10657, 10658, 10661, 10662, 10679, 10682, 10685, 26362, 26363, 26365, 26364, 26367, 26366, 10725, 10728, 26379, 10733, 10746, 10748, 26439, 26441, 26393, 26392, 10769, 10781, 26400, 26402, 26401, 10806, 10809, 10814, 10818, 10822, 10834, 26421, 26423, 26422, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 26194, 26207, 26214, 26218, 26288, 26292, 10036, 26465, 10038, 10039, 10040, 10041, 10042, 10043, 10044, 10045, 10046, 10047, 10048, 10049, 10050, 26466, 10052, 26503, 10055, 10056, 26467, 10060, 10062, 10063, 26513, 10066, 26468, 25762, 10070, 10071, 10076, 10077, 10082, 10083, 10086, 10093, 10094, 10097, 10104, 10105, 10107, 10108, 10109, 10111, 10113, 10115, 10116, 10118, 10119, 10121, 10122, 10123, 10125, 10127, 26483, 26478, 10131, 10132, 10134, 10135, 10137, 10138, 10140, 10141, 10144, 10150, 10151, 10152, 10156, 10162, 10163, 10164, 10168, 10173, 26465, 10175, 10176, 10177, 10178, 26464, 10180, 10181, 10182, 10183, 10184, 26466, 10186, 26582, 10189, 10190, 26467, 10194, 10195, 10197, 26592, 10200, 26468, 25762, 10204, 10205, 10210, 10211, 10216, 10217, 10220, 10227, 10228, 10231, 10238, 10239, 10240, 10241, 10243, 10245, 10247, 10249, 10250, 10251, 10253, 10255, 10256, 10258, 26483, 10261, 10262, 26478, 10265, 10266, 10268, 10269, 10271, 10272, 10274, 10275, 10278, 10279, 10280, 10281, 10285, 10291, 10292, 10293, 10297, 10303, 10304, 10305, 10309, 10314, 10320, 26465, 10322, 10323, 10324, 10325, 10326, 10327, 10328, 10329, 10330, 10331, 10332, 10333, 10334, 26466, 10336, 26670, 10339, 10340, 26467, 10344, 10345, 10347, 26680, 10350, 26468, 25762, 10354, 10355, 10360, 10361, 10366, 10367, 10370, 10377, 10378, 10381, 26471, 10390, 10391, 10392, 10394, 10395, 10397, 10399, 26483, 26484, 10402, 10403, 10404, 26472, 10407, 10408, 10412, 10419, 26480, 26482, 10428, 10429, 10431, 10432, 10434, 10435, 10437, 10438, 10440, 26483, 26484, 10443, 10444, 10445, 26485, 10448, 26486, 10451, 10456, 10459, 10464, 10465, 10470, 10478, 10479, 10480, 10482, 10484, 10485, 10486, 10488, 26476, 10491, 10492, 10494, 10495, 10496, 10498, 10500, 26477, 10503, 10504, 26478, 10507, 10508, 10510, 10511, 10513, 10514, 10516, 10517, 10520, 10521, 10527, 10528, 10529, 10533, 10538, 10539, 10540, 10541, 10545, 10546, 10547, 10548, 10552, 10554, 10559, 10561, 10563, 10564, 10565, 10566, 10573, 10575, 10577, 10578, 10579, 10580, 26480, 26482, 10591, 10592, 10594, 10595, 10597, 10598, 10600, 10601, 10603, 26483, 26484, 10606, 10607, 10608, 26485, 10611, 26486, 10614, 10619, 10622, 10627, 10628, 10633, 26829, 26831, 10697, 10699, 10702, 10703, 10706, 10707, 10731, 10766, 10767, 10784, 10787, 10788, 10837, 10840, 10841, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 10037, 26889, 26891, 26894, 26898, 26900, 10051, 26506, 10058, 26907, 26908, 10068, 10069, 26915, 26917, 26919, 26922, 26882, 26881, 26883, 26931, 26933, 26935, 26543, 26939, 10128, 10129, 26942, 26944, 26553, 26556, 26559, 26952, 26956, 10174, 26962, 26964, 10179, 26968, 26970, 10185, 26585, 10192, 26977, 26589, 10202, 10203, 26985, 26987, 26989, 26992, 26882, 26883, 26881, 27001, 26616, 27005, 27007, 10259, 27009, 10263, 27012, 27014, 26632, 26635, 26638, 27021, 27023, 27026, 27030, 10321, 27037, 27039, 27042, 27046, 27048, 10335, 26673, 10342, 27055, 26677, 10352, 10353, 27063, 27065, 27067, 27070, 26880, 10389, 26696, 26699, 27079, 10400, 10401, 27083, 26706, 10406, 27087, 26884, 10425, 26885, 10427, 27094, 27096, 27098, 27100, 10441, 10442, 27104, 26727, 10447, 26729, 10450, 27113, 26881, 26882, 26883, 27122, 10489, 27124, 27126, 26752, 27130, 10501, 27132, 10505, 27135, 27137, 26765, 26768, 26771, 27144, 27146, 27150, 27152, 27154, 27156, 27162, 27164, 27168, 27170, 26884, 10588, 26885, 10590, 27175, 27177, 27179, 27181, 10604, 10605, 27185, 26817, 10610, 26819, 10613, 27194, 26902, 26910, 26920, 26923, 26924, 26927, 26950, 26954, 26958, 26972, 26980, 26990, 27201, 26993, 27203, 26994, 26996, 27024, 27028, 27032, 27033, 27050, 27058, 27068, 27071, 27073, 27088, 27206, 27089, 27092, 27109, 27111, 27110, 27114, 27209, 27116, 27120, 27148, 27158, 27157, 27160, 27159, 27166, 27165, 27173, 27190, 27192, 27191, 27195, 27212, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27232, 27243, 10106, 10110, 10112, 26953, 26957, 27266, 27277, 10242, 10244, 10246, 27299, 27027, 27031, 27302, 27313, 10388, 10424, 10426, 10477, 10481, 10483, 27147, 27366, 27368, 27370, 27372, 10587, 10589, 27235, 27234, 26896, 27237, 27240, 26904, 10647, 10649, 27242, 27245, 27246, 10655, 27247, 10659, 27248, 10663, 10667, 27255, 27256, 27252, 27253, 27254, 26943, 27258, 27263, 27262, 27261, 10678, 10680, 10683, 27268, 26966, 27271, 27274, 26974, 10692, 10694, 27276, 27279, 27280, 10700, 27281, 10704, 27282, 10709, 10712, 27289, 27291, 27288, 27286, 27287, 27013, 27292, 27297, 27296, 27295, 10723, 10726, 10729, 10732, 27305, 27304, 27044, 27307, 27310, 27052, 10741, 10743, 27312, 27315, 27316, 10749, 27317, 10753, 27318, 10757, 27323, 27322, 27321, 27325, 27327, 10764, 27329, 10768, 10770, 27337, 27336, 27335, 27334, 27339, 27343, 27341, 10780, 10782, 10783, 10785, 27345, 10791, 10792, 27351, 27356, 27353, 27349, 27352, 27354, 27136, 27357, 27362, 27361, 27360, 27363, 10807, 10810, 10811, 10816, 10817, 10820, 10821, 10823, 27380, 27379, 27378, 27377, 27382, 27386, 27384, 10833, 10835, 10836, 10838, 27388, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27456, 10641, 10642, 10643, 10644, 10645, 10646, 27457, 10650, 10651, 10653, 10656, 10660, 27460, 27458, 27459, 10668, 10669, 10670, 10671, 10672, 10673, 10674, 10675, 10676, 10677, 27461, 27462, 27463, 10687, 10688, 10689, 10690, 10691, 27464, 10695, 10696, 10698, 10701, 10705, 27467, 27466, 27465, 10713, 10714, 10715, 10716, 10717, 10718, 10719, 10720, 10721, 10722, 27468, 27469, 27470, 27471, 10735, 10736, 10737, 10738, 10739, 10740, 27472, 10744, 10745, 10747, 10750, 10754, 27473, 10759, 10760, 10761, 10762, 10763, 10765, 27475, 27474, 10773, 10774, 10775, 10776, 10777, 10778, 10779, 27580, 10786, 27477, 27476, 27478, 27584, 10794, 10795, 10796, 10797, 10798, 10799, 10800, 10801, 10802, 10803, 10804, 10805, 27479, 27481, 27480, 27599, 27482, 27483, 27485, 27484, 10826, 10827, 10828, 10829, 10830, 10831, 10832, 27614, 10839, 27513, 27545, 27569, 27578, 27612, 29, 30, 31, 10640, 27650, 27654, 10648, 27659, 27660, 10664, 10665, 10666, 27665, 27667, 27670, 27672, 10681, 10684, 10686, 27681, 10693, 27686, 27687, 10708, 10710, 10711, 27692, 27694, 27697, 27699, 10724, 10727, 10730, 10734, 27706, 27710, 10742, 27715, 27716, 10758, 27719, 27723, 10771, 10772, 27727, 27729, 27732, 27734, 10789, 10790, 10793, 27740, 27742, 27744, 27746, 27748, 10808, 10812, 10813, 10815, 10819, 10824, 10825, 27760, 27762, 27765, 27767, 27651, 27658, 27657, 10853, 27678, 27685, 27684, 10863, 27707, 27714, 27713, 27721, 10876, 27733, 10882, 27750, 27766, 10894, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27492, 27493, 27782, 27784, 27786, 27673, 27789, 27790, 27521, 27522, 27530, 27798, 27800, 27700, 27803, 27804, 27805, 27552, 27553, 27812, 27720, 27815, 27818, 27822, 27825, 27749, 27829, 27831, 27600, 27602, 27834, 27837, 10843, 27776, 27781, 27780, 10847, 10848, 10855, 27791, 27795, 27794, 10859, 10860, 10868, 27806, 27811, 27810, 10872, 10873, 10874, 27814, 27730, 27820, 10881, 10888, 27763, 27839, 10893, 27, 28, 29, 30, 31, 27656, 27875, 27668, 27683, 27883, 27695, 27712, 27816, 27738, 27826, 27899, 27601, 27603, 27835, 10844, 10845, 10846, 27909, 27787, 27879, 27878, 10856, 10857, 10858, 27915, 27801, 27888, 27887, 27886, 10869, 10870, 10871, 27921, 27891, 10877, 10878, 10880, 27827, 27898, 10890, 10892, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27502, 27531, 27823, 27872, 27952, 10849, 10851, 10852, 27880, 27959, 10861, 10864, 10865, 10866, 27889, 27967, 10875, 27970, 27943, 27926, 10883, 10885, 27947, 27948, 27946, 27949, 27930, 27, 28, 29, 30, 31, 10842, 27953, 28000, 28007, 10854, 27960, 28001, 28011, 28013, 10867, 27968, 28016, 10879, 27854, 28002, 10886, 10887, 10889, 10891, 27857, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27904, 10850, 27843, 27910, 10862, 28040, 27916, 28044, 10884, 28047, 27927, 28050, 28043, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 27950, 28065, 27957, 28068, 27965, 28072, 28074, 10897, 28071, 28075, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28049, 28100, 28097, 28098, 28096, 10901, 10902, 28099, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28101, 10896, 10898, 10899, 10900, 10903, 28134, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 10895, 28162, 28164, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28161, 28166, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28193, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28225, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 28165, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31}; bool h_Op[]= { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; #define THREADS_PER_BLOCK 32 #define BLOCKS_PER_GRID 1 #define SIZE_OF_IN 10912 #define SIZE_OF_AC 17440 __device__ void ac(float *A, const int *B, const int *C, const bool *Op, int n_iter) { int i= blockDim.x * blockIdx.x + threadIdx.x; __shared__ float R[886*THREADS_PER_BLOCK]; const int t= THREADS_PER_BLOCK; __shared__ float final; final=0; R[i + 0*t] = A[i + 0*t]; R[i + 1*t] = A[i + 1*t]; R[i + 2*t] = A[i + 2*t]; R[i + 3*t] = A[i + 3*t]; R[i + 4*t] = A[i + 4*t]; R[i + 5*t] = A[i + 5*t]; R[i + 6*t] = A[i + 6*t]; R[i + 7*t] = A[i + 7*t]; R[i + 8*t] = A[i + 8*t]; R[i + 9*t] = A[i + 9*t]; R[i + 10*t] = A[i + 10*t]; R[i + 11*t] = A[i + 11*t]; R[i + 12*t] = A[i + 12*t]; R[i + 13*t] = A[i + 13*t]; R[i + 14*t] = A[i + 14*t]; R[i + 15*t] = A[i + 15*t]; R[i + 16*t] = A[i + 16*t]; R[i + 17*t] = A[i + 17*t]; R[i + 18*t] = A[i + 18*t]; R[i + 19*t] = A[i + 19*t]; R[i + 20*t] = A[i + 20*t]; R[i + 21*t] = A[i + 21*t]; R[i + 22*t] = A[i + 22*t]; R[i + 23*t] = A[i + 23*t]; R[i + 24*t] = A[i + 24*t]; R[i + 25*t] = A[i + 25*t]; R[i + 26*t] = A[i + 26*t]; R[i + 27*t] = A[i + 27*t]; R[i + 28*t] = A[i + 28*t]; R[i + 29*t] = A[i + 29*t]; R[i + 30*t] = A[i + 30*t]; R[i + 31*t] = A[i + 31*t]; R[i + 32*t] = A[i + 32*t]; R[i + 33*t] = A[i + 33*t]; R[i + 34*t] = A[i + 34*t]; R[i + 35*t] = A[i + 35*t]; R[i + 36*t] = A[i + 36*t]; R[i + 37*t] = A[i + 37*t]; R[i + 38*t] = A[i + 38*t]; R[i + 39*t] = A[i + 39*t]; R[i + 40*t] = A[i + 40*t]; R[i + 41*t] = A[i + 41*t]; R[i + 42*t] = A[i + 42*t]; R[i + 43*t] = A[i + 43*t]; R[i + 44*t] = A[i + 44*t]; R[i + 45*t] = A[i + 45*t]; R[i + 46*t] = A[i + 46*t]; R[i + 47*t] = A[i + 47*t]; R[i + 48*t] = A[i + 48*t]; R[i + 49*t] = A[i + 49*t]; R[i + 50*t] = A[i + 50*t]; R[i + 51*t] = A[i + 51*t]; R[i + 52*t] = A[i + 52*t]; R[i + 53*t] = A[i + 53*t]; R[i + 54*t] = A[i + 54*t]; R[i + 55*t] = A[i + 55*t]; R[i + 56*t] = A[i + 56*t]; R[i + 57*t] = A[i + 57*t]; R[i + 58*t] = A[i + 58*t]; R[i + 59*t] = A[i + 59*t]; R[i + 60*t] = A[i + 60*t]; R[i + 61*t] = A[i + 61*t]; R[i + 62*t] = A[i + 62*t]; R[i + 63*t] = A[i + 63*t]; R[i + 64*t] = A[i + 64*t]; R[i + 65*t] = A[i + 65*t]; R[i + 66*t] = A[i + 66*t]; R[i + 67*t] = A[i + 67*t]; R[i + 68*t] = A[i + 68*t]; R[i + 69*t] = A[i + 69*t]; R[i + 70*t] = A[i + 70*t]; R[i + 71*t] = A[i + 71*t]; R[i + 72*t] = A[i + 72*t]; R[i + 73*t] = A[i + 73*t]; R[i + 74*t] = A[i + 74*t]; R[i + 75*t] = A[i + 75*t]; R[i + 76*t] = A[i + 76*t]; R[i + 77*t] = A[i + 77*t]; R[i + 78*t] = A[i + 78*t]; R[i + 79*t] = A[i + 79*t]; R[i + 80*t] = A[i + 80*t]; R[i + 81*t] = A[i + 81*t]; R[i + 82*t] = A[i + 82*t]; R[i + 83*t] = A[i + 83*t]; R[i + 84*t] = A[i + 84*t]; R[i + 85*t] = A[i + 85*t]; R[i + 86*t] = A[i + 86*t]; R[i + 87*t] = A[i + 87*t]; R[i + 88*t] = A[i + 88*t]; R[i + 89*t] = A[i + 89*t]; R[i + 90*t] = A[i + 90*t]; R[i + 91*t] = A[i + 91*t]; R[i + 92*t] = A[i + 92*t]; R[i + 93*t] = A[i + 93*t]; R[i + 94*t] = A[i + 94*t]; R[i + 95*t] = A[i + 95*t]; R[i + 96*t] = A[i + 96*t]; R[i + 97*t] = A[i + 97*t]; R[i + 98*t] = A[i + 98*t]; R[i + 99*t] = A[i + 99*t]; R[i + 100*t] = A[i + 100*t]; R[i + 101*t] = A[i + 101*t]; R[i + 102*t] = A[i + 102*t]; R[i + 103*t] = A[i + 103*t]; R[i + 104*t] = A[i + 104*t]; R[i + 105*t] = A[i + 105*t]; R[i + 106*t] = A[i + 106*t]; R[i + 107*t] = A[i + 107*t]; R[i + 108*t] = A[i + 108*t]; R[i + 109*t] = A[i + 109*t]; R[i + 110*t] = A[i + 110*t]; R[i + 111*t] = A[i + 111*t]; R[i + 112*t] = A[i + 112*t]; R[i + 113*t] = A[i + 113*t]; R[i + 114*t] = A[i + 114*t]; R[i + 115*t] = A[i + 115*t]; R[i + 116*t] = A[i + 116*t]; R[i + 117*t] = A[i + 117*t]; R[i + 118*t] = A[i + 118*t]; R[i + 119*t] = A[i + 119*t]; R[i + 120*t] = A[i + 120*t]; R[i + 121*t] = A[i + 121*t]; R[i + 122*t] = A[i + 122*t]; R[i + 123*t] = A[i + 123*t]; R[i + 124*t] = A[i + 124*t]; R[i + 125*t] = A[i + 125*t]; R[i + 126*t] = A[i + 126*t]; R[i + 127*t] = A[i + 127*t]; R[i + 128*t] = A[i + 128*t]; R[i + 129*t] = A[i + 129*t]; R[i + 130*t] = A[i + 130*t]; R[i + 131*t] = A[i + 131*t]; R[i + 132*t] = A[i + 132*t]; R[i + 133*t] = A[i + 133*t]; R[i + 134*t] = A[i + 134*t]; R[i + 135*t] = A[i + 135*t]; R[i + 136*t] = A[i + 136*t]; R[i + 137*t] = A[i + 137*t]; R[i + 138*t] = A[i + 138*t]; R[i + 139*t] = A[i + 139*t]; R[i + 140*t] = A[i + 140*t]; R[i + 141*t] = A[i + 141*t]; R[i + 142*t] = A[i + 142*t]; R[i + 143*t] = A[i + 143*t]; R[i + 144*t] = A[i + 144*t]; R[i + 145*t] = A[i + 145*t]; R[i + 146*t] = A[i + 146*t]; R[i + 147*t] = A[i + 147*t]; R[i + 148*t] = A[i + 148*t]; R[i + 149*t] = A[i + 149*t]; R[i + 150*t] = A[i + 150*t]; R[i + 151*t] = A[i + 151*t]; R[i + 152*t] = A[i + 152*t]; R[i + 153*t] = A[i + 153*t]; R[i + 154*t] = A[i + 154*t]; R[i + 155*t] = A[i + 155*t]; R[i + 156*t] = A[i + 156*t]; R[i + 157*t] = A[i + 157*t]; R[i + 158*t] = A[i + 158*t]; R[i + 159*t] = A[i + 159*t]; R[i + 160*t] = A[i + 160*t]; R[i + 161*t] = A[i + 161*t]; R[i + 162*t] = A[i + 162*t]; R[i + 163*t] = A[i + 163*t]; R[i + 164*t] = A[i + 164*t]; R[i + 165*t] = A[i + 165*t]; R[i + 166*t] = A[i + 166*t]; R[i + 167*t] = A[i + 167*t]; R[i + 168*t] = A[i + 168*t]; R[i + 169*t] = A[i + 169*t]; R[i + 170*t] = A[i + 170*t]; R[i + 171*t] = A[i + 171*t]; R[i + 172*t] = A[i + 172*t]; R[i + 173*t] = A[i + 173*t]; R[i + 174*t] = A[i + 174*t]; R[i + 175*t] = A[i + 175*t]; R[i + 176*t] = A[i + 176*t]; R[i + 177*t] = A[i + 177*t]; R[i + 178*t] = A[i + 178*t]; R[i + 179*t] = A[i + 179*t]; R[i + 180*t] = A[i + 180*t]; R[i + 181*t] = A[i + 181*t]; R[i + 182*t] = A[i + 182*t]; R[i + 183*t] = A[i + 183*t]; R[i + 184*t] = A[i + 184*t]; R[i + 185*t] = A[i + 185*t]; R[i + 186*t] = A[i + 186*t]; R[i + 187*t] = A[i + 187*t]; R[i + 188*t] = A[i + 188*t]; R[i + 189*t] = A[i + 189*t]; R[i + 190*t] = A[i + 190*t]; R[i + 191*t] = A[i + 191*t]; R[i + 192*t] = A[i + 192*t]; R[i + 193*t] = A[i + 193*t]; R[i + 194*t] = A[i + 194*t]; R[i + 195*t] = A[i + 195*t]; R[i + 196*t] = A[i + 196*t]; R[i + 197*t] = A[i + 197*t]; R[i + 198*t] = A[i + 198*t]; R[i + 199*t] = A[i + 199*t]; R[i + 200*t] = A[i + 200*t]; R[i + 201*t] = A[i + 201*t]; R[i + 202*t] = A[i + 202*t]; R[i + 203*t] = A[i + 203*t]; R[i + 204*t] = A[i + 204*t]; R[i + 205*t] = A[i + 205*t]; R[i + 206*t] = A[i + 206*t]; R[i + 207*t] = A[i + 207*t]; R[i + 208*t] = A[i + 208*t]; R[i + 209*t] = A[i + 209*t]; R[i + 210*t] = A[i + 210*t]; R[i + 211*t] = A[i + 211*t]; R[i + 212*t] = A[i + 212*t]; R[i + 213*t] = A[i + 213*t]; R[i + 214*t] = A[i + 214*t]; R[i + 215*t] = A[i + 215*t]; R[i + 216*t] = A[i + 216*t]; R[i + 217*t] = A[i + 217*t]; R[i + 218*t] = A[i + 218*t]; R[i + 219*t] = A[i + 219*t]; R[i + 220*t] = A[i + 220*t]; R[i + 221*t] = A[i + 221*t]; R[i + 222*t] = A[i + 222*t]; R[i + 223*t] = A[i + 223*t]; R[i + 224*t] = A[i + 224*t]; R[i + 225*t] = A[i + 225*t]; R[i + 226*t] = A[i + 226*t]; R[i + 227*t] = A[i + 227*t]; R[i + 228*t] = A[i + 228*t]; R[i + 229*t] = A[i + 229*t]; R[i + 230*t] = A[i + 230*t]; R[i + 231*t] = A[i + 231*t]; R[i + 232*t] = A[i + 232*t]; R[i + 233*t] = A[i + 233*t]; R[i + 234*t] = A[i + 234*t]; R[i + 235*t] = A[i + 235*t]; R[i + 236*t] = A[i + 236*t]; R[i + 237*t] = A[i + 237*t]; R[i + 238*t] = A[i + 238*t]; R[i + 239*t] = A[i + 239*t]; R[i + 240*t] = A[i + 240*t]; R[i + 241*t] = A[i + 241*t]; R[i + 242*t] = A[i + 242*t]; R[i + 243*t] = A[i + 243*t]; R[i + 244*t] = A[i + 244*t]; R[i + 245*t] = A[i + 245*t]; R[i + 246*t] = A[i + 246*t]; R[i + 247*t] = A[i + 247*t]; R[i + 248*t] = A[i + 248*t]; R[i + 249*t] = A[i + 249*t]; R[i + 250*t] = A[i + 250*t]; R[i + 251*t] = A[i + 251*t]; R[i + 252*t] = A[i + 252*t]; R[i + 253*t] = A[i + 253*t]; R[i + 254*t] = A[i + 254*t]; R[i + 255*t] = A[i + 255*t]; R[i + 256*t] = A[i + 256*t]; R[i + 257*t] = A[i + 257*t]; R[i + 258*t] = A[i + 258*t]; R[i + 259*t] = A[i + 259*t]; R[i + 260*t] = A[i + 260*t]; R[i + 261*t] = A[i + 261*t]; R[i + 262*t] = A[i + 262*t]; R[i + 263*t] = A[i + 263*t]; R[i + 264*t] = A[i + 264*t]; R[i + 265*t] = A[i + 265*t]; R[i + 266*t] = A[i + 266*t]; R[i + 267*t] = A[i + 267*t]; R[i + 268*t] = A[i + 268*t]; R[i + 269*t] = A[i + 269*t]; R[i + 270*t] = A[i + 270*t]; R[i + 271*t] = A[i + 271*t]; R[i + 272*t] = A[i + 272*t]; R[i + 273*t] = A[i + 273*t]; R[i + 274*t] = A[i + 274*t]; R[i + 275*t] = A[i + 275*t]; R[i + 276*t] = A[i + 276*t]; R[i + 277*t] = A[i + 277*t]; R[i + 278*t] = A[i + 278*t]; R[i + 279*t] = A[i + 279*t]; R[i + 280*t] = A[i + 280*t]; R[i + 281*t] = A[i + 281*t]; R[i + 282*t] = A[i + 282*t]; R[i + 283*t] = A[i + 283*t]; R[i + 284*t] = A[i + 284*t]; R[i + 285*t] = A[i + 285*t]; R[i + 286*t] = A[i + 286*t]; R[i + 287*t] = A[i + 287*t]; R[i + 288*t] = A[i + 288*t]; R[i + 289*t] = A[i + 289*t]; R[i + 290*t] = A[i + 290*t]; R[i + 291*t] = A[i + 291*t]; R[i + 292*t] = A[i + 292*t]; R[i + 293*t] = A[i + 293*t]; R[i + 294*t] = A[i + 294*t]; R[i + 295*t] = A[i + 295*t]; R[i + 296*t] = A[i + 296*t]; R[i + 297*t] = A[i + 297*t]; R[i + 298*t] = A[i + 298*t]; R[i + 299*t] = A[i + 299*t]; R[i + 300*t] = A[i + 300*t]; R[i + 301*t] = A[i + 301*t]; R[i + 302*t] = A[i + 302*t]; R[i + 303*t] = A[i + 303*t]; R[i + 304*t] = A[i + 304*t]; R[i + 305*t] = A[i + 305*t]; R[i + 306*t] = A[i + 306*t]; R[i + 307*t] = A[i + 307*t]; R[i + 308*t] = A[i + 308*t]; R[i + 309*t] = A[i + 309*t]; R[i + 310*t] = A[i + 310*t]; R[i + 311*t] = A[i + 311*t]; R[i + 312*t] = A[i + 312*t]; R[i + 313*t] = A[i + 313*t]; R[i + 314*t] = A[i + 314*t]; R[i + 315*t] = A[i + 315*t]; R[i + 316*t] = A[i + 316*t]; R[i + 317*t] = A[i + 317*t]; R[i + 318*t] = A[i + 318*t]; R[i + 319*t] = A[i + 319*t]; R[i + 320*t] = A[i + 320*t]; R[i + 321*t] = A[i + 321*t]; R[i + 322*t] = A[i + 322*t]; R[i + 323*t] = A[i + 323*t]; R[i + 324*t] = A[i + 324*t]; R[i + 325*t] = A[i + 325*t]; R[i + 326*t] = A[i + 326*t]; R[i + 327*t] = A[i + 327*t]; R[i + 328*t] = A[i + 328*t]; R[i + 329*t] = A[i + 329*t]; R[i + 330*t] = A[i + 330*t]; R[i + 331*t] = A[i + 331*t]; R[i + 332*t] = A[i + 332*t]; R[i + 333*t] = A[i + 333*t]; R[i + 334*t] = A[i + 334*t]; R[i + 335*t] = A[i + 335*t]; R[i + 336*t] = A[i + 336*t]; R[i + 337*t] = A[i + 337*t]; R[i + 338*t] = A[i + 338*t]; R[i + 339*t] = A[i + 339*t]; R[i + 340*t] = A[i + 340*t]; __syncthreads(); for (int iter=0; iter< n_iter; iter++) { R[i + 341*t] = Op[i + 0*t] ? R[B[i + 0*t]] * R[C[i + 0*t]] : R[B[i + 0*t]] + R[C[i + 0*t]]; R[i + 342*t] = Op[i + 1*t] ? R[B[i + 1*t]] * R[C[i + 1*t]] : R[B[i + 1*t]] + R[C[i + 1*t]]; R[i + 343*t] = Op[i + 2*t] ? R[B[i + 2*t]] * R[C[i + 2*t]] : R[B[i + 2*t]] + R[C[i + 2*t]]; R[i + 344*t] = Op[i + 3*t] ? R[B[i + 3*t]] * R[C[i + 3*t]] : R[B[i + 3*t]] + R[C[i + 3*t]]; R[i + 345*t] = Op[i + 4*t] ? R[B[i + 4*t]] * R[C[i + 4*t]] : R[B[i + 4*t]] + R[C[i + 4*t]]; R[i + 346*t] = Op[i + 5*t] ? R[B[i + 5*t]] * R[C[i + 5*t]] : R[B[i + 5*t]] + R[C[i + 5*t]]; R[i + 347*t] = Op[i + 6*t] ? R[B[i + 6*t]] * R[C[i + 6*t]] : R[B[i + 6*t]] + R[C[i + 6*t]]; R[i + 348*t] = Op[i + 7*t] ? R[B[i + 7*t]] * R[C[i + 7*t]] : R[B[i + 7*t]] + R[C[i + 7*t]]; R[i + 349*t] = Op[i + 8*t] ? R[B[i + 8*t]] * R[C[i + 8*t]] : R[B[i + 8*t]] + R[C[i + 8*t]]; R[i + 350*t] = Op[i + 9*t] ? R[B[i + 9*t]] * R[C[i + 9*t]] : R[B[i + 9*t]] + R[C[i + 9*t]]; R[i + 351*t] = Op[i + 10*t] ? R[B[i + 10*t]] * R[C[i + 10*t]] : R[B[i + 10*t]] + R[C[i + 10*t]]; R[i + 352*t] = Op[i + 11*t] ? R[B[i + 11*t]] * R[C[i + 11*t]] : R[B[i + 11*t]] + R[C[i + 11*t]]; R[i + 353*t] = Op[i + 12*t] ? R[B[i + 12*t]] * R[C[i + 12*t]] : R[B[i + 12*t]] + R[C[i + 12*t]]; R[i + 354*t] = Op[i + 13*t] ? R[B[i + 13*t]] * R[C[i + 13*t]] : R[B[i + 13*t]] + R[C[i + 13*t]]; R[i + 355*t] = Op[i + 14*t] ? R[B[i + 14*t]] * R[C[i + 14*t]] : R[B[i + 14*t]] + R[C[i + 14*t]]; R[i + 356*t] = Op[i + 15*t] ? R[B[i + 15*t]] * R[C[i + 15*t]] : R[B[i + 15*t]] + R[C[i + 15*t]]; R[i + 357*t] = Op[i + 16*t] ? R[B[i + 16*t]] * R[C[i + 16*t]] : R[B[i + 16*t]] + R[C[i + 16*t]]; R[i + 358*t] = Op[i + 17*t] ? R[B[i + 17*t]] * R[C[i + 17*t]] : R[B[i + 17*t]] + R[C[i + 17*t]]; R[i + 359*t] = Op[i + 18*t] ? R[B[i + 18*t]] * R[C[i + 18*t]] : R[B[i + 18*t]] + R[C[i + 18*t]]; R[i + 360*t] = Op[i + 19*t] ? R[B[i + 19*t]] * R[C[i + 19*t]] : R[B[i + 19*t]] + R[C[i + 19*t]]; R[i + 361*t] = Op[i + 20*t] ? R[B[i + 20*t]] * R[C[i + 20*t]] : R[B[i + 20*t]] + R[C[i + 20*t]]; R[i + 362*t] = Op[i + 21*t] ? R[B[i + 21*t]] * R[C[i + 21*t]] : R[B[i + 21*t]] + R[C[i + 21*t]]; R[i + 363*t] = Op[i + 22*t] ? R[B[i + 22*t]] * R[C[i + 22*t]] : R[B[i + 22*t]] + R[C[i + 22*t]]; R[i + 364*t] = Op[i + 23*t] ? R[B[i + 23*t]] * R[C[i + 23*t]] : R[B[i + 23*t]] + R[C[i + 23*t]]; R[i + 365*t] = Op[i + 24*t] ? R[B[i + 24*t]] * R[C[i + 24*t]] : R[B[i + 24*t]] + R[C[i + 24*t]]; R[i + 366*t] = Op[i + 25*t] ? R[B[i + 25*t]] * R[C[i + 25*t]] : R[B[i + 25*t]] + R[C[i + 25*t]]; R[i + 367*t] = Op[i + 26*t] ? R[B[i + 26*t]] * R[C[i + 26*t]] : R[B[i + 26*t]] + R[C[i + 26*t]]; R[i + 368*t] = Op[i + 27*t] ? R[B[i + 27*t]] * R[C[i + 27*t]] : R[B[i + 27*t]] + R[C[i + 27*t]]; R[i + 369*t] = Op[i + 28*t] ? R[B[i + 28*t]] * R[C[i + 28*t]] : R[B[i + 28*t]] + R[C[i + 28*t]]; R[i + 370*t] = Op[i + 29*t] ? R[B[i + 29*t]] * R[C[i + 29*t]] : R[B[i + 29*t]] + R[C[i + 29*t]]; R[i + 371*t] = Op[i + 30*t] ? R[B[i + 30*t]] * R[C[i + 30*t]] : R[B[i + 30*t]] + R[C[i + 30*t]]; R[i + 372*t] = Op[i + 31*t] ? R[B[i + 31*t]] * R[C[i + 31*t]] : R[B[i + 31*t]] + R[C[i + 31*t]]; R[i + 373*t] = Op[i + 32*t] ? R[B[i + 32*t]] * R[C[i + 32*t]] : R[B[i + 32*t]] + R[C[i + 32*t]]; R[i + 374*t] = Op[i + 33*t] ? R[B[i + 33*t]] * R[C[i + 33*t]] : R[B[i + 33*t]] + R[C[i + 33*t]]; R[i + 375*t] = Op[i + 34*t] ? R[B[i + 34*t]] * R[C[i + 34*t]] : R[B[i + 34*t]] + R[C[i + 34*t]]; R[i + 376*t] = Op[i + 35*t] ? R[B[i + 35*t]] * R[C[i + 35*t]] : R[B[i + 35*t]] + R[C[i + 35*t]]; R[i + 377*t] = Op[i + 36*t] ? R[B[i + 36*t]] * R[C[i + 36*t]] : R[B[i + 36*t]] + R[C[i + 36*t]]; R[i + 378*t] = Op[i + 37*t] ? R[B[i + 37*t]] * R[C[i + 37*t]] : R[B[i + 37*t]] + R[C[i + 37*t]]; R[i + 379*t] = Op[i + 38*t] ? R[B[i + 38*t]] * R[C[i + 38*t]] : R[B[i + 38*t]] + R[C[i + 38*t]]; R[i + 380*t] = Op[i + 39*t] ? R[B[i + 39*t]] * R[C[i + 39*t]] : R[B[i + 39*t]] + R[C[i + 39*t]]; R[i + 381*t] = Op[i + 40*t] ? R[B[i + 40*t]] * R[C[i + 40*t]] : R[B[i + 40*t]] + R[C[i + 40*t]]; R[i + 382*t] = Op[i + 41*t] ? R[B[i + 41*t]] * R[C[i + 41*t]] : R[B[i + 41*t]] + R[C[i + 41*t]]; R[i + 383*t] = Op[i + 42*t] ? R[B[i + 42*t]] * R[C[i + 42*t]] : R[B[i + 42*t]] + R[C[i + 42*t]]; R[i + 384*t] = Op[i + 43*t] ? R[B[i + 43*t]] * R[C[i + 43*t]] : R[B[i + 43*t]] + R[C[i + 43*t]]; R[i + 385*t] = Op[i + 44*t] ? R[B[i + 44*t]] * R[C[i + 44*t]] : R[B[i + 44*t]] + R[C[i + 44*t]]; R[i + 386*t] = Op[i + 45*t] ? R[B[i + 45*t]] * R[C[i + 45*t]] : R[B[i + 45*t]] + R[C[i + 45*t]]; R[i + 387*t] = Op[i + 46*t] ? R[B[i + 46*t]] * R[C[i + 46*t]] : R[B[i + 46*t]] + R[C[i + 46*t]]; R[i + 388*t] = Op[i + 47*t] ? R[B[i + 47*t]] * R[C[i + 47*t]] : R[B[i + 47*t]] + R[C[i + 47*t]]; R[i + 389*t] = Op[i + 48*t] ? R[B[i + 48*t]] * R[C[i + 48*t]] : R[B[i + 48*t]] + R[C[i + 48*t]]; R[i + 390*t] = Op[i + 49*t] ? R[B[i + 49*t]] * R[C[i + 49*t]] : R[B[i + 49*t]] + R[C[i + 49*t]]; R[i + 391*t] = Op[i + 50*t] ? R[B[i + 50*t]] * R[C[i + 50*t]] : R[B[i + 50*t]] + R[C[i + 50*t]]; R[i + 392*t] = Op[i + 51*t] ? R[B[i + 51*t]] * R[C[i + 51*t]] : R[B[i + 51*t]] + R[C[i + 51*t]]; R[i + 393*t] = Op[i + 52*t] ? R[B[i + 52*t]] * R[C[i + 52*t]] : R[B[i + 52*t]] + R[C[i + 52*t]]; R[i + 394*t] = Op[i + 53*t] ? R[B[i + 53*t]] * R[C[i + 53*t]] : R[B[i + 53*t]] + R[C[i + 53*t]]; R[i + 395*t] = Op[i + 54*t] ? R[B[i + 54*t]] * R[C[i + 54*t]] : R[B[i + 54*t]] + R[C[i + 54*t]]; R[i + 396*t] = Op[i + 55*t] ? R[B[i + 55*t]] * R[C[i + 55*t]] : R[B[i + 55*t]] + R[C[i + 55*t]]; R[i + 397*t] = Op[i + 56*t] ? R[B[i + 56*t]] * R[C[i + 56*t]] : R[B[i + 56*t]] + R[C[i + 56*t]]; R[i + 398*t] = Op[i + 57*t] ? R[B[i + 57*t]] * R[C[i + 57*t]] : R[B[i + 57*t]] + R[C[i + 57*t]]; R[i + 399*t] = Op[i + 58*t] ? R[B[i + 58*t]] * R[C[i + 58*t]] : R[B[i + 58*t]] + R[C[i + 58*t]]; R[i + 400*t] = Op[i + 59*t] ? R[B[i + 59*t]] * R[C[i + 59*t]] : R[B[i + 59*t]] + R[C[i + 59*t]]; R[i + 401*t] = Op[i + 60*t] ? R[B[i + 60*t]] * R[C[i + 60*t]] : R[B[i + 60*t]] + R[C[i + 60*t]]; R[i + 402*t] = Op[i + 61*t] ? R[B[i + 61*t]] * R[C[i + 61*t]] : R[B[i + 61*t]] + R[C[i + 61*t]]; R[i + 403*t] = Op[i + 62*t] ? R[B[i + 62*t]] * R[C[i + 62*t]] : R[B[i + 62*t]] + R[C[i + 62*t]]; R[i + 404*t] = Op[i + 63*t] ? R[B[i + 63*t]] * R[C[i + 63*t]] : R[B[i + 63*t]] + R[C[i + 63*t]]; R[i + 405*t] = Op[i + 64*t] ? R[B[i + 64*t]] * R[C[i + 64*t]] : R[B[i + 64*t]] + R[C[i + 64*t]]; R[i + 406*t] = Op[i + 65*t] ? R[B[i + 65*t]] * R[C[i + 65*t]] : R[B[i + 65*t]] + R[C[i + 65*t]]; R[i + 407*t] = Op[i + 66*t] ? R[B[i + 66*t]] * R[C[i + 66*t]] : R[B[i + 66*t]] + R[C[i + 66*t]]; R[i + 408*t] = Op[i + 67*t] ? R[B[i + 67*t]] * R[C[i + 67*t]] : R[B[i + 67*t]] + R[C[i + 67*t]]; R[i + 409*t] = Op[i + 68*t] ? R[B[i + 68*t]] * R[C[i + 68*t]] : R[B[i + 68*t]] + R[C[i + 68*t]]; R[i + 410*t] = Op[i + 69*t] ? R[B[i + 69*t]] * R[C[i + 69*t]] : R[B[i + 69*t]] + R[C[i + 69*t]]; R[i + 411*t] = Op[i + 70*t] ? R[B[i + 70*t]] * R[C[i + 70*t]] : R[B[i + 70*t]] + R[C[i + 70*t]]; R[i + 412*t] = Op[i + 71*t] ? R[B[i + 71*t]] * R[C[i + 71*t]] : R[B[i + 71*t]] + R[C[i + 71*t]]; R[i + 413*t] = Op[i + 72*t] ? R[B[i + 72*t]] * R[C[i + 72*t]] : R[B[i + 72*t]] + R[C[i + 72*t]]; R[i + 414*t] = Op[i + 73*t] ? R[B[i + 73*t]] * R[C[i + 73*t]] : R[B[i + 73*t]] + R[C[i + 73*t]]; R[i + 415*t] = Op[i + 74*t] ? R[B[i + 74*t]] * R[C[i + 74*t]] : R[B[i + 74*t]] + R[C[i + 74*t]]; R[i + 416*t] = Op[i + 75*t] ? R[B[i + 75*t]] * R[C[i + 75*t]] : R[B[i + 75*t]] + R[C[i + 75*t]]; R[i + 417*t] = Op[i + 76*t] ? R[B[i + 76*t]] * R[C[i + 76*t]] : R[B[i + 76*t]] + R[C[i + 76*t]]; R[i + 418*t] = Op[i + 77*t] ? R[B[i + 77*t]] * R[C[i + 77*t]] : R[B[i + 77*t]] + R[C[i + 77*t]]; R[i + 419*t] = Op[i + 78*t] ? R[B[i + 78*t]] * R[C[i + 78*t]] : R[B[i + 78*t]] + R[C[i + 78*t]]; R[i + 420*t] = Op[i + 79*t] ? R[B[i + 79*t]] * R[C[i + 79*t]] : R[B[i + 79*t]] + R[C[i + 79*t]]; R[i + 421*t] = Op[i + 80*t] ? R[B[i + 80*t]] * R[C[i + 80*t]] : R[B[i + 80*t]] + R[C[i + 80*t]]; R[i + 422*t] = Op[i + 81*t] ? R[B[i + 81*t]] * R[C[i + 81*t]] : R[B[i + 81*t]] + R[C[i + 81*t]]; R[i + 423*t] = Op[i + 82*t] ? R[B[i + 82*t]] * R[C[i + 82*t]] : R[B[i + 82*t]] + R[C[i + 82*t]]; R[i + 424*t] = Op[i + 83*t] ? R[B[i + 83*t]] * R[C[i + 83*t]] : R[B[i + 83*t]] + R[C[i + 83*t]]; R[i + 425*t] = Op[i + 84*t] ? R[B[i + 84*t]] * R[C[i + 84*t]] : R[B[i + 84*t]] + R[C[i + 84*t]]; R[i + 426*t] = Op[i + 85*t] ? R[B[i + 85*t]] * R[C[i + 85*t]] : R[B[i + 85*t]] + R[C[i + 85*t]]; R[i + 427*t] = Op[i + 86*t] ? R[B[i + 86*t]] * R[C[i + 86*t]] : R[B[i + 86*t]] + R[C[i + 86*t]]; R[i + 428*t] = Op[i + 87*t] ? R[B[i + 87*t]] * R[C[i + 87*t]] : R[B[i + 87*t]] + R[C[i + 87*t]]; R[i + 429*t] = Op[i + 88*t] ? R[B[i + 88*t]] * R[C[i + 88*t]] : R[B[i + 88*t]] + R[C[i + 88*t]]; R[i + 430*t] = Op[i + 89*t] ? R[B[i + 89*t]] * R[C[i + 89*t]] : R[B[i + 89*t]] + R[C[i + 89*t]]; R[i + 431*t] = Op[i + 90*t] ? R[B[i + 90*t]] * R[C[i + 90*t]] : R[B[i + 90*t]] + R[C[i + 90*t]]; R[i + 432*t] = Op[i + 91*t] ? R[B[i + 91*t]] * R[C[i + 91*t]] : R[B[i + 91*t]] + R[C[i + 91*t]]; R[i + 433*t] = Op[i + 92*t] ? R[B[i + 92*t]] * R[C[i + 92*t]] : R[B[i + 92*t]] + R[C[i + 92*t]]; R[i + 434*t] = Op[i + 93*t] ? R[B[i + 93*t]] * R[C[i + 93*t]] : R[B[i + 93*t]] + R[C[i + 93*t]]; R[i + 435*t] = Op[i + 94*t] ? R[B[i + 94*t]] * R[C[i + 94*t]] : R[B[i + 94*t]] + R[C[i + 94*t]]; R[i + 436*t] = Op[i + 95*t] ? R[B[i + 95*t]] * R[C[i + 95*t]] : R[B[i + 95*t]] + R[C[i + 95*t]]; R[i + 437*t] = Op[i + 96*t] ? R[B[i + 96*t]] * R[C[i + 96*t]] : R[B[i + 96*t]] + R[C[i + 96*t]]; R[i + 438*t] = Op[i + 97*t] ? R[B[i + 97*t]] * R[C[i + 97*t]] : R[B[i + 97*t]] + R[C[i + 97*t]]; R[i + 439*t] = Op[i + 98*t] ? R[B[i + 98*t]] * R[C[i + 98*t]] : R[B[i + 98*t]] + R[C[i + 98*t]]; R[i + 440*t] = Op[i + 99*t] ? R[B[i + 99*t]] * R[C[i + 99*t]] : R[B[i + 99*t]] + R[C[i + 99*t]]; R[i + 441*t] = Op[i + 100*t] ? R[B[i + 100*t]] * R[C[i + 100*t]] : R[B[i + 100*t]] + R[C[i + 100*t]]; R[i + 442*t] = Op[i + 101*t] ? R[B[i + 101*t]] * R[C[i + 101*t]] : R[B[i + 101*t]] + R[C[i + 101*t]]; R[i + 443*t] = Op[i + 102*t] ? R[B[i + 102*t]] * R[C[i + 102*t]] : R[B[i + 102*t]] + R[C[i + 102*t]]; R[i + 444*t] = Op[i + 103*t] ? R[B[i + 103*t]] * R[C[i + 103*t]] : R[B[i + 103*t]] + R[C[i + 103*t]]; R[i + 445*t] = Op[i + 104*t] ? R[B[i + 104*t]] * R[C[i + 104*t]] : R[B[i + 104*t]] + R[C[i + 104*t]]; R[i + 446*t] = Op[i + 105*t] ? R[B[i + 105*t]] * R[C[i + 105*t]] : R[B[i + 105*t]] + R[C[i + 105*t]]; R[i + 447*t] = Op[i + 106*t] ? R[B[i + 106*t]] * R[C[i + 106*t]] : R[B[i + 106*t]] + R[C[i + 106*t]]; __syncthreads(); R[i + 448*t] = Op[i + 107*t] ? R[B[i + 107*t]] * R[C[i + 107*t]] : R[B[i + 107*t]] + R[C[i + 107*t]]; R[i + 449*t] = Op[i + 108*t] ? R[B[i + 108*t]] * R[C[i + 108*t]] : R[B[i + 108*t]] + R[C[i + 108*t]]; R[i + 450*t] = Op[i + 109*t] ? R[B[i + 109*t]] * R[C[i + 109*t]] : R[B[i + 109*t]] + R[C[i + 109*t]]; R[i + 451*t] = Op[i + 110*t] ? R[B[i + 110*t]] * R[C[i + 110*t]] : R[B[i + 110*t]] + R[C[i + 110*t]]; R[i + 452*t] = Op[i + 111*t] ? R[B[i + 111*t]] * R[C[i + 111*t]] : R[B[i + 111*t]] + R[C[i + 111*t]]; R[i + 453*t] = Op[i + 112*t] ? R[B[i + 112*t]] * R[C[i + 112*t]] : R[B[i + 112*t]] + R[C[i + 112*t]]; R[i + 454*t] = Op[i + 113*t] ? R[B[i + 113*t]] * R[C[i + 113*t]] : R[B[i + 113*t]] + R[C[i + 113*t]]; R[i + 455*t] = Op[i + 114*t] ? R[B[i + 114*t]] * R[C[i + 114*t]] : R[B[i + 114*t]] + R[C[i + 114*t]]; R[i + 456*t] = Op[i + 115*t] ? R[B[i + 115*t]] * R[C[i + 115*t]] : R[B[i + 115*t]] + R[C[i + 115*t]]; R[i + 457*t] = Op[i + 116*t] ? R[B[i + 116*t]] * R[C[i + 116*t]] : R[B[i + 116*t]] + R[C[i + 116*t]]; R[i + 458*t] = Op[i + 117*t] ? R[B[i + 117*t]] * R[C[i + 117*t]] : R[B[i + 117*t]] + R[C[i + 117*t]]; R[i + 459*t] = Op[i + 118*t] ? R[B[i + 118*t]] * R[C[i + 118*t]] : R[B[i + 118*t]] + R[C[i + 118*t]]; R[i + 460*t] = Op[i + 119*t] ? R[B[i + 119*t]] * R[C[i + 119*t]] : R[B[i + 119*t]] + R[C[i + 119*t]]; R[i + 461*t] = Op[i + 120*t] ? R[B[i + 120*t]] * R[C[i + 120*t]] : R[B[i + 120*t]] + R[C[i + 120*t]]; R[i + 462*t] = Op[i + 121*t] ? R[B[i + 121*t]] * R[C[i + 121*t]] : R[B[i + 121*t]] + R[C[i + 121*t]]; R[i + 463*t] = Op[i + 122*t] ? R[B[i + 122*t]] * R[C[i + 122*t]] : R[B[i + 122*t]] + R[C[i + 122*t]]; R[i + 464*t] = Op[i + 123*t] ? R[B[i + 123*t]] * R[C[i + 123*t]] : R[B[i + 123*t]] + R[C[i + 123*t]]; R[i + 465*t] = Op[i + 124*t] ? R[B[i + 124*t]] * R[C[i + 124*t]] : R[B[i + 124*t]] + R[C[i + 124*t]]; R[i + 466*t] = Op[i + 125*t] ? R[B[i + 125*t]] * R[C[i + 125*t]] : R[B[i + 125*t]] + R[C[i + 125*t]]; R[i + 467*t] = Op[i + 126*t] ? R[B[i + 126*t]] * R[C[i + 126*t]] : R[B[i + 126*t]] + R[C[i + 126*t]]; R[i + 468*t] = Op[i + 127*t] ? R[B[i + 127*t]] * R[C[i + 127*t]] : R[B[i + 127*t]] + R[C[i + 127*t]]; R[i + 469*t] = Op[i + 128*t] ? R[B[i + 128*t]] * R[C[i + 128*t]] : R[B[i + 128*t]] + R[C[i + 128*t]]; R[i + 470*t] = Op[i + 129*t] ? R[B[i + 129*t]] * R[C[i + 129*t]] : R[B[i + 129*t]] + R[C[i + 129*t]]; R[i + 471*t] = Op[i + 130*t] ? R[B[i + 130*t]] * R[C[i + 130*t]] : R[B[i + 130*t]] + R[C[i + 130*t]]; R[i + 472*t] = Op[i + 131*t] ? R[B[i + 131*t]] * R[C[i + 131*t]] : R[B[i + 131*t]] + R[C[i + 131*t]]; R[i + 473*t] = Op[i + 132*t] ? R[B[i + 132*t]] * R[C[i + 132*t]] : R[B[i + 132*t]] + R[C[i + 132*t]]; R[i + 474*t] = Op[i + 133*t] ? R[B[i + 133*t]] * R[C[i + 133*t]] : R[B[i + 133*t]] + R[C[i + 133*t]]; R[i + 475*t] = Op[i + 134*t] ? R[B[i + 134*t]] * R[C[i + 134*t]] : R[B[i + 134*t]] + R[C[i + 134*t]]; R[i + 476*t] = Op[i + 135*t] ? R[B[i + 135*t]] * R[C[i + 135*t]] : R[B[i + 135*t]] + R[C[i + 135*t]]; R[i + 477*t] = Op[i + 136*t] ? R[B[i + 136*t]] * R[C[i + 136*t]] : R[B[i + 136*t]] + R[C[i + 136*t]]; R[i + 478*t] = Op[i + 137*t] ? R[B[i + 137*t]] * R[C[i + 137*t]] : R[B[i + 137*t]] + R[C[i + 137*t]]; R[i + 479*t] = Op[i + 138*t] ? R[B[i + 138*t]] * R[C[i + 138*t]] : R[B[i + 138*t]] + R[C[i + 138*t]]; R[i + 480*t] = Op[i + 139*t] ? R[B[i + 139*t]] * R[C[i + 139*t]] : R[B[i + 139*t]] + R[C[i + 139*t]]; R[i + 481*t] = Op[i + 140*t] ? R[B[i + 140*t]] * R[C[i + 140*t]] : R[B[i + 140*t]] + R[C[i + 140*t]]; R[i + 482*t] = Op[i + 141*t] ? R[B[i + 141*t]] * R[C[i + 141*t]] : R[B[i + 141*t]] + R[C[i + 141*t]]; R[i + 483*t] = Op[i + 142*t] ? R[B[i + 142*t]] * R[C[i + 142*t]] : R[B[i + 142*t]] + R[C[i + 142*t]]; R[i + 484*t] = Op[i + 143*t] ? R[B[i + 143*t]] * R[C[i + 143*t]] : R[B[i + 143*t]] + R[C[i + 143*t]]; R[i + 485*t] = Op[i + 144*t] ? R[B[i + 144*t]] * R[C[i + 144*t]] : R[B[i + 144*t]] + R[C[i + 144*t]]; R[i + 486*t] = Op[i + 145*t] ? R[B[i + 145*t]] * R[C[i + 145*t]] : R[B[i + 145*t]] + R[C[i + 145*t]]; R[i + 487*t] = Op[i + 146*t] ? R[B[i + 146*t]] * R[C[i + 146*t]] : R[B[i + 146*t]] + R[C[i + 146*t]]; R[i + 488*t] = Op[i + 147*t] ? R[B[i + 147*t]] * R[C[i + 147*t]] : R[B[i + 147*t]] + R[C[i + 147*t]]; R[i + 489*t] = Op[i + 148*t] ? R[B[i + 148*t]] * R[C[i + 148*t]] : R[B[i + 148*t]] + R[C[i + 148*t]]; R[i + 490*t] = Op[i + 149*t] ? R[B[i + 149*t]] * R[C[i + 149*t]] : R[B[i + 149*t]] + R[C[i + 149*t]]; R[i + 491*t] = Op[i + 150*t] ? R[B[i + 150*t]] * R[C[i + 150*t]] : R[B[i + 150*t]] + R[C[i + 150*t]]; R[i + 492*t] = Op[i + 151*t] ? R[B[i + 151*t]] * R[C[i + 151*t]] : R[B[i + 151*t]] + R[C[i + 151*t]]; R[i + 493*t] = Op[i + 152*t] ? R[B[i + 152*t]] * R[C[i + 152*t]] : R[B[i + 152*t]] + R[C[i + 152*t]]; R[i + 494*t] = Op[i + 153*t] ? R[B[i + 153*t]] * R[C[i + 153*t]] : R[B[i + 153*t]] + R[C[i + 153*t]]; R[i + 495*t] = Op[i + 154*t] ? R[B[i + 154*t]] * R[C[i + 154*t]] : R[B[i + 154*t]] + R[C[i + 154*t]]; R[i + 496*t] = Op[i + 155*t] ? R[B[i + 155*t]] * R[C[i + 155*t]] : R[B[i + 155*t]] + R[C[i + 155*t]]; R[i + 497*t] = Op[i + 156*t] ? R[B[i + 156*t]] * R[C[i + 156*t]] : R[B[i + 156*t]] + R[C[i + 156*t]]; R[i + 498*t] = Op[i + 157*t] ? R[B[i + 157*t]] * R[C[i + 157*t]] : R[B[i + 157*t]] + R[C[i + 157*t]]; R[i + 499*t] = Op[i + 158*t] ? R[B[i + 158*t]] * R[C[i + 158*t]] : R[B[i + 158*t]] + R[C[i + 158*t]]; R[i + 500*t] = Op[i + 159*t] ? R[B[i + 159*t]] * R[C[i + 159*t]] : R[B[i + 159*t]] + R[C[i + 159*t]]; R[i + 501*t] = Op[i + 160*t] ? R[B[i + 160*t]] * R[C[i + 160*t]] : R[B[i + 160*t]] + R[C[i + 160*t]]; R[i + 502*t] = Op[i + 161*t] ? R[B[i + 161*t]] * R[C[i + 161*t]] : R[B[i + 161*t]] + R[C[i + 161*t]]; R[i + 503*t] = Op[i + 162*t] ? R[B[i + 162*t]] * R[C[i + 162*t]] : R[B[i + 162*t]] + R[C[i + 162*t]]; R[i + 504*t] = Op[i + 163*t] ? R[B[i + 163*t]] * R[C[i + 163*t]] : R[B[i + 163*t]] + R[C[i + 163*t]]; R[i + 505*t] = Op[i + 164*t] ? R[B[i + 164*t]] * R[C[i + 164*t]] : R[B[i + 164*t]] + R[C[i + 164*t]]; R[i + 506*t] = Op[i + 165*t] ? R[B[i + 165*t]] * R[C[i + 165*t]] : R[B[i + 165*t]] + R[C[i + 165*t]]; R[i + 507*t] = Op[i + 166*t] ? R[B[i + 166*t]] * R[C[i + 166*t]] : R[B[i + 166*t]] + R[C[i + 166*t]]; R[i + 508*t] = Op[i + 167*t] ? R[B[i + 167*t]] * R[C[i + 167*t]] : R[B[i + 167*t]] + R[C[i + 167*t]]; R[i + 509*t] = Op[i + 168*t] ? R[B[i + 168*t]] * R[C[i + 168*t]] : R[B[i + 168*t]] + R[C[i + 168*t]]; R[i + 510*t] = Op[i + 169*t] ? R[B[i + 169*t]] * R[C[i + 169*t]] : R[B[i + 169*t]] + R[C[i + 169*t]]; R[i + 511*t] = Op[i + 170*t] ? R[B[i + 170*t]] * R[C[i + 170*t]] : R[B[i + 170*t]] + R[C[i + 170*t]]; R[i + 512*t] = Op[i + 171*t] ? R[B[i + 171*t]] * R[C[i + 171*t]] : R[B[i + 171*t]] + R[C[i + 171*t]]; __syncthreads(); R[i + 513*t] = Op[i + 172*t] ? R[B[i + 172*t]] * R[C[i + 172*t]] : R[B[i + 172*t]] + R[C[i + 172*t]]; R[i + 514*t] = Op[i + 173*t] ? R[B[i + 173*t]] * R[C[i + 173*t]] : R[B[i + 173*t]] + R[C[i + 173*t]]; R[i + 515*t] = Op[i + 174*t] ? R[B[i + 174*t]] * R[C[i + 174*t]] : R[B[i + 174*t]] + R[C[i + 174*t]]; R[i + 516*t] = Op[i + 175*t] ? R[B[i + 175*t]] * R[C[i + 175*t]] : R[B[i + 175*t]] + R[C[i + 175*t]]; R[i + 517*t] = Op[i + 176*t] ? R[B[i + 176*t]] * R[C[i + 176*t]] : R[B[i + 176*t]] + R[C[i + 176*t]]; R[i + 518*t] = Op[i + 177*t] ? R[B[i + 177*t]] * R[C[i + 177*t]] : R[B[i + 177*t]] + R[C[i + 177*t]]; R[i + 519*t] = Op[i + 178*t] ? R[B[i + 178*t]] * R[C[i + 178*t]] : R[B[i + 178*t]] + R[C[i + 178*t]]; R[i + 520*t] = Op[i + 179*t] ? R[B[i + 179*t]] * R[C[i + 179*t]] : R[B[i + 179*t]] + R[C[i + 179*t]]; R[i + 521*t] = Op[i + 180*t] ? R[B[i + 180*t]] * R[C[i + 180*t]] : R[B[i + 180*t]] + R[C[i + 180*t]]; R[i + 522*t] = Op[i + 181*t] ? R[B[i + 181*t]] * R[C[i + 181*t]] : R[B[i + 181*t]] + R[C[i + 181*t]]; R[i + 523*t] = Op[i + 182*t] ? R[B[i + 182*t]] * R[C[i + 182*t]] : R[B[i + 182*t]] + R[C[i + 182*t]]; R[i + 524*t] = Op[i + 183*t] ? R[B[i + 183*t]] * R[C[i + 183*t]] : R[B[i + 183*t]] + R[C[i + 183*t]]; R[i + 525*t] = Op[i + 184*t] ? R[B[i + 184*t]] * R[C[i + 184*t]] : R[B[i + 184*t]] + R[C[i + 184*t]]; R[i + 526*t] = Op[i + 185*t] ? R[B[i + 185*t]] * R[C[i + 185*t]] : R[B[i + 185*t]] + R[C[i + 185*t]]; R[i + 527*t] = Op[i + 186*t] ? R[B[i + 186*t]] * R[C[i + 186*t]] : R[B[i + 186*t]] + R[C[i + 186*t]]; R[i + 528*t] = Op[i + 187*t] ? R[B[i + 187*t]] * R[C[i + 187*t]] : R[B[i + 187*t]] + R[C[i + 187*t]]; R[i + 529*t] = Op[i + 188*t] ? R[B[i + 188*t]] * R[C[i + 188*t]] : R[B[i + 188*t]] + R[C[i + 188*t]]; R[i + 530*t] = Op[i + 189*t] ? R[B[i + 189*t]] * R[C[i + 189*t]] : R[B[i + 189*t]] + R[C[i + 189*t]]; R[i + 531*t] = Op[i + 190*t] ? R[B[i + 190*t]] * R[C[i + 190*t]] : R[B[i + 190*t]] + R[C[i + 190*t]]; R[i + 532*t] = Op[i + 191*t] ? R[B[i + 191*t]] * R[C[i + 191*t]] : R[B[i + 191*t]] + R[C[i + 191*t]]; R[i + 533*t] = Op[i + 192*t] ? R[B[i + 192*t]] * R[C[i + 192*t]] : R[B[i + 192*t]] + R[C[i + 192*t]]; R[i + 534*t] = Op[i + 193*t] ? R[B[i + 193*t]] * R[C[i + 193*t]] : R[B[i + 193*t]] + R[C[i + 193*t]]; R[i + 535*t] = Op[i + 194*t] ? R[B[i + 194*t]] * R[C[i + 194*t]] : R[B[i + 194*t]] + R[C[i + 194*t]]; R[i + 536*t] = Op[i + 195*t] ? R[B[i + 195*t]] * R[C[i + 195*t]] : R[B[i + 195*t]] + R[C[i + 195*t]]; R[i + 537*t] = Op[i + 196*t] ? R[B[i + 196*t]] * R[C[i + 196*t]] : R[B[i + 196*t]] + R[C[i + 196*t]]; R[i + 538*t] = Op[i + 197*t] ? R[B[i + 197*t]] * R[C[i + 197*t]] : R[B[i + 197*t]] + R[C[i + 197*t]]; R[i + 539*t] = Op[i + 198*t] ? R[B[i + 198*t]] * R[C[i + 198*t]] : R[B[i + 198*t]] + R[C[i + 198*t]]; R[i + 540*t] = Op[i + 199*t] ? R[B[i + 199*t]] * R[C[i + 199*t]] : R[B[i + 199*t]] + R[C[i + 199*t]]; R[i + 541*t] = Op[i + 200*t] ? R[B[i + 200*t]] * R[C[i + 200*t]] : R[B[i + 200*t]] + R[C[i + 200*t]]; R[i + 542*t] = Op[i + 201*t] ? R[B[i + 201*t]] * R[C[i + 201*t]] : R[B[i + 201*t]] + R[C[i + 201*t]]; R[i + 543*t] = Op[i + 202*t] ? R[B[i + 202*t]] * R[C[i + 202*t]] : R[B[i + 202*t]] + R[C[i + 202*t]]; R[i + 544*t] = Op[i + 203*t] ? R[B[i + 203*t]] * R[C[i + 203*t]] : R[B[i + 203*t]] + R[C[i + 203*t]]; R[i + 545*t] = Op[i + 204*t] ? R[B[i + 204*t]] * R[C[i + 204*t]] : R[B[i + 204*t]] + R[C[i + 204*t]]; R[i + 546*t] = Op[i + 205*t] ? R[B[i + 205*t]] * R[C[i + 205*t]] : R[B[i + 205*t]] + R[C[i + 205*t]]; R[i + 547*t] = Op[i + 206*t] ? R[B[i + 206*t]] * R[C[i + 206*t]] : R[B[i + 206*t]] + R[C[i + 206*t]]; R[i + 548*t] = Op[i + 207*t] ? R[B[i + 207*t]] * R[C[i + 207*t]] : R[B[i + 207*t]] + R[C[i + 207*t]]; R[i + 549*t] = Op[i + 208*t] ? R[B[i + 208*t]] * R[C[i + 208*t]] : R[B[i + 208*t]] + R[C[i + 208*t]]; R[i + 550*t] = Op[i + 209*t] ? R[B[i + 209*t]] * R[C[i + 209*t]] : R[B[i + 209*t]] + R[C[i + 209*t]]; R[i + 551*t] = Op[i + 210*t] ? R[B[i + 210*t]] * R[C[i + 210*t]] : R[B[i + 210*t]] + R[C[i + 210*t]]; R[i + 552*t] = Op[i + 211*t] ? R[B[i + 211*t]] * R[C[i + 211*t]] : R[B[i + 211*t]] + R[C[i + 211*t]]; R[i + 553*t] = Op[i + 212*t] ? R[B[i + 212*t]] * R[C[i + 212*t]] : R[B[i + 212*t]] + R[C[i + 212*t]]; R[i + 554*t] = Op[i + 213*t] ? R[B[i + 213*t]] * R[C[i + 213*t]] : R[B[i + 213*t]] + R[C[i + 213*t]]; R[i + 555*t] = Op[i + 214*t] ? R[B[i + 214*t]] * R[C[i + 214*t]] : R[B[i + 214*t]] + R[C[i + 214*t]]; R[i + 556*t] = Op[i + 215*t] ? R[B[i + 215*t]] * R[C[i + 215*t]] : R[B[i + 215*t]] + R[C[i + 215*t]]; R[i + 557*t] = Op[i + 216*t] ? R[B[i + 216*t]] * R[C[i + 216*t]] : R[B[i + 216*t]] + R[C[i + 216*t]]; R[i + 558*t] = Op[i + 217*t] ? R[B[i + 217*t]] * R[C[i + 217*t]] : R[B[i + 217*t]] + R[C[i + 217*t]]; R[i + 559*t] = Op[i + 218*t] ? R[B[i + 218*t]] * R[C[i + 218*t]] : R[B[i + 218*t]] + R[C[i + 218*t]]; R[i + 560*t] = Op[i + 219*t] ? R[B[i + 219*t]] * R[C[i + 219*t]] : R[B[i + 219*t]] + R[C[i + 219*t]]; R[i + 561*t] = Op[i + 220*t] ? R[B[i + 220*t]] * R[C[i + 220*t]] : R[B[i + 220*t]] + R[C[i + 220*t]]; R[i + 562*t] = Op[i + 221*t] ? R[B[i + 221*t]] * R[C[i + 221*t]] : R[B[i + 221*t]] + R[C[i + 221*t]]; R[i + 563*t] = Op[i + 222*t] ? R[B[i + 222*t]] * R[C[i + 222*t]] : R[B[i + 222*t]] + R[C[i + 222*t]]; R[i + 564*t] = Op[i + 223*t] ? R[B[i + 223*t]] * R[C[i + 223*t]] : R[B[i + 223*t]] + R[C[i + 223*t]]; R[i + 565*t] = Op[i + 224*t] ? R[B[i + 224*t]] * R[C[i + 224*t]] : R[B[i + 224*t]] + R[C[i + 224*t]]; R[i + 566*t] = Op[i + 225*t] ? R[B[i + 225*t]] * R[C[i + 225*t]] : R[B[i + 225*t]] + R[C[i + 225*t]]; R[i + 567*t] = Op[i + 226*t] ? R[B[i + 226*t]] * R[C[i + 226*t]] : R[B[i + 226*t]] + R[C[i + 226*t]]; R[i + 568*t] = Op[i + 227*t] ? R[B[i + 227*t]] * R[C[i + 227*t]] : R[B[i + 227*t]] + R[C[i + 227*t]]; R[i + 569*t] = Op[i + 228*t] ? R[B[i + 228*t]] * R[C[i + 228*t]] : R[B[i + 228*t]] + R[C[i + 228*t]]; R[i + 570*t] = Op[i + 229*t] ? R[B[i + 229*t]] * R[C[i + 229*t]] : R[B[i + 229*t]] + R[C[i + 229*t]]; R[i + 571*t] = Op[i + 230*t] ? R[B[i + 230*t]] * R[C[i + 230*t]] : R[B[i + 230*t]] + R[C[i + 230*t]]; R[i + 572*t] = Op[i + 231*t] ? R[B[i + 231*t]] * R[C[i + 231*t]] : R[B[i + 231*t]] + R[C[i + 231*t]]; R[i + 573*t] = Op[i + 232*t] ? R[B[i + 232*t]] * R[C[i + 232*t]] : R[B[i + 232*t]] + R[C[i + 232*t]]; R[i + 574*t] = Op[i + 233*t] ? R[B[i + 233*t]] * R[C[i + 233*t]] : R[B[i + 233*t]] + R[C[i + 233*t]]; __syncthreads(); R[i + 575*t] = Op[i + 234*t] ? R[B[i + 234*t]] * R[C[i + 234*t]] : R[B[i + 234*t]] + R[C[i + 234*t]]; R[i + 576*t] = Op[i + 235*t] ? R[B[i + 235*t]] * R[C[i + 235*t]] : R[B[i + 235*t]] + R[C[i + 235*t]]; R[i + 577*t] = Op[i + 236*t] ? R[B[i + 236*t]] * R[C[i + 236*t]] : R[B[i + 236*t]] + R[C[i + 236*t]]; R[i + 578*t] = Op[i + 237*t] ? R[B[i + 237*t]] * R[C[i + 237*t]] : R[B[i + 237*t]] + R[C[i + 237*t]]; R[i + 579*t] = Op[i + 238*t] ? R[B[i + 238*t]] * R[C[i + 238*t]] : R[B[i + 238*t]] + R[C[i + 238*t]]; R[i + 580*t] = Op[i + 239*t] ? R[B[i + 239*t]] * R[C[i + 239*t]] : R[B[i + 239*t]] + R[C[i + 239*t]]; R[i + 581*t] = Op[i + 240*t] ? R[B[i + 240*t]] * R[C[i + 240*t]] : R[B[i + 240*t]] + R[C[i + 240*t]]; R[i + 582*t] = Op[i + 241*t] ? R[B[i + 241*t]] * R[C[i + 241*t]] : R[B[i + 241*t]] + R[C[i + 241*t]]; R[i + 583*t] = Op[i + 242*t] ? R[B[i + 242*t]] * R[C[i + 242*t]] : R[B[i + 242*t]] + R[C[i + 242*t]]; R[i + 584*t] = Op[i + 243*t] ? R[B[i + 243*t]] * R[C[i + 243*t]] : R[B[i + 243*t]] + R[C[i + 243*t]]; R[i + 585*t] = Op[i + 244*t] ? R[B[i + 244*t]] * R[C[i + 244*t]] : R[B[i + 244*t]] + R[C[i + 244*t]]; R[i + 586*t] = Op[i + 245*t] ? R[B[i + 245*t]] * R[C[i + 245*t]] : R[B[i + 245*t]] + R[C[i + 245*t]]; R[i + 587*t] = Op[i + 246*t] ? R[B[i + 246*t]] * R[C[i + 246*t]] : R[B[i + 246*t]] + R[C[i + 246*t]]; R[i + 588*t] = Op[i + 247*t] ? R[B[i + 247*t]] * R[C[i + 247*t]] : R[B[i + 247*t]] + R[C[i + 247*t]]; R[i + 589*t] = Op[i + 248*t] ? R[B[i + 248*t]] * R[C[i + 248*t]] : R[B[i + 248*t]] + R[C[i + 248*t]]; R[i + 590*t] = Op[i + 249*t] ? R[B[i + 249*t]] * R[C[i + 249*t]] : R[B[i + 249*t]] + R[C[i + 249*t]]; R[i + 591*t] = Op[i + 250*t] ? R[B[i + 250*t]] * R[C[i + 250*t]] : R[B[i + 250*t]] + R[C[i + 250*t]]; R[i + 592*t] = Op[i + 251*t] ? R[B[i + 251*t]] * R[C[i + 251*t]] : R[B[i + 251*t]] + R[C[i + 251*t]]; R[i + 593*t] = Op[i + 252*t] ? R[B[i + 252*t]] * R[C[i + 252*t]] : R[B[i + 252*t]] + R[C[i + 252*t]]; R[i + 594*t] = Op[i + 253*t] ? R[B[i + 253*t]] * R[C[i + 253*t]] : R[B[i + 253*t]] + R[C[i + 253*t]]; R[i + 595*t] = Op[i + 254*t] ? R[B[i + 254*t]] * R[C[i + 254*t]] : R[B[i + 254*t]] + R[C[i + 254*t]]; R[i + 596*t] = Op[i + 255*t] ? R[B[i + 255*t]] * R[C[i + 255*t]] : R[B[i + 255*t]] + R[C[i + 255*t]]; R[i + 597*t] = Op[i + 256*t] ? R[B[i + 256*t]] * R[C[i + 256*t]] : R[B[i + 256*t]] + R[C[i + 256*t]]; R[i + 598*t] = Op[i + 257*t] ? R[B[i + 257*t]] * R[C[i + 257*t]] : R[B[i + 257*t]] + R[C[i + 257*t]]; R[i + 599*t] = Op[i + 258*t] ? R[B[i + 258*t]] * R[C[i + 258*t]] : R[B[i + 258*t]] + R[C[i + 258*t]]; R[i + 600*t] = Op[i + 259*t] ? R[B[i + 259*t]] * R[C[i + 259*t]] : R[B[i + 259*t]] + R[C[i + 259*t]]; R[i + 601*t] = Op[i + 260*t] ? R[B[i + 260*t]] * R[C[i + 260*t]] : R[B[i + 260*t]] + R[C[i + 260*t]]; R[i + 602*t] = Op[i + 261*t] ? R[B[i + 261*t]] * R[C[i + 261*t]] : R[B[i + 261*t]] + R[C[i + 261*t]]; R[i + 603*t] = Op[i + 262*t] ? R[B[i + 262*t]] * R[C[i + 262*t]] : R[B[i + 262*t]] + R[C[i + 262*t]]; R[i + 604*t] = Op[i + 263*t] ? R[B[i + 263*t]] * R[C[i + 263*t]] : R[B[i + 263*t]] + R[C[i + 263*t]]; R[i + 605*t] = Op[i + 264*t] ? R[B[i + 264*t]] * R[C[i + 264*t]] : R[B[i + 264*t]] + R[C[i + 264*t]]; R[i + 606*t] = Op[i + 265*t] ? R[B[i + 265*t]] * R[C[i + 265*t]] : R[B[i + 265*t]] + R[C[i + 265*t]]; R[i + 607*t] = Op[i + 266*t] ? R[B[i + 266*t]] * R[C[i + 266*t]] : R[B[i + 266*t]] + R[C[i + 266*t]]; R[i + 608*t] = Op[i + 267*t] ? R[B[i + 267*t]] * R[C[i + 267*t]] : R[B[i + 267*t]] + R[C[i + 267*t]]; R[i + 609*t] = Op[i + 268*t] ? R[B[i + 268*t]] * R[C[i + 268*t]] : R[B[i + 268*t]] + R[C[i + 268*t]]; R[i + 610*t] = Op[i + 269*t] ? R[B[i + 269*t]] * R[C[i + 269*t]] : R[B[i + 269*t]] + R[C[i + 269*t]]; R[i + 611*t] = Op[i + 270*t] ? R[B[i + 270*t]] * R[C[i + 270*t]] : R[B[i + 270*t]] + R[C[i + 270*t]]; R[i + 612*t] = Op[i + 271*t] ? R[B[i + 271*t]] * R[C[i + 271*t]] : R[B[i + 271*t]] + R[C[i + 271*t]]; R[i + 613*t] = Op[i + 272*t] ? R[B[i + 272*t]] * R[C[i + 272*t]] : R[B[i + 272*t]] + R[C[i + 272*t]]; R[i + 614*t] = Op[i + 273*t] ? R[B[i + 273*t]] * R[C[i + 273*t]] : R[B[i + 273*t]] + R[C[i + 273*t]]; R[i + 615*t] = Op[i + 274*t] ? R[B[i + 274*t]] * R[C[i + 274*t]] : R[B[i + 274*t]] + R[C[i + 274*t]]; R[i + 616*t] = Op[i + 275*t] ? R[B[i + 275*t]] * R[C[i + 275*t]] : R[B[i + 275*t]] + R[C[i + 275*t]]; R[i + 617*t] = Op[i + 276*t] ? R[B[i + 276*t]] * R[C[i + 276*t]] : R[B[i + 276*t]] + R[C[i + 276*t]]; R[i + 618*t] = Op[i + 277*t] ? R[B[i + 277*t]] * R[C[i + 277*t]] : R[B[i + 277*t]] + R[C[i + 277*t]]; R[i + 619*t] = Op[i + 278*t] ? R[B[i + 278*t]] * R[C[i + 278*t]] : R[B[i + 278*t]] + R[C[i + 278*t]]; R[i + 620*t] = Op[i + 279*t] ? R[B[i + 279*t]] * R[C[i + 279*t]] : R[B[i + 279*t]] + R[C[i + 279*t]]; R[i + 621*t] = Op[i + 280*t] ? R[B[i + 280*t]] * R[C[i + 280*t]] : R[B[i + 280*t]] + R[C[i + 280*t]]; R[i + 622*t] = Op[i + 281*t] ? R[B[i + 281*t]] * R[C[i + 281*t]] : R[B[i + 281*t]] + R[C[i + 281*t]]; R[i + 623*t] = Op[i + 282*t] ? R[B[i + 282*t]] * R[C[i + 282*t]] : R[B[i + 282*t]] + R[C[i + 282*t]]; R[i + 624*t] = Op[i + 283*t] ? R[B[i + 283*t]] * R[C[i + 283*t]] : R[B[i + 283*t]] + R[C[i + 283*t]]; R[i + 625*t] = Op[i + 284*t] ? R[B[i + 284*t]] * R[C[i + 284*t]] : R[B[i + 284*t]] + R[C[i + 284*t]]; R[i + 626*t] = Op[i + 285*t] ? R[B[i + 285*t]] * R[C[i + 285*t]] : R[B[i + 285*t]] + R[C[i + 285*t]]; R[i + 627*t] = Op[i + 286*t] ? R[B[i + 286*t]] * R[C[i + 286*t]] : R[B[i + 286*t]] + R[C[i + 286*t]]; R[i + 628*t] = Op[i + 287*t] ? R[B[i + 287*t]] * R[C[i + 287*t]] : R[B[i + 287*t]] + R[C[i + 287*t]]; R[i + 629*t] = Op[i + 288*t] ? R[B[i + 288*t]] * R[C[i + 288*t]] : R[B[i + 288*t]] + R[C[i + 288*t]]; __syncthreads(); R[i + 630*t] = Op[i + 289*t] ? R[B[i + 289*t]] * R[C[i + 289*t]] : R[B[i + 289*t]] + R[C[i + 289*t]]; R[i + 631*t] = Op[i + 290*t] ? R[B[i + 290*t]] * R[C[i + 290*t]] : R[B[i + 290*t]] + R[C[i + 290*t]]; R[i + 632*t] = Op[i + 291*t] ? R[B[i + 291*t]] * R[C[i + 291*t]] : R[B[i + 291*t]] + R[C[i + 291*t]]; R[i + 633*t] = Op[i + 292*t] ? R[B[i + 292*t]] * R[C[i + 292*t]] : R[B[i + 292*t]] + R[C[i + 292*t]]; R[i + 634*t] = Op[i + 293*t] ? R[B[i + 293*t]] * R[C[i + 293*t]] : R[B[i + 293*t]] + R[C[i + 293*t]]; R[i + 635*t] = Op[i + 294*t] ? R[B[i + 294*t]] * R[C[i + 294*t]] : R[B[i + 294*t]] + R[C[i + 294*t]]; R[i + 636*t] = Op[i + 295*t] ? R[B[i + 295*t]] * R[C[i + 295*t]] : R[B[i + 295*t]] + R[C[i + 295*t]]; R[i + 637*t] = Op[i + 296*t] ? R[B[i + 296*t]] * R[C[i + 296*t]] : R[B[i + 296*t]] + R[C[i + 296*t]]; R[i + 638*t] = Op[i + 297*t] ? R[B[i + 297*t]] * R[C[i + 297*t]] : R[B[i + 297*t]] + R[C[i + 297*t]]; R[i + 639*t] = Op[i + 298*t] ? R[B[i + 298*t]] * R[C[i + 298*t]] : R[B[i + 298*t]] + R[C[i + 298*t]]; R[i + 640*t] = Op[i + 299*t] ? R[B[i + 299*t]] * R[C[i + 299*t]] : R[B[i + 299*t]] + R[C[i + 299*t]]; R[i + 641*t] = Op[i + 300*t] ? R[B[i + 300*t]] * R[C[i + 300*t]] : R[B[i + 300*t]] + R[C[i + 300*t]]; R[i + 642*t] = Op[i + 301*t] ? R[B[i + 301*t]] * R[C[i + 301*t]] : R[B[i + 301*t]] + R[C[i + 301*t]]; R[i + 643*t] = Op[i + 302*t] ? R[B[i + 302*t]] * R[C[i + 302*t]] : R[B[i + 302*t]] + R[C[i + 302*t]]; R[i + 644*t] = Op[i + 303*t] ? R[B[i + 303*t]] * R[C[i + 303*t]] : R[B[i + 303*t]] + R[C[i + 303*t]]; R[i + 645*t] = Op[i + 304*t] ? R[B[i + 304*t]] * R[C[i + 304*t]] : R[B[i + 304*t]] + R[C[i + 304*t]]; R[i + 646*t] = Op[i + 305*t] ? R[B[i + 305*t]] * R[C[i + 305*t]] : R[B[i + 305*t]] + R[C[i + 305*t]]; R[i + 647*t] = Op[i + 306*t] ? R[B[i + 306*t]] * R[C[i + 306*t]] : R[B[i + 306*t]] + R[C[i + 306*t]]; R[i + 648*t] = Op[i + 307*t] ? R[B[i + 307*t]] * R[C[i + 307*t]] : R[B[i + 307*t]] + R[C[i + 307*t]]; R[i + 649*t] = Op[i + 308*t] ? R[B[i + 308*t]] * R[C[i + 308*t]] : R[B[i + 308*t]] + R[C[i + 308*t]]; R[i + 650*t] = Op[i + 309*t] ? R[B[i + 309*t]] * R[C[i + 309*t]] : R[B[i + 309*t]] + R[C[i + 309*t]]; R[i + 651*t] = Op[i + 310*t] ? R[B[i + 310*t]] * R[C[i + 310*t]] : R[B[i + 310*t]] + R[C[i + 310*t]]; R[i + 652*t] = Op[i + 311*t] ? R[B[i + 311*t]] * R[C[i + 311*t]] : R[B[i + 311*t]] + R[C[i + 311*t]]; R[i + 653*t] = Op[i + 312*t] ? R[B[i + 312*t]] * R[C[i + 312*t]] : R[B[i + 312*t]] + R[C[i + 312*t]]; R[i + 654*t] = Op[i + 313*t] ? R[B[i + 313*t]] * R[C[i + 313*t]] : R[B[i + 313*t]] + R[C[i + 313*t]]; R[i + 655*t] = Op[i + 314*t] ? R[B[i + 314*t]] * R[C[i + 314*t]] : R[B[i + 314*t]] + R[C[i + 314*t]]; R[i + 656*t] = Op[i + 315*t] ? R[B[i + 315*t]] * R[C[i + 315*t]] : R[B[i + 315*t]] + R[C[i + 315*t]]; R[i + 657*t] = Op[i + 316*t] ? R[B[i + 316*t]] * R[C[i + 316*t]] : R[B[i + 316*t]] + R[C[i + 316*t]]; R[i + 658*t] = Op[i + 317*t] ? R[B[i + 317*t]] * R[C[i + 317*t]] : R[B[i + 317*t]] + R[C[i + 317*t]]; R[i + 659*t] = Op[i + 318*t] ? R[B[i + 318*t]] * R[C[i + 318*t]] : R[B[i + 318*t]] + R[C[i + 318*t]]; R[i + 660*t] = Op[i + 319*t] ? R[B[i + 319*t]] * R[C[i + 319*t]] : R[B[i + 319*t]] + R[C[i + 319*t]]; R[i + 661*t] = Op[i + 320*t] ? R[B[i + 320*t]] * R[C[i + 320*t]] : R[B[i + 320*t]] + R[C[i + 320*t]]; R[i + 662*t] = Op[i + 321*t] ? R[B[i + 321*t]] * R[C[i + 321*t]] : R[B[i + 321*t]] + R[C[i + 321*t]]; R[i + 663*t] = Op[i + 322*t] ? R[B[i + 322*t]] * R[C[i + 322*t]] : R[B[i + 322*t]] + R[C[i + 322*t]]; R[i + 664*t] = Op[i + 323*t] ? R[B[i + 323*t]] * R[C[i + 323*t]] : R[B[i + 323*t]] + R[C[i + 323*t]]; R[i + 665*t] = Op[i + 324*t] ? R[B[i + 324*t]] * R[C[i + 324*t]] : R[B[i + 324*t]] + R[C[i + 324*t]]; __syncthreads(); R[i + 666*t] = Op[i + 325*t] ? R[B[i + 325*t]] * R[C[i + 325*t]] : R[B[i + 325*t]] + R[C[i + 325*t]]; R[i + 667*t] = Op[i + 326*t] ? R[B[i + 326*t]] * R[C[i + 326*t]] : R[B[i + 326*t]] + R[C[i + 326*t]]; R[i + 668*t] = Op[i + 327*t] ? R[B[i + 327*t]] * R[C[i + 327*t]] : R[B[i + 327*t]] + R[C[i + 327*t]]; R[i + 669*t] = Op[i + 328*t] ? R[B[i + 328*t]] * R[C[i + 328*t]] : R[B[i + 328*t]] + R[C[i + 328*t]]; R[i + 670*t] = Op[i + 329*t] ? R[B[i + 329*t]] * R[C[i + 329*t]] : R[B[i + 329*t]] + R[C[i + 329*t]]; R[i + 671*t] = Op[i + 330*t] ? R[B[i + 330*t]] * R[C[i + 330*t]] : R[B[i + 330*t]] + R[C[i + 330*t]]; R[i + 672*t] = Op[i + 331*t] ? R[B[i + 331*t]] * R[C[i + 331*t]] : R[B[i + 331*t]] + R[C[i + 331*t]]; R[i + 673*t] = Op[i + 332*t] ? R[B[i + 332*t]] * R[C[i + 332*t]] : R[B[i + 332*t]] + R[C[i + 332*t]]; R[i + 674*t] = Op[i + 333*t] ? R[B[i + 333*t]] * R[C[i + 333*t]] : R[B[i + 333*t]] + R[C[i + 333*t]]; R[i + 675*t] = Op[i + 334*t] ? R[B[i + 334*t]] * R[C[i + 334*t]] : R[B[i + 334*t]] + R[C[i + 334*t]]; R[i + 676*t] = Op[i + 335*t] ? R[B[i + 335*t]] * R[C[i + 335*t]] : R[B[i + 335*t]] + R[C[i + 335*t]]; R[i + 677*t] = Op[i + 336*t] ? R[B[i + 336*t]] * R[C[i + 336*t]] : R[B[i + 336*t]] + R[C[i + 336*t]]; R[i + 678*t] = Op[i + 337*t] ? R[B[i + 337*t]] * R[C[i + 337*t]] : R[B[i + 337*t]] + R[C[i + 337*t]]; R[i + 679*t] = Op[i + 338*t] ? R[B[i + 338*t]] * R[C[i + 338*t]] : R[B[i + 338*t]] + R[C[i + 338*t]]; R[i + 680*t] = Op[i + 339*t] ? R[B[i + 339*t]] * R[C[i + 339*t]] : R[B[i + 339*t]] + R[C[i + 339*t]]; R[i + 681*t] = Op[i + 340*t] ? R[B[i + 340*t]] * R[C[i + 340*t]] : R[B[i + 340*t]] + R[C[i + 340*t]]; R[i + 682*t] = Op[i + 341*t] ? R[B[i + 341*t]] * R[C[i + 341*t]] : R[B[i + 341*t]] + R[C[i + 341*t]]; R[i + 683*t] = Op[i + 342*t] ? R[B[i + 342*t]] * R[C[i + 342*t]] : R[B[i + 342*t]] + R[C[i + 342*t]]; R[i + 684*t] = Op[i + 343*t] ? R[B[i + 343*t]] * R[C[i + 343*t]] : R[B[i + 343*t]] + R[C[i + 343*t]]; R[i + 685*t] = Op[i + 344*t] ? R[B[i + 344*t]] * R[C[i + 344*t]] : R[B[i + 344*t]] + R[C[i + 344*t]]; R[i + 686*t] = Op[i + 345*t] ? R[B[i + 345*t]] * R[C[i + 345*t]] : R[B[i + 345*t]] + R[C[i + 345*t]]; R[i + 687*t] = Op[i + 346*t] ? R[B[i + 346*t]] * R[C[i + 346*t]] : R[B[i + 346*t]] + R[C[i + 346*t]]; R[i + 688*t] = Op[i + 347*t] ? R[B[i + 347*t]] * R[C[i + 347*t]] : R[B[i + 347*t]] + R[C[i + 347*t]]; R[i + 689*t] = Op[i + 348*t] ? R[B[i + 348*t]] * R[C[i + 348*t]] : R[B[i + 348*t]] + R[C[i + 348*t]]; R[i + 690*t] = Op[i + 349*t] ? R[B[i + 349*t]] * R[C[i + 349*t]] : R[B[i + 349*t]] + R[C[i + 349*t]]; R[i + 691*t] = Op[i + 350*t] ? R[B[i + 350*t]] * R[C[i + 350*t]] : R[B[i + 350*t]] + R[C[i + 350*t]]; R[i + 692*t] = Op[i + 351*t] ? R[B[i + 351*t]] * R[C[i + 351*t]] : R[B[i + 351*t]] + R[C[i + 351*t]]; R[i + 693*t] = Op[i + 352*t] ? R[B[i + 352*t]] * R[C[i + 352*t]] : R[B[i + 352*t]] + R[C[i + 352*t]]; R[i + 694*t] = Op[i + 353*t] ? R[B[i + 353*t]] * R[C[i + 353*t]] : R[B[i + 353*t]] + R[C[i + 353*t]]; R[i + 695*t] = Op[i + 354*t] ? R[B[i + 354*t]] * R[C[i + 354*t]] : R[B[i + 354*t]] + R[C[i + 354*t]]; R[i + 696*t] = Op[i + 355*t] ? R[B[i + 355*t]] * R[C[i + 355*t]] : R[B[i + 355*t]] + R[C[i + 355*t]]; R[i + 697*t] = Op[i + 356*t] ? R[B[i + 356*t]] * R[C[i + 356*t]] : R[B[i + 356*t]] + R[C[i + 356*t]]; R[i + 698*t] = Op[i + 357*t] ? R[B[i + 357*t]] * R[C[i + 357*t]] : R[B[i + 357*t]] + R[C[i + 357*t]]; R[i + 699*t] = Op[i + 358*t] ? R[B[i + 358*t]] * R[C[i + 358*t]] : R[B[i + 358*t]] + R[C[i + 358*t]]; R[i + 700*t] = Op[i + 359*t] ? R[B[i + 359*t]] * R[C[i + 359*t]] : R[B[i + 359*t]] + R[C[i + 359*t]]; R[i + 701*t] = Op[i + 360*t] ? R[B[i + 360*t]] * R[C[i + 360*t]] : R[B[i + 360*t]] + R[C[i + 360*t]]; R[i + 702*t] = Op[i + 361*t] ? R[B[i + 361*t]] * R[C[i + 361*t]] : R[B[i + 361*t]] + R[C[i + 361*t]]; R[i + 703*t] = Op[i + 362*t] ? R[B[i + 362*t]] * R[C[i + 362*t]] : R[B[i + 362*t]] + R[C[i + 362*t]]; R[i + 704*t] = Op[i + 363*t] ? R[B[i + 363*t]] * R[C[i + 363*t]] : R[B[i + 363*t]] + R[C[i + 363*t]]; R[i + 705*t] = Op[i + 364*t] ? R[B[i + 364*t]] * R[C[i + 364*t]] : R[B[i + 364*t]] + R[C[i + 364*t]]; R[i + 706*t] = Op[i + 365*t] ? R[B[i + 365*t]] * R[C[i + 365*t]] : R[B[i + 365*t]] + R[C[i + 365*t]]; R[i + 707*t] = Op[i + 366*t] ? R[B[i + 366*t]] * R[C[i + 366*t]] : R[B[i + 366*t]] + R[C[i + 366*t]]; R[i + 708*t] = Op[i + 367*t] ? R[B[i + 367*t]] * R[C[i + 367*t]] : R[B[i + 367*t]] + R[C[i + 367*t]]; R[i + 709*t] = Op[i + 368*t] ? R[B[i + 368*t]] * R[C[i + 368*t]] : R[B[i + 368*t]] + R[C[i + 368*t]]; R[i + 710*t] = Op[i + 369*t] ? R[B[i + 369*t]] * R[C[i + 369*t]] : R[B[i + 369*t]] + R[C[i + 369*t]]; R[i + 711*t] = Op[i + 370*t] ? R[B[i + 370*t]] * R[C[i + 370*t]] : R[B[i + 370*t]] + R[C[i + 370*t]]; R[i + 712*t] = Op[i + 371*t] ? R[B[i + 371*t]] * R[C[i + 371*t]] : R[B[i + 371*t]] + R[C[i + 371*t]]; R[i + 713*t] = Op[i + 372*t] ? R[B[i + 372*t]] * R[C[i + 372*t]] : R[B[i + 372*t]] + R[C[i + 372*t]]; R[i + 714*t] = Op[i + 373*t] ? R[B[i + 373*t]] * R[C[i + 373*t]] : R[B[i + 373*t]] + R[C[i + 373*t]]; R[i + 715*t] = Op[i + 374*t] ? R[B[i + 374*t]] * R[C[i + 374*t]] : R[B[i + 374*t]] + R[C[i + 374*t]]; R[i + 716*t] = Op[i + 375*t] ? R[B[i + 375*t]] * R[C[i + 375*t]] : R[B[i + 375*t]] + R[C[i + 375*t]]; R[i + 717*t] = Op[i + 376*t] ? R[B[i + 376*t]] * R[C[i + 376*t]] : R[B[i + 376*t]] + R[C[i + 376*t]]; R[i + 718*t] = Op[i + 377*t] ? R[B[i + 377*t]] * R[C[i + 377*t]] : R[B[i + 377*t]] + R[C[i + 377*t]]; R[i + 719*t] = Op[i + 378*t] ? R[B[i + 378*t]] * R[C[i + 378*t]] : R[B[i + 378*t]] + R[C[i + 378*t]]; __syncthreads(); R[i + 720*t] = Op[i + 379*t] ? R[B[i + 379*t]] * R[C[i + 379*t]] : R[B[i + 379*t]] + R[C[i + 379*t]]; R[i + 721*t] = Op[i + 380*t] ? R[B[i + 380*t]] * R[C[i + 380*t]] : R[B[i + 380*t]] + R[C[i + 380*t]]; R[i + 722*t] = Op[i + 381*t] ? R[B[i + 381*t]] * R[C[i + 381*t]] : R[B[i + 381*t]] + R[C[i + 381*t]]; R[i + 723*t] = Op[i + 382*t] ? R[B[i + 382*t]] * R[C[i + 382*t]] : R[B[i + 382*t]] + R[C[i + 382*t]]; R[i + 724*t] = Op[i + 383*t] ? R[B[i + 383*t]] * R[C[i + 383*t]] : R[B[i + 383*t]] + R[C[i + 383*t]]; R[i + 725*t] = Op[i + 384*t] ? R[B[i + 384*t]] * R[C[i + 384*t]] : R[B[i + 384*t]] + R[C[i + 384*t]]; R[i + 726*t] = Op[i + 385*t] ? R[B[i + 385*t]] * R[C[i + 385*t]] : R[B[i + 385*t]] + R[C[i + 385*t]]; R[i + 727*t] = Op[i + 386*t] ? R[B[i + 386*t]] * R[C[i + 386*t]] : R[B[i + 386*t]] + R[C[i + 386*t]]; R[i + 728*t] = Op[i + 387*t] ? R[B[i + 387*t]] * R[C[i + 387*t]] : R[B[i + 387*t]] + R[C[i + 387*t]]; R[i + 729*t] = Op[i + 388*t] ? R[B[i + 388*t]] * R[C[i + 388*t]] : R[B[i + 388*t]] + R[C[i + 388*t]]; R[i + 730*t] = Op[i + 389*t] ? R[B[i + 389*t]] * R[C[i + 389*t]] : R[B[i + 389*t]] + R[C[i + 389*t]]; R[i + 731*t] = Op[i + 390*t] ? R[B[i + 390*t]] * R[C[i + 390*t]] : R[B[i + 390*t]] + R[C[i + 390*t]]; R[i + 732*t] = Op[i + 391*t] ? R[B[i + 391*t]] * R[C[i + 391*t]] : R[B[i + 391*t]] + R[C[i + 391*t]]; R[i + 733*t] = Op[i + 392*t] ? R[B[i + 392*t]] * R[C[i + 392*t]] : R[B[i + 392*t]] + R[C[i + 392*t]]; R[i + 734*t] = Op[i + 393*t] ? R[B[i + 393*t]] * R[C[i + 393*t]] : R[B[i + 393*t]] + R[C[i + 393*t]]; R[i + 735*t] = Op[i + 394*t] ? R[B[i + 394*t]] * R[C[i + 394*t]] : R[B[i + 394*t]] + R[C[i + 394*t]]; R[i + 736*t] = Op[i + 395*t] ? R[B[i + 395*t]] * R[C[i + 395*t]] : R[B[i + 395*t]] + R[C[i + 395*t]]; R[i + 737*t] = Op[i + 396*t] ? R[B[i + 396*t]] * R[C[i + 396*t]] : R[B[i + 396*t]] + R[C[i + 396*t]]; R[i + 738*t] = Op[i + 397*t] ? R[B[i + 397*t]] * R[C[i + 397*t]] : R[B[i + 397*t]] + R[C[i + 397*t]]; R[i + 739*t] = Op[i + 398*t] ? R[B[i + 398*t]] * R[C[i + 398*t]] : R[B[i + 398*t]] + R[C[i + 398*t]]; R[i + 740*t] = Op[i + 399*t] ? R[B[i + 399*t]] * R[C[i + 399*t]] : R[B[i + 399*t]] + R[C[i + 399*t]]; R[i + 741*t] = Op[i + 400*t] ? R[B[i + 400*t]] * R[C[i + 400*t]] : R[B[i + 400*t]] + R[C[i + 400*t]]; R[i + 742*t] = Op[i + 401*t] ? R[B[i + 401*t]] * R[C[i + 401*t]] : R[B[i + 401*t]] + R[C[i + 401*t]]; R[i + 743*t] = Op[i + 402*t] ? R[B[i + 402*t]] * R[C[i + 402*t]] : R[B[i + 402*t]] + R[C[i + 402*t]]; R[i + 744*t] = Op[i + 403*t] ? R[B[i + 403*t]] * R[C[i + 403*t]] : R[B[i + 403*t]] + R[C[i + 403*t]]; R[i + 745*t] = Op[i + 404*t] ? R[B[i + 404*t]] * R[C[i + 404*t]] : R[B[i + 404*t]] + R[C[i + 404*t]]; R[i + 746*t] = Op[i + 405*t] ? R[B[i + 405*t]] * R[C[i + 405*t]] : R[B[i + 405*t]] + R[C[i + 405*t]]; R[i + 747*t] = Op[i + 406*t] ? R[B[i + 406*t]] * R[C[i + 406*t]] : R[B[i + 406*t]] + R[C[i + 406*t]]; R[i + 748*t] = Op[i + 407*t] ? R[B[i + 407*t]] * R[C[i + 407*t]] : R[B[i + 407*t]] + R[C[i + 407*t]]; R[i + 749*t] = Op[i + 408*t] ? R[B[i + 408*t]] * R[C[i + 408*t]] : R[B[i + 408*t]] + R[C[i + 408*t]]; R[i + 750*t] = Op[i + 409*t] ? R[B[i + 409*t]] * R[C[i + 409*t]] : R[B[i + 409*t]] + R[C[i + 409*t]]; R[i + 751*t] = Op[i + 410*t] ? R[B[i + 410*t]] * R[C[i + 410*t]] : R[B[i + 410*t]] + R[C[i + 410*t]]; R[i + 752*t] = Op[i + 411*t] ? R[B[i + 411*t]] * R[C[i + 411*t]] : R[B[i + 411*t]] + R[C[i + 411*t]]; R[i + 753*t] = Op[i + 412*t] ? R[B[i + 412*t]] * R[C[i + 412*t]] : R[B[i + 412*t]] + R[C[i + 412*t]]; R[i + 754*t] = Op[i + 413*t] ? R[B[i + 413*t]] * R[C[i + 413*t]] : R[B[i + 413*t]] + R[C[i + 413*t]]; R[i + 755*t] = Op[i + 414*t] ? R[B[i + 414*t]] * R[C[i + 414*t]] : R[B[i + 414*t]] + R[C[i + 414*t]]; R[i + 756*t] = Op[i + 415*t] ? R[B[i + 415*t]] * R[C[i + 415*t]] : R[B[i + 415*t]] + R[C[i + 415*t]]; R[i + 757*t] = Op[i + 416*t] ? R[B[i + 416*t]] * R[C[i + 416*t]] : R[B[i + 416*t]] + R[C[i + 416*t]]; R[i + 758*t] = Op[i + 417*t] ? R[B[i + 417*t]] * R[C[i + 417*t]] : R[B[i + 417*t]] + R[C[i + 417*t]]; R[i + 759*t] = Op[i + 418*t] ? R[B[i + 418*t]] * R[C[i + 418*t]] : R[B[i + 418*t]] + R[C[i + 418*t]]; R[i + 760*t] = Op[i + 419*t] ? R[B[i + 419*t]] * R[C[i + 419*t]] : R[B[i + 419*t]] + R[C[i + 419*t]]; R[i + 761*t] = Op[i + 420*t] ? R[B[i + 420*t]] * R[C[i + 420*t]] : R[B[i + 420*t]] + R[C[i + 420*t]]; R[i + 762*t] = Op[i + 421*t] ? R[B[i + 421*t]] * R[C[i + 421*t]] : R[B[i + 421*t]] + R[C[i + 421*t]]; R[i + 763*t] = Op[i + 422*t] ? R[B[i + 422*t]] * R[C[i + 422*t]] : R[B[i + 422*t]] + R[C[i + 422*t]]; R[i + 764*t] = Op[i + 423*t] ? R[B[i + 423*t]] * R[C[i + 423*t]] : R[B[i + 423*t]] + R[C[i + 423*t]]; __syncthreads(); R[i + 765*t] = Op[i + 424*t] ? R[B[i + 424*t]] * R[C[i + 424*t]] : R[B[i + 424*t]] + R[C[i + 424*t]]; R[i + 766*t] = Op[i + 425*t] ? R[B[i + 425*t]] * R[C[i + 425*t]] : R[B[i + 425*t]] + R[C[i + 425*t]]; R[i + 767*t] = Op[i + 426*t] ? R[B[i + 426*t]] * R[C[i + 426*t]] : R[B[i + 426*t]] + R[C[i + 426*t]]; R[i + 768*t] = Op[i + 427*t] ? R[B[i + 427*t]] * R[C[i + 427*t]] : R[B[i + 427*t]] + R[C[i + 427*t]]; R[i + 769*t] = Op[i + 428*t] ? R[B[i + 428*t]] * R[C[i + 428*t]] : R[B[i + 428*t]] + R[C[i + 428*t]]; R[i + 770*t] = Op[i + 429*t] ? R[B[i + 429*t]] * R[C[i + 429*t]] : R[B[i + 429*t]] + R[C[i + 429*t]]; R[i + 771*t] = Op[i + 430*t] ? R[B[i + 430*t]] * R[C[i + 430*t]] : R[B[i + 430*t]] + R[C[i + 430*t]]; R[i + 772*t] = Op[i + 431*t] ? R[B[i + 431*t]] * R[C[i + 431*t]] : R[B[i + 431*t]] + R[C[i + 431*t]]; R[i + 773*t] = Op[i + 432*t] ? R[B[i + 432*t]] * R[C[i + 432*t]] : R[B[i + 432*t]] + R[C[i + 432*t]]; R[i + 774*t] = Op[i + 433*t] ? R[B[i + 433*t]] * R[C[i + 433*t]] : R[B[i + 433*t]] + R[C[i + 433*t]]; R[i + 775*t] = Op[i + 434*t] ? R[B[i + 434*t]] * R[C[i + 434*t]] : R[B[i + 434*t]] + R[C[i + 434*t]]; R[i + 776*t] = Op[i + 435*t] ? R[B[i + 435*t]] * R[C[i + 435*t]] : R[B[i + 435*t]] + R[C[i + 435*t]]; R[i + 777*t] = Op[i + 436*t] ? R[B[i + 436*t]] * R[C[i + 436*t]] : R[B[i + 436*t]] + R[C[i + 436*t]]; R[i + 778*t] = Op[i + 437*t] ? R[B[i + 437*t]] * R[C[i + 437*t]] : R[B[i + 437*t]] + R[C[i + 437*t]]; R[i + 779*t] = Op[i + 438*t] ? R[B[i + 438*t]] * R[C[i + 438*t]] : R[B[i + 438*t]] + R[C[i + 438*t]]; R[i + 780*t] = Op[i + 439*t] ? R[B[i + 439*t]] * R[C[i + 439*t]] : R[B[i + 439*t]] + R[C[i + 439*t]]; R[i + 781*t] = Op[i + 440*t] ? R[B[i + 440*t]] * R[C[i + 440*t]] : R[B[i + 440*t]] + R[C[i + 440*t]]; R[i + 782*t] = Op[i + 441*t] ? R[B[i + 441*t]] * R[C[i + 441*t]] : R[B[i + 441*t]] + R[C[i + 441*t]]; R[i + 783*t] = Op[i + 442*t] ? R[B[i + 442*t]] * R[C[i + 442*t]] : R[B[i + 442*t]] + R[C[i + 442*t]]; R[i + 784*t] = Op[i + 443*t] ? R[B[i + 443*t]] * R[C[i + 443*t]] : R[B[i + 443*t]] + R[C[i + 443*t]]; __syncthreads(); R[i + 785*t] = Op[i + 444*t] ? R[B[i + 444*t]] * R[C[i + 444*t]] : R[B[i + 444*t]] + R[C[i + 444*t]]; R[i + 786*t] = Op[i + 445*t] ? R[B[i + 445*t]] * R[C[i + 445*t]] : R[B[i + 445*t]] + R[C[i + 445*t]]; R[i + 787*t] = Op[i + 446*t] ? R[B[i + 446*t]] * R[C[i + 446*t]] : R[B[i + 446*t]] + R[C[i + 446*t]]; R[i + 788*t] = Op[i + 447*t] ? R[B[i + 447*t]] * R[C[i + 447*t]] : R[B[i + 447*t]] + R[C[i + 447*t]]; R[i + 789*t] = Op[i + 448*t] ? R[B[i + 448*t]] * R[C[i + 448*t]] : R[B[i + 448*t]] + R[C[i + 448*t]]; R[i + 790*t] = Op[i + 449*t] ? R[B[i + 449*t]] * R[C[i + 449*t]] : R[B[i + 449*t]] + R[C[i + 449*t]]; R[i + 791*t] = Op[i + 450*t] ? R[B[i + 450*t]] * R[C[i + 450*t]] : R[B[i + 450*t]] + R[C[i + 450*t]]; R[i + 792*t] = Op[i + 451*t] ? R[B[i + 451*t]] * R[C[i + 451*t]] : R[B[i + 451*t]] + R[C[i + 451*t]]; R[i + 793*t] = Op[i + 452*t] ? R[B[i + 452*t]] * R[C[i + 452*t]] : R[B[i + 452*t]] + R[C[i + 452*t]]; R[i + 794*t] = Op[i + 453*t] ? R[B[i + 453*t]] * R[C[i + 453*t]] : R[B[i + 453*t]] + R[C[i + 453*t]]; R[i + 795*t] = Op[i + 454*t] ? R[B[i + 454*t]] * R[C[i + 454*t]] : R[B[i + 454*t]] + R[C[i + 454*t]]; R[i + 796*t] = Op[i + 455*t] ? R[B[i + 455*t]] * R[C[i + 455*t]] : R[B[i + 455*t]] + R[C[i + 455*t]]; R[i + 797*t] = Op[i + 456*t] ? R[B[i + 456*t]] * R[C[i + 456*t]] : R[B[i + 456*t]] + R[C[i + 456*t]]; R[i + 798*t] = Op[i + 457*t] ? R[B[i + 457*t]] * R[C[i + 457*t]] : R[B[i + 457*t]] + R[C[i + 457*t]]; R[i + 799*t] = Op[i + 458*t] ? R[B[i + 458*t]] * R[C[i + 458*t]] : R[B[i + 458*t]] + R[C[i + 458*t]]; R[i + 800*t] = Op[i + 459*t] ? R[B[i + 459*t]] * R[C[i + 459*t]] : R[B[i + 459*t]] + R[C[i + 459*t]]; R[i + 801*t] = Op[i + 460*t] ? R[B[i + 460*t]] * R[C[i + 460*t]] : R[B[i + 460*t]] + R[C[i + 460*t]]; __syncthreads(); R[i + 802*t] = Op[i + 461*t] ? R[B[i + 461*t]] * R[C[i + 461*t]] : R[B[i + 461*t]] + R[C[i + 461*t]]; R[i + 803*t] = Op[i + 462*t] ? R[B[i + 462*t]] * R[C[i + 462*t]] : R[B[i + 462*t]] + R[C[i + 462*t]]; R[i + 804*t] = Op[i + 463*t] ? R[B[i + 463*t]] * R[C[i + 463*t]] : R[B[i + 463*t]] + R[C[i + 463*t]]; R[i + 805*t] = Op[i + 464*t] ? R[B[i + 464*t]] * R[C[i + 464*t]] : R[B[i + 464*t]] + R[C[i + 464*t]]; R[i + 806*t] = Op[i + 465*t] ? R[B[i + 465*t]] * R[C[i + 465*t]] : R[B[i + 465*t]] + R[C[i + 465*t]]; R[i + 807*t] = Op[i + 466*t] ? R[B[i + 466*t]] * R[C[i + 466*t]] : R[B[i + 466*t]] + R[C[i + 466*t]]; R[i + 808*t] = Op[i + 467*t] ? R[B[i + 467*t]] * R[C[i + 467*t]] : R[B[i + 467*t]] + R[C[i + 467*t]]; R[i + 809*t] = Op[i + 468*t] ? R[B[i + 468*t]] * R[C[i + 468*t]] : R[B[i + 468*t]] + R[C[i + 468*t]]; R[i + 810*t] = Op[i + 469*t] ? R[B[i + 469*t]] * R[C[i + 469*t]] : R[B[i + 469*t]] + R[C[i + 469*t]]; R[i + 811*t] = Op[i + 470*t] ? R[B[i + 470*t]] * R[C[i + 470*t]] : R[B[i + 470*t]] + R[C[i + 470*t]]; R[i + 812*t] = Op[i + 471*t] ? R[B[i + 471*t]] * R[C[i + 471*t]] : R[B[i + 471*t]] + R[C[i + 471*t]]; R[i + 813*t] = Op[i + 472*t] ? R[B[i + 472*t]] * R[C[i + 472*t]] : R[B[i + 472*t]] + R[C[i + 472*t]]; R[i + 814*t] = Op[i + 473*t] ? R[B[i + 473*t]] * R[C[i + 473*t]] : R[B[i + 473*t]] + R[C[i + 473*t]]; R[i + 815*t] = Op[i + 474*t] ? R[B[i + 474*t]] * R[C[i + 474*t]] : R[B[i + 474*t]] + R[C[i + 474*t]]; __syncthreads(); R[i + 816*t] = Op[i + 475*t] ? R[B[i + 475*t]] * R[C[i + 475*t]] : R[B[i + 475*t]] + R[C[i + 475*t]]; R[i + 817*t] = Op[i + 476*t] ? R[B[i + 476*t]] * R[C[i + 476*t]] : R[B[i + 476*t]] + R[C[i + 476*t]]; R[i + 818*t] = Op[i + 477*t] ? R[B[i + 477*t]] * R[C[i + 477*t]] : R[B[i + 477*t]] + R[C[i + 477*t]]; R[i + 819*t] = Op[i + 478*t] ? R[B[i + 478*t]] * R[C[i + 478*t]] : R[B[i + 478*t]] + R[C[i + 478*t]]; R[i + 820*t] = Op[i + 479*t] ? R[B[i + 479*t]] * R[C[i + 479*t]] : R[B[i + 479*t]] + R[C[i + 479*t]]; R[i + 821*t] = Op[i + 480*t] ? R[B[i + 480*t]] * R[C[i + 480*t]] : R[B[i + 480*t]] + R[C[i + 480*t]]; R[i + 822*t] = Op[i + 481*t] ? R[B[i + 481*t]] * R[C[i + 481*t]] : R[B[i + 481*t]] + R[C[i + 481*t]]; R[i + 823*t] = Op[i + 482*t] ? R[B[i + 482*t]] * R[C[i + 482*t]] : R[B[i + 482*t]] + R[C[i + 482*t]]; R[i + 824*t] = Op[i + 483*t] ? R[B[i + 483*t]] * R[C[i + 483*t]] : R[B[i + 483*t]] + R[C[i + 483*t]]; R[i + 825*t] = Op[i + 484*t] ? R[B[i + 484*t]] * R[C[i + 484*t]] : R[B[i + 484*t]] + R[C[i + 484*t]]; R[i + 826*t] = Op[i + 485*t] ? R[B[i + 485*t]] * R[C[i + 485*t]] : R[B[i + 485*t]] + R[C[i + 485*t]]; __syncthreads(); R[i + 827*t] = Op[i + 486*t] ? R[B[i + 486*t]] * R[C[i + 486*t]] : R[B[i + 486*t]] + R[C[i + 486*t]]; R[i + 828*t] = Op[i + 487*t] ? R[B[i + 487*t]] * R[C[i + 487*t]] : R[B[i + 487*t]] + R[C[i + 487*t]]; R[i + 829*t] = Op[i + 488*t] ? R[B[i + 488*t]] * R[C[i + 488*t]] : R[B[i + 488*t]] + R[C[i + 488*t]]; R[i + 830*t] = Op[i + 489*t] ? R[B[i + 489*t]] * R[C[i + 489*t]] : R[B[i + 489*t]] + R[C[i + 489*t]]; R[i + 831*t] = Op[i + 490*t] ? R[B[i + 490*t]] * R[C[i + 490*t]] : R[B[i + 490*t]] + R[C[i + 490*t]]; R[i + 832*t] = Op[i + 491*t] ? R[B[i + 491*t]] * R[C[i + 491*t]] : R[B[i + 491*t]] + R[C[i + 491*t]]; R[i + 833*t] = Op[i + 492*t] ? R[B[i + 492*t]] * R[C[i + 492*t]] : R[B[i + 492*t]] + R[C[i + 492*t]]; R[i + 834*t] = Op[i + 493*t] ? R[B[i + 493*t]] * R[C[i + 493*t]] : R[B[i + 493*t]] + R[C[i + 493*t]]; R[i + 835*t] = Op[i + 494*t] ? R[B[i + 494*t]] * R[C[i + 494*t]] : R[B[i + 494*t]] + R[C[i + 494*t]]; R[i + 836*t] = Op[i + 495*t] ? R[B[i + 495*t]] * R[C[i + 495*t]] : R[B[i + 495*t]] + R[C[i + 495*t]]; R[i + 837*t] = Op[i + 496*t] ? R[B[i + 496*t]] * R[C[i + 496*t]] : R[B[i + 496*t]] + R[C[i + 496*t]]; R[i + 838*t] = Op[i + 497*t] ? R[B[i + 497*t]] * R[C[i + 497*t]] : R[B[i + 497*t]] + R[C[i + 497*t]]; R[i + 839*t] = Op[i + 498*t] ? R[B[i + 498*t]] * R[C[i + 498*t]] : R[B[i + 498*t]] + R[C[i + 498*t]]; __syncthreads(); R[i + 840*t] = Op[i + 499*t] ? R[B[i + 499*t]] * R[C[i + 499*t]] : R[B[i + 499*t]] + R[C[i + 499*t]]; R[i + 841*t] = Op[i + 500*t] ? R[B[i + 500*t]] * R[C[i + 500*t]] : R[B[i + 500*t]] + R[C[i + 500*t]]; R[i + 842*t] = Op[i + 501*t] ? R[B[i + 501*t]] * R[C[i + 501*t]] : R[B[i + 501*t]] + R[C[i + 501*t]]; R[i + 843*t] = Op[i + 502*t] ? R[B[i + 502*t]] * R[C[i + 502*t]] : R[B[i + 502*t]] + R[C[i + 502*t]]; R[i + 844*t] = Op[i + 503*t] ? R[B[i + 503*t]] * R[C[i + 503*t]] : R[B[i + 503*t]] + R[C[i + 503*t]]; R[i + 845*t] = Op[i + 504*t] ? R[B[i + 504*t]] * R[C[i + 504*t]] : R[B[i + 504*t]] + R[C[i + 504*t]]; R[i + 846*t] = Op[i + 505*t] ? R[B[i + 505*t]] * R[C[i + 505*t]] : R[B[i + 505*t]] + R[C[i + 505*t]]; R[i + 847*t] = Op[i + 506*t] ? R[B[i + 506*t]] * R[C[i + 506*t]] : R[B[i + 506*t]] + R[C[i + 506*t]]; R[i + 848*t] = Op[i + 507*t] ? R[B[i + 507*t]] * R[C[i + 507*t]] : R[B[i + 507*t]] + R[C[i + 507*t]]; R[i + 849*t] = Op[i + 508*t] ? R[B[i + 508*t]] * R[C[i + 508*t]] : R[B[i + 508*t]] + R[C[i + 508*t]]; R[i + 850*t] = Op[i + 509*t] ? R[B[i + 509*t]] * R[C[i + 509*t]] : R[B[i + 509*t]] + R[C[i + 509*t]]; __syncthreads(); R[i + 851*t] = Op[i + 510*t] ? R[B[i + 510*t]] * R[C[i + 510*t]] : R[B[i + 510*t]] + R[C[i + 510*t]]; R[i + 852*t] = Op[i + 511*t] ? R[B[i + 511*t]] * R[C[i + 511*t]] : R[B[i + 511*t]] + R[C[i + 511*t]]; R[i + 853*t] = Op[i + 512*t] ? R[B[i + 512*t]] * R[C[i + 512*t]] : R[B[i + 512*t]] + R[C[i + 512*t]]; R[i + 854*t] = Op[i + 513*t] ? R[B[i + 513*t]] * R[C[i + 513*t]] : R[B[i + 513*t]] + R[C[i + 513*t]]; R[i + 855*t] = Op[i + 514*t] ? R[B[i + 514*t]] * R[C[i + 514*t]] : R[B[i + 514*t]] + R[C[i + 514*t]]; R[i + 856*t] = Op[i + 515*t] ? R[B[i + 515*t]] * R[C[i + 515*t]] : R[B[i + 515*t]] + R[C[i + 515*t]]; R[i + 857*t] = Op[i + 516*t] ? R[B[i + 516*t]] * R[C[i + 516*t]] : R[B[i + 516*t]] + R[C[i + 516*t]]; __syncthreads(); R[i + 858*t] = Op[i + 517*t] ? R[B[i + 517*t]] * R[C[i + 517*t]] : R[B[i + 517*t]] + R[C[i + 517*t]]; R[i + 859*t] = Op[i + 518*t] ? R[B[i + 518*t]] * R[C[i + 518*t]] : R[B[i + 518*t]] + R[C[i + 518*t]]; R[i + 860*t] = Op[i + 519*t] ? R[B[i + 519*t]] * R[C[i + 519*t]] : R[B[i + 519*t]] + R[C[i + 519*t]]; R[i + 861*t] = Op[i + 520*t] ? R[B[i + 520*t]] * R[C[i + 520*t]] : R[B[i + 520*t]] + R[C[i + 520*t]]; R[i + 862*t] = Op[i + 521*t] ? R[B[i + 521*t]] * R[C[i + 521*t]] : R[B[i + 521*t]] + R[C[i + 521*t]]; R[i + 863*t] = Op[i + 522*t] ? R[B[i + 522*t]] * R[C[i + 522*t]] : R[B[i + 522*t]] + R[C[i + 522*t]]; __syncthreads(); R[i + 864*t] = Op[i + 523*t] ? R[B[i + 523*t]] * R[C[i + 523*t]] : R[B[i + 523*t]] + R[C[i + 523*t]]; R[i + 865*t] = Op[i + 524*t] ? R[B[i + 524*t]] * R[C[i + 524*t]] : R[B[i + 524*t]] + R[C[i + 524*t]]; R[i + 866*t] = Op[i + 525*t] ? R[B[i + 525*t]] * R[C[i + 525*t]] : R[B[i + 525*t]] + R[C[i + 525*t]]; R[i + 867*t] = Op[i + 526*t] ? R[B[i + 526*t]] * R[C[i + 526*t]] : R[B[i + 526*t]] + R[C[i + 526*t]]; __syncthreads(); R[i + 868*t] = Op[i + 527*t] ? R[B[i + 527*t]] * R[C[i + 527*t]] : R[B[i + 527*t]] + R[C[i + 527*t]]; R[i + 869*t] = Op[i + 528*t] ? R[B[i + 528*t]] * R[C[i + 528*t]] : R[B[i + 528*t]] + R[C[i + 528*t]]; R[i + 870*t] = Op[i + 529*t] ? R[B[i + 529*t]] * R[C[i + 529*t]] : R[B[i + 529*t]] + R[C[i + 529*t]]; __syncthreads(); R[i + 871*t] = Op[i + 530*t] ? R[B[i + 530*t]] * R[C[i + 530*t]] : R[B[i + 530*t]] + R[C[i + 530*t]]; R[i + 872*t] = Op[i + 531*t] ? R[B[i + 531*t]] * R[C[i + 531*t]] : R[B[i + 531*t]] + R[C[i + 531*t]]; __syncthreads(); R[i + 873*t] = Op[i + 532*t] ? R[B[i + 532*t]] * R[C[i + 532*t]] : R[B[i + 532*t]] + R[C[i + 532*t]]; R[i + 874*t] = Op[i + 533*t] ? R[B[i + 533*t]] * R[C[i + 533*t]] : R[B[i + 533*t]] + R[C[i + 533*t]]; __syncthreads(); R[i + 875*t] = Op[i + 534*t] ? R[B[i + 534*t]] * R[C[i + 534*t]] : R[B[i + 534*t]] + R[C[i + 534*t]]; __syncthreads(); R[i + 876*t] = Op[i + 535*t] ? R[B[i + 535*t]] * R[C[i + 535*t]] : R[B[i + 535*t]] + R[C[i + 535*t]]; __syncthreads(); R[i + 877*t] = Op[i + 536*t] ? R[B[i + 536*t]] * R[C[i + 536*t]] : R[B[i + 536*t]] + R[C[i + 536*t]]; __syncthreads(); R[i + 878*t] = Op[i + 537*t] ? R[B[i + 537*t]] * R[C[i + 537*t]] : R[B[i + 537*t]] + R[C[i + 537*t]]; __syncthreads(); R[i + 879*t] = Op[i + 538*t] ? R[B[i + 538*t]] * R[C[i + 538*t]] : R[B[i + 538*t]] + R[C[i + 538*t]]; __syncthreads(); R[i + 880*t] = Op[i + 539*t] ? R[B[i + 539*t]] * R[C[i + 539*t]] : R[B[i + 539*t]] + R[C[i + 539*t]]; __syncthreads(); R[i + 881*t] = Op[i + 540*t] ? R[B[i + 540*t]] * R[C[i + 540*t]] : R[B[i + 540*t]] + R[C[i + 540*t]]; __syncthreads(); R[i + 882*t] = Op[i + 541*t] ? R[B[i + 541*t]] * R[C[i + 541*t]] : R[B[i + 541*t]] + R[C[i + 541*t]]; __syncthreads(); R[i + 883*t] = Op[i + 542*t] ? R[B[i + 542*t]] * R[C[i + 542*t]] : R[B[i + 542*t]] + R[C[i + 542*t]]; __syncthreads(); R[i + 884*t] = Op[i + 543*t] ? R[B[i + 543*t]] * R[C[i + 543*t]] : R[B[i + 543*t]] + R[C[i + 543*t]]; __syncthreads(); R[i + 885*t] = Op[i + 544*t] ? R[B[i + 544*t]] * R[C[i + 544*t]] : R[B[i + 544*t]] + R[C[i + 544*t]]; if (i==0) { final += R[885*t]; } __syncthreads(); } if (i==0) { A[0]= final;} }
7,003
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <cuda.h> #include <math.h> unsigned int getmaxcu(unsigned int *, unsigned int *, unsigned int, unsigned int); __global__ void foo(unsigned int *, unsigned int *, unsigned int, int); int main(int argc, char *argv[]) { unsigned int size = 0; // The size of the array unsigned int i; // loop index unsigned int * numbers; //pointer to the array unsigned int * max; unsigned int numThreads; unsigned int numsPerThread; if(argc !=2) { printf("usage: maxseq num\n"); printf("num = size of the array\n"); exit(1); } size = atol(argv[1]); /* Give each thread 1000 numbers */ numsPerThread = 1000; /* I'm assuming that size is divisible by 1000 since that's the case for all the tests for the writeup */ numThreads = size / numsPerThread; numbers = (unsigned int *)malloc(size * sizeof(unsigned int)); max = (unsigned int *)malloc(numThreads * sizeof(unsigned int)); if( !numbers ) { printf("Unable to allocate mem for an array of size %u\n", size); exit(1); } srand(time(NULL)); // setting a seed for the random number generator // Fill-up the array with random numbers from 0 to size-1 for( i = 0; i < size; i++) numbers[i] = rand() % size; printf(" The maximum number in the array is: %u\n", getmaxcu(numbers, max, size, numThreads)); free(numbers); exit(0); } /* input: pointer to an array of long int number of elements in the array output: the maximum number of the array */ unsigned int getmaxcu(unsigned int * num, unsigned int * max, unsigned int size, unsigned int numThreads) { unsigned int i; unsigned int * max_d; unsigned int * num_d; unsigned int memSize = size * sizeof(unsigned int); /* Copy the array from the host to the device */ cudaMalloc((void **) &num_d, memSize); cudaMemcpy(num_d, num, memSize, cudaMemcpyHostToDevice); /* Allocate space for the max number */ cudaMalloc((void **) &max_d, numThreads * sizeof(unsigned int)); /** * Kernel invocation code * * Max MP = 15 * Max threads = 2048 * 15 = 30720 * Max threads/block = 1024 */ //int threads = (30720 > size) ? size : 30720; /* Find number of threads, rounding up */ //int minNumThreads = (size + numsPerThread - 1) / numsPerThread; int threadsPerBlock = (numThreads > 1000) ? 1000 : numThreads; int blocks = numThreads / threadsPerBlock; int chunk = size / numThreads; // How many numbers each thread will process /* Invoke the kernel */ foo<<<blocks, threadsPerBlock>>>(num_d, max_d, size, chunk); /* Copy the max array from device to host and find the max of those */ cudaMemcpy(max, max_d, numThreads * sizeof(unsigned int), cudaMemcpyDeviceToHost); unsigned int maxNum = 0; unsigned int cur; for(i = 0; i < numThreads; i++) { cur = max[i]; if(cur > maxNum) maxNum = cur; } cudaFree(num_d); cudaFree(max_d); return maxNum; } /* Each thread will check it's portion of the array and put the max number in the first index */ __global__ void foo(unsigned int * num_d, unsigned int * max_d, unsigned int size, int chunk) { int i = threadIdx.x; int j; int start = i * chunk; int end = (i+1) * chunk; /* Local variables to reduce global memory reads */ unsigned int cur; unsigned int maxNum = 0; for (j = start; j < end; j++) { cur = num_d[j]; if (cur > maxNum) maxNum = cur; } max_d[i] = maxNum; }
7,004
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> __global__ void print_threadIds() { printf(" threadIdx.x : %d, threadIdx.y : %d, threadIdx.z : %d \n", threadIdx.x, threadIdx.y, threadIdx.z); } int main() { int nx, ny; nx = 16; ny = 16; dim3 block(8, 8); dim3 grid(nx/block.x, ny/block.y); print_threadIds<<<grid, block>>>(); cudaDeviceSynchronize(); cudaDeviceReset(); return 0; }
7,005
#include <cuda.h> #include <stdio.h> #include <stdlib.h> __global__ void add(int* d_vec1, int* d_vec2, int* d_vec3) { int idx = blockIdx.x * blockDim.x + threadIdx.x; d_vec3[idx] = d_vec2[idx] + d_vec1[idx]; } int main() { int i ; int num_blocks = 1000; int num_threads = 512; int SIZE = num_threads*num_blocks; int BYTES = SIZE * sizeof(int); // declare device and host variables int h_vec1[SIZE],h_vec2[SIZE],h_vec3[SIZE]; int *d_vec1, *d_vec2, *d_vec3; // allocate memory on the device cudaMalloc((void**)&d_vec1,BYTES); cudaMalloc((void**)&d_vec2,BYTES); cudaMalloc((void**)&d_vec3,BYTES); // generate array on host for(i=0;i<SIZE;i++) { h_vec1[i] = rand()%20; h_vec2[i] = rand()%20; h_vec3[i] = 0; } // move variables from host to device cudaMemcpy(d_vec1,h_vec1,BYTES,cudaMemcpyHostToDevice); cudaMemcpy(d_vec2,h_vec2,BYTES,cudaMemcpyHostToDevice); // lauch kernel add<<<num_blocks,num_threads>>>(d_vec1,d_vec2,d_vec3); // move result back to main memory cudaMemcpy(h_vec3,d_vec3,BYTES,cudaMemcpyDeviceToHost); //print result for(i=0;i<SIZE;i++) printf("%d ", h_vec3[i]); }
7,006
/* ********************************************** * CS314 Principles of Programming Languages * * Spring 2020 * ********************************************** */ #include <stdio.h> #include <stdlib.h> __global__ void exclusive_prefix_sum_gpu(int * oldSum, int * newSum, int distance, int numElements) { /*YOUR CODE HERE*/ int tid = blockIdx.x * blockDim.x + threadIdx.x;//this is the thread id and will be used as index while( tid < numElements ) { if( distance == 0 )//since it's exclusive prefix sum, when distance is 0 shift all values over to the right once { if( tid == 0 ) { newSum[tid] = 0; } else { newSum[tid] = oldSum[tid - 1]; } } else { if( tid - distance >= 0 )//if index - stride is still in the array, add those old sums together { newSum[tid] = oldSum[tid] + oldSum[tid - distance]; } else//otherwise just move the element to the same index { newSum[tid] = oldSum[tid]; } } tid += ( blockDim.x * gridDim.x ); } return; }
7,007
#include "includes.h" __global__ void cudaUpdateActivity_kernel(int * inputs, char * activity, unsigned int * firingRate, unsigned int * exampleFiringRate, int * totalOutput, unsigned long long int * firstEventTime, unsigned long long int * lastEventTime, unsigned int inputsDimX, unsigned int inputsDimY, unsigned int inputsDimZ, unsigned int long long timestamp) { const unsigned int inputSize = inputsDimZ * inputsDimX * inputsDimY; // One batch per block z dimension const unsigned int batchInputOffset = blockIdx.z * inputSize; for (unsigned int channel = blockIdx.x; channel < inputsDimZ; channel += gridDim.x) { for (unsigned int y = threadIdx.y; y < inputsDimY; y += blockDim.y) { for (unsigned int x = threadIdx.x; x < inputsDimX; x += blockDim.x) { const unsigned int inputsIdx = x + y*inputsDimX + channel*inputsDimX*inputsDimY; int act = inputs[inputsIdx + batchInputOffset]; unsigned int actAbs = abs(act); char spike = act == 0 ? 0 : act/abs(act); activity[inputsIdx + batchInputOffset] = spike; firingRate[inputsIdx + batchInputOffset] += actAbs; exampleFiringRate[inputsIdx + batchInputOffset] += actAbs; totalOutput[inputsIdx + batchInputOffset] += act; } } } }
7,008
#include <iostream> // input: radius (1), nsample (1), xyz1 (b,n,3), xyz2 (b,m,3) // output: idx (b,m,nsample), pts_cnt (b,m) __global__ void query_ball_point_gpu(int b, int n, int m, float radius, int nsample, const float *xyz1, const float *xyz2, int *idx, int *pts_cnt) { int batch_index = blockIdx.x; xyz1 += n*3*batch_index; xyz2 += m*3*batch_index; idx += m*nsample*batch_index; pts_cnt += m*batch_index; // counting how many unique points selected in local region int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<m;j+=stride) { int cnt = 0; for (int k=0;k<n;++k) { if (cnt == nsample) break; // only pick the FIRST nsample points in the ball float x2=xyz2[j*3+0]; float y2=xyz2[j*3+1]; float z2=xyz2[j*3+2]; float x1=xyz1[k*3+0]; float y1=xyz1[k*3+1]; float z1=xyz1[k*3+2]; float d=max(sqrtf((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1)),1e-20f); if (d<radius) { if (cnt==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx[j*nsample+l] = k; } idx[j*nsample+cnt] = k; cnt+=1; } } pts_cnt[j] = cnt; } } // input: radius (1), nsample (1), xyz1 (b,n,3), xyz2 (b,m,3) // output: idx1 (b,m,nsample), idx2 (b,m,nsample), idx3 (b,m,nsample), pts_cnt (b,m) __global__ void query_ball_point_level_gpu(int b, int n, int m, float radius, int nsample, const float *xyz1, const float *xyz2, int *idx1, int *idx2, int *idx3, int *pts_cnt) { int batch_index = blockIdx.x; xyz1 += n*3*batch_index; xyz2 += m*3*batch_index; idx1 += m*nsample*batch_index; idx2 += m*nsample*batch_index; idx3 += m*nsample*batch_index; pts_cnt += m*batch_index; // counting how many unique points selected in local region int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<m;j+=stride) { int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; int idxs = -1; for (int k=0;k<n;++k) { float x2=xyz2[j*3+0]; float y2=xyz2[j*3+1]; float z2=xyz2[j*3+2]; float x1=xyz1[k*3+0]; float y1=xyz1[k*3+1]; float z1=xyz1[k*3+2]; float d=max(sqrtf((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1)),1e-20f); if (d < 1e-5) idxs = k; //0.577 if (d<radius*0.577) { if (cnt1 < nsample) { if (cnt1==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx1[j*nsample+l] = k; } idx1[j*nsample+cnt1] = k; cnt1+=1; } } //0.816 if (d<radius*0.816 && d >= radius * 0.577) { if (cnt2 < nsample) { if (cnt2==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx2[j*nsample+l] = k; } idx2[j*nsample+cnt2] = k; cnt2+=1; } } if (d<radius && d >= radius * 0.816) { if (cnt3 < nsample) { if (cnt3==0) { for (int l=0;l<nsample;++l) idx3[j*nsample+l] = k; } idx3[j*nsample+cnt3] = k; cnt3+=1; } } } idxs = -(idxs + 1); if (cnt1 == 0) { for (int l = 0; l < nsample; ++l) idx1[j*nsample+l] = idxs; } if (cnt2 == 0) { for (int l = 0; l < nsample; ++l) idx2[j*nsample+l] = idxs; } if (cnt3 == 0) { for (int l = 0; l < nsample; ++l) idx3[j*nsample+l] = idxs; } pts_cnt[j] = cnt1+cnt2+cnt3; } } // input: radius (1), nsample (1), tangent (b,n,2) // output: idx1 (b,n,nsample), idx2 (b,m,nsample), idx3 (b,n,nsample), pts_cnt (b,n) __global__ void query_tangent_point_level_gpu(int b, int n, int m, float radius, int nsample, const float *tangent, const int* group, int *idx1, int *idx2, int *idx3, int *pts_cnt) { int batch_index = blockIdx.x; tangent += n*m*2*batch_index; group += n*m*batch_index; idx1 += n*nsample*batch_index; idx2 += n*nsample*batch_index; idx3 += n*nsample*batch_index; pts_cnt += n*batch_index; // counting how many unique points selected in local region int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<n;j+=stride) { int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; int idxs = -1; for (int k=0;k<m;++k) { float tx = std::abs(tangent[(j*m+k)*2]); float ty = std::abs(tangent[(j*m+k)*2+1]); if (tx < 1e-5 && ty < 1e-5) idxs = group[j*m+k]; //0.577 tx /= radius; ty /= radius; if (tx <= 0.5 && ty <= 0.5) { if (cnt1 < nsample) { if (cnt1==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx1[j*nsample+l] = group[j*m+k]; } idx1[j*nsample+cnt1] = group[j*m+k]; cnt1+=1; } } //0.816 else if (tx > 0.5 && ty > 0.5) { if (cnt2 < nsample) { if (cnt2==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx2[j*nsample+l] = group[j*m+k]; } idx2[j*nsample+cnt2] = group[j*m+k]; cnt2+=1; } } else { if (cnt3 < nsample) { if (cnt3==0) { for (int l=0;l<nsample;++l) idx3[j*nsample+l] = group[j*m+k]; } idx3[j*nsample+cnt3] = group[j*m+k]; cnt3+=1; } } } idxs = -(idxs + 1); if (cnt1 == 0) { for (int l = 0; l < nsample; ++l) idx1[j*nsample+l] = idxs; } if (cnt2 == 0) { for (int l = 0; l < nsample; ++l) idx2[j*nsample+l] = idxs; } if (cnt3 == 0) { for (int l = 0; l < nsample; ++l) idx3[j*nsample+l] = idxs; } pts_cnt[j] = cnt1+cnt2+cnt3; } } // input: radius (1), nsample (1), tangent (b,n,2) // output: idx1 (b,n,nsample), idx2 (b,m,nsample), idx3 (b,n,nsample), pts_cnt (b,n) __global__ void query_radius_point_level_gpu(int b, int n, int m, float radius, int nsample, const float *tangent, const int* group, int *idx1, int *idx2, int *idx3, int *pts_cnt) { int batch_index = blockIdx.x; tangent += n*m*2*batch_index; group += n*m*batch_index; idx1 += n*nsample*batch_index; idx2 += n*nsample*batch_index; idx3 += n*nsample*batch_index; pts_cnt += n*batch_index; // counting how many unique points selected in local region int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<n;j+=stride) { int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; int idxs = -1; for (int k=0;k<m;++k) { float tx = std::abs(tangent[(j*m+k)*2]); float ty = std::abs(tangent[(j*m+k)*2+1]); if (tx < 1e-5 && ty < 1e-5) idxs = group[j*m+k]; //0.577 tx /= radius; ty /= radius; float sum_r = sqrt(tx * tx + ty * ty); if (sum_r < 0.577) { if (cnt1 < nsample) { if (cnt1==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx1[j*nsample+l] = group[j*m+k]; } idx1[j*nsample+cnt1] = group[j*m+k]; cnt1+=1; } } //0.816 else if (tx > 0.816) { if (cnt2 < nsample) { if (cnt2==0) { // set ALL indices to k, s.t. if there are less points in ball than nsample, we still have valid (repeating) indices for (int l=0;l<nsample;++l) idx2[j*nsample+l] = group[j*m+k]; } idx2[j*nsample+cnt2] = group[j*m+k]; cnt2+=1; } } else { if (cnt3 < nsample) { if (cnt3==0) { for (int l=0;l<nsample;++l) idx3[j*nsample+l] = group[j*m+k]; } idx3[j*nsample+cnt3] = group[j*m+k]; cnt3+=1; } } } idxs = -(idxs + 1); if (cnt1 == 0) { for (int l = 0; l < nsample; ++l) idx1[j*nsample+l] = idxs; } if (cnt2 == 0) { for (int l = 0; l < nsample; ++l) idx2[j*nsample+l] = idxs; } if (cnt3 == 0) { for (int l = 0; l < nsample; ++l) idx3[j*nsample+l] = idxs; } pts_cnt[j] = cnt1+cnt2+cnt3; } } // input: radius (1), nsample (1), tangent (b,n,2) // output: idx1 (b,n,nsample), idx2 (b,m,nsample), idx3 (b,n,nsample), pts_cnt (b,n) __global__ void query_radius_angle_point_level_gpu(int b, int n, int m, float start_angle, float radius, int nsample, const float *tangent, const int* group, int *idx1, int *idx2, int *idx3, int *idx4, int *idx5, int *idx6, int *idx7, int *idx8, int *idx9, int *pts_cnt) { int batch_index = blockIdx.x; tangent += n*m*2*batch_index; group += n*m*batch_index; idx1 += n*nsample*batch_index; idx2 += n*nsample*batch_index; idx3 += n*nsample*batch_index; idx4 += n*nsample*batch_index; idx5 += n*nsample*batch_index; idx6 += n*nsample*batch_index; idx7 += n*nsample*batch_index; idx8 += n*nsample*batch_index; idx9 += n*nsample*batch_index; pts_cnt += n*batch_index; // counting how many unique points selected in local region int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<n;j+=stride) { int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; int cnt4 = 0; int cnt5 = 0; int cnt6 = 0; int cnt7 = 0; int cnt8 = 0; int cnt9 = 0; int idxs = -1; for (int k=0;k<m;++k) { float angle = atan2(tangent[(j*m+k)*2],tangent[(j*m+k)*2+1]) / 3.141592654 * 180.0 + start_angle; int angle_diff = (int)angle % 360 / 120; float tx = std::abs(tangent[(j*m+k)*2]); float ty = std::abs(tangent[(j*m+k)*2+1]); if (tx < 1e-5 && ty < 1e-5) idxs = group[j*m+k]; //0.577 tx /= radius; ty /= radius; float sum_r = sqrt(tx * tx + ty * ty); if (sum_r < 0.577) { if (angle_diff == 0) { if (cnt1 < nsample) { if (cnt1==0) { for (int l=0;l<nsample;++l) idx1[j*nsample+l] = group[j*m+k]; } idx1[j*nsample+cnt1] = group[j*m+k], cnt1 += 1; } } else if (angle_diff == 1) { if (cnt2 < nsample) { if (cnt2==0) { for (int l=0;l<nsample;++l) idx2[j*nsample+l] = group[j*m+k]; } idx2[j*nsample+cnt2] = group[j*m+k], cnt2 += 1; } } else { if (cnt3 < nsample) { if (cnt3==0) { for (int l=0;l<nsample;++l) idx3[j*nsample+l] = group[j*m+k]; } idx3[j*nsample+cnt3] = group[j*m+k], cnt3 += 1; } } } //0.816 else if (tx > 0.816) { if (angle_diff == 0) { if (cnt4 < nsample) { if (cnt4==0) { for (int l=0;l<nsample;++l) idx4[j*nsample+l] = group[j*m+k]; } idx4[j*nsample+cnt4] = group[j*m+k], cnt4 += 1; } } else if (angle_diff == 1) { if (cnt5 < nsample) { if (cnt5==0) { for (int l=0;l<nsample;++l) idx5[j*nsample+l] = group[j*m+k]; } idx5[j*nsample+cnt5] = group[j*m+k], cnt5 += 1; } } else { if (cnt6 < nsample) { if (cnt6==0) { for (int l=0;l<nsample;++l) idx6[j*nsample+l] = group[j*m+k]; } idx6[j*nsample+cnt6] = group[j*m+k], cnt6 += 1; } } } else { if (angle_diff == 0) { if (cnt7 < nsample) { if (cnt7==0) { for (int l=0;l<nsample;++l) idx7[j*nsample+l] = group[j*m+k]; } idx7[j*nsample+cnt7] = group[j*m+k], cnt7 += 1; } } else if (angle_diff == 1) { if (cnt8 < nsample) { if (cnt8==0) { for (int l=0;l<nsample;++l) idx8[j*nsample+l] = group[j*m+k]; } idx8[j*nsample+cnt8] = group[j*m+k], cnt8 += 1; } } else { if (cnt9 < nsample) { if (cnt9==0) { for (int l=0;l<nsample;++l) idx9[j*nsample+l] = group[j*m+k]; } idx9[j*nsample+cnt9] = group[j*m+k], cnt9 += 1; } } } } idxs = -(idxs + 1); if (cnt1 == 0) { for (int l = 0; l < nsample; ++l) idx1[j*nsample+l] = idxs; } if (cnt2 == 0) { for (int l = 0; l < nsample; ++l) idx2[j*nsample+l] = idxs; } if (cnt3 == 0) { for (int l = 0; l < nsample; ++l) idx3[j*nsample+l] = idxs; } if (cnt4 == 0) { for (int l = 0; l < nsample; ++l) idx4[j*nsample+l] = idxs; } if (cnt5 == 0) { for (int l = 0; l < nsample; ++l) idx5[j*nsample+l] = idxs; } if (cnt6 == 0) { for (int l = 0; l < nsample; ++l) idx6[j*nsample+l] = idxs; } if (cnt7 == 0) { for (int l = 0; l < nsample; ++l) idx7[j*nsample+l] = idxs; } if (cnt8 == 0) { for (int l = 0; l < nsample; ++l) idx8[j*nsample+l] = idxs; } if (cnt9 == 0) { for (int l = 0; l < nsample; ++l) idx9[j*nsample+l] = idxs; } pts_cnt[j] = cnt1+cnt2+cnt3+cnt4+cnt5+cnt6+cnt7+cnt8+cnt9; } } // input: radius (1), nsample (1), tangent (b,n,2) // output: idx1 (b,n,nsample), idx2 (b,m,nsample), idx3 (b,n,nsample), pts_cnt (b,n) __global__ void query_tangent9_point_level_gpu(int b, int n, int m, float start_angle, float radius, int nsample, const float *tangent, const int* group, int *idx1, int *idx2, int *idx3, int *idx4, int *idx5, int *idx6, int *idx7, int *idx8, int *idx9, int *pts_cnt) { int batch_index = blockIdx.x; tangent += n*m*2*batch_index; group += n*m*batch_index; idx1 += n*nsample*batch_index; idx2 += n*nsample*batch_index; idx3 += n*nsample*batch_index; idx4 += n*nsample*batch_index; idx5 += n*nsample*batch_index; idx6 += n*nsample*batch_index; idx7 += n*nsample*batch_index; idx8 += n*nsample*batch_index; idx9 += n*nsample*batch_index; pts_cnt += n*batch_index; // counting how many unique points selected in local region int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<n;j+=stride) { int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; int cnt4 = 0; int cnt5 = 0; int cnt6 = 0; int cnt7 = 0; int cnt8 = 0; int cnt9 = 0; int idxs = -1; for (int k=0;k<m;++k) { float tx = tangent[(j*m+k)*2]; float ty = tangent[(j*m+k)*2+1]; if (abs(tx) < 1e-5 && abs(ty) < 1e-5) idxs = group[j*m+k]; //0.577 tx /= radius; ty /= radius; int angle_diff = 0; if (tx > -0.5) angle_diff = 1; if (tx > 0.5) angle_diff = 2; if (ty < -0.5) { if (angle_diff == 0) { if (cnt1 < nsample) { if (cnt1==0) { for (int l=0;l<nsample;++l) idx1[j*nsample+l] = group[j*m+k]; } idx1[j*nsample+cnt1] = group[j*m+k], cnt1 += 1; } } else if (angle_diff == 1) { if (cnt2 < nsample) { if (cnt2==0) { for (int l=0;l<nsample;++l) idx2[j*nsample+l] = group[j*m+k]; } idx2[j*nsample+cnt2] = group[j*m+k], cnt2 += 1; } } else { if (cnt3 < nsample) { if (cnt3==0) { for (int l=0;l<nsample;++l) idx3[j*nsample+l] = group[j*m+k]; } idx3[j*nsample+cnt3] = group[j*m+k], cnt3 += 1; } } } //0.816 else if (ty > 0.5) { if (angle_diff == 0) { if (cnt4 < nsample) { if (cnt4==0) { for (int l=0;l<nsample;++l) idx4[j*nsample+l] = group[j*m+k]; } idx4[j*nsample+cnt4] = group[j*m+k], cnt4 += 1; } } else if (angle_diff == 1) { if (cnt5 < nsample) { if (cnt5==0) { for (int l=0;l<nsample;++l) idx5[j*nsample+l] = group[j*m+k]; } idx5[j*nsample+cnt5] = group[j*m+k], cnt5 += 1; } } else { if (cnt6 < nsample) { if (cnt6==0) { for (int l=0;l<nsample;++l) idx6[j*nsample+l] = group[j*m+k]; } idx6[j*nsample+cnt6] = group[j*m+k], cnt6 += 1; } } } else { if (angle_diff == 0) { if (cnt7 < nsample) { if (cnt7==0) { for (int l=0;l<nsample;++l) idx7[j*nsample+l] = group[j*m+k]; } idx7[j*nsample+cnt7] = group[j*m+k], cnt7 += 1; } } else if (angle_diff == 1) { if (cnt8 < nsample) { if (cnt8==0) { for (int l=0;l<nsample;++l) idx8[j*nsample+l] = group[j*m+k]; } idx8[j*nsample+cnt8] = group[j*m+k], cnt8 += 1; } } else { if (cnt9 < nsample) { if (cnt9==0) { for (int l=0;l<nsample;++l) idx9[j*nsample+l] = group[j*m+k]; } idx9[j*nsample+cnt9] = group[j*m+k], cnt9 += 1; } } } } idxs = -(idxs + 1); if (cnt1 == 0) { for (int l = 0; l < nsample; ++l) idx1[j*nsample+l] = idxs; } if (cnt2 == 0) { for (int l = 0; l < nsample; ++l) idx2[j*nsample+l] = idxs; } if (cnt3 == 0) { for (int l = 0; l < nsample; ++l) idx3[j*nsample+l] = idxs; } if (cnt4 == 0) { for (int l = 0; l < nsample; ++l) idx4[j*nsample+l] = idxs; } if (cnt5 == 0) { for (int l = 0; l < nsample; ++l) idx5[j*nsample+l] = idxs; } if (cnt6 == 0) { for (int l = 0; l < nsample; ++l) idx6[j*nsample+l] = idxs; } if (cnt7 == 0) { for (int l = 0; l < nsample; ++l) idx7[j*nsample+l] = idxs; } if (cnt8 == 0) { for (int l = 0; l < nsample; ++l) idx8[j*nsample+l] = idxs; } if (cnt9 == 0) { for (int l = 0; l < nsample; ++l) idx9[j*nsample+l] = idxs; } pts_cnt[j] = cnt1+cnt2+cnt3+cnt4+cnt5+cnt6+cnt7+cnt8+cnt9; } } // input: points (b,n,c), idx (b,m,nsample) // output: out (b,m,nsample,c) __global__ void group_point_gpu(int b, int n, int c, int m, int nsample, const float *points, const int *idx, float *out, int relative) { int batch_index = blockIdx.x; points += n*c*batch_index; idx += m*nsample*batch_index; out += m*nsample*c*batch_index; int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<m;j+=stride) { for (int k=0;k<nsample;++k) { int ii = idx[j*nsample+k]; for (int l=0;l<c;++l) { if (ii < 0) { if (relative == 0) out[j * nsample * c + k * c + l] = 0; else out[j * nsample * c + k * c + l] = points[(-ii-1)*c+l]; } else { out[j*nsample*c+k*c+l] = points[ii*c+l]; } } } } } // input: grad_out (b,m,nsample,c), idx (b,m,nsample), // output: grad_points (b,n,c) __global__ void group_point_grad_gpu(int b, int n, int c, int m, int nsample, const float *grad_out, const int *idx, float *grad_points, int relative) { int batch_index = blockIdx.x; idx += m*nsample*batch_index; grad_out += m*nsample*c*batch_index; grad_points += n*c*batch_index; int index = threadIdx.x; int stride = blockDim.x; for (int j=index;j<m;j+=stride) { for (int k=0;k<nsample;++k) { int ii = idx[j*nsample+k]; for (int l=0;l<c;++l) { if (ii < 0) { if (relative == 1) atomicAdd(&grad_points[(-ii-1)*c+l], grad_out[j*nsample*c+k*c+l]); } else { atomicAdd(&grad_points[ii*c+l], grad_out[j*nsample*c+k*c+l]); } } } } } // input: k (1), distance matrix dist (b,m,n) // output: idx (b,m,n), dist_out (b,m,n) // only the top k results within n are useful __global__ void selection_sort_gpu(int b, int n, int m, int k, const float *dist, int *outi, float *out) { int batch_index = blockIdx.x; dist+=m*n*batch_index; outi+=m*n*batch_index; out+=m*n*batch_index; int index = threadIdx.x; int stride = blockDim.x; // copy from dist to dist_out for (int j=index;j<m;j+=stride) { for (int s=0;s<n;++s) { out[j*n+s] = dist[j*n+s]; outi[j*n+s] = s; } } float *p_dist; for (int j=index;j<m;j+=stride) { p_dist = out+j*n; // selection sort for the first k elements for (int s=0;s<k;++s) { int min=s; // find the min for (int t=s+1;t<n;++t) { if (p_dist[t]<p_dist[min]) { min = t; } } // swap min-th and i-th element if (min!=s) { float tmp = p_dist[min]; p_dist[min] = p_dist[s]; p_dist[s] = tmp; int tmpi = outi[j*n+min]; outi[j*n+min] = outi[j*n+s]; outi[j*n+s] = tmpi; } } } } void queryBallPointLauncher(int b, int n, int m, float radius, int nsample, const float *xyz1, const float *xyz2, int *idx, int *pts_cnt) { query_ball_point_gpu<<<b,256>>>(b,n,m,radius,nsample,xyz1,xyz2,idx,pts_cnt); //cudaDeviceSynchronize(); } void queryBallPointLevelLauncher(int b, int n, int m, float radius, int nsample, const float *xyz1, const float *xyz2, int *idx1, int* idx2, int* idx3, int *pts_cnt) { query_ball_point_level_gpu<<<b,256>>>(b,n,m,radius,nsample,xyz1,xyz2,idx1,idx2,idx3,pts_cnt); //cudaDeviceSynchronize(); } void queryTangentPointLevelLauncher(int b, int n, int m, float radius, int nsample, const float *tangent, const int* group, int *idx1, int* idx2, int* idx3, int *pts_cnt) { query_tangent_point_level_gpu<<<b,256>>>(b,n,m,radius,nsample,tangent,group,idx1,idx2,idx3,pts_cnt); //cudaDeviceSynchronize(); } void queryRadiusPointLevelLauncher(int b, int n, int m, float radius, int nsample, const float *tangent, const int* group, int *idx1, int* idx2, int* idx3, int *pts_cnt) { query_radius_point_level_gpu<<<b,256>>>(b,n,m,radius,nsample,tangent,group,idx1,idx2,idx3,pts_cnt); //cudaDeviceSynchronize(); } void queryRadiusAnglePointLevelLauncher(int b, int n, int m, float start_angle, float radius, int nsample, const float *tangent, const int* group, int *idx1, int *idx2, int *idx3, int* idx4, int* idx5, int* idx6, int* idx7, int* idx8, int* idx9, int *pts_cnt) { query_radius_angle_point_level_gpu<<<b,256>>>(b,n,m,start_angle,radius,nsample,tangent,group,idx1,idx2,idx3,idx4,idx5,idx6,idx7,idx8,idx9,pts_cnt); } void queryTangent9PointLevelLauncher(int b, int n, int m, float start_angle, float radius, int nsample, const float *tangent, const int* group, int *idx1, int *idx2, int *idx3, int* idx4, int* idx5, int* idx6, int* idx7, int* idx8, int* idx9, int *pts_cnt) { query_tangent9_point_level_gpu<<<b,256>>>(b,n,m,start_angle,radius,nsample,tangent,group,idx1,idx2,idx3,idx4,idx5,idx6,idx7,idx8,idx9,pts_cnt); } void selectionSortLauncher(int b, int n, int m, int k, const float *dist, int *outi, float *out) { selection_sort_gpu<<<b,256>>>(b,n,m,k,dist,outi,out); //cudaDeviceSynchronize(); } void groupPointLauncher(int b, int n, int c, int m, int nsample, const float *points, const int *idx, float *out, int relative){ group_point_gpu<<<b,256>>>(b,n,c,m,nsample,points,idx,out,relative); //cudaDeviceSynchronize(); } void groupPointGradLauncher(int b, int n, int c, int m, int nsample, const float *grad_out, const int *idx, float *grad_points, int relative){ group_point_grad_gpu<<<b,256>>>(b,n,c,m,nsample,grad_out,idx,grad_points,relative); //group_point_grad_gpu<<<1,1>>>(b,n,c,m,nsample,grad_out,idx,grad_points); //cudaDeviceSynchronize(); }
7,009
#include "includes.h" #define NUM_THREAD 256 // Number of thread blocks #define print(x) printf("%d",x) float *matrixMul_float_serial(float vector1[], float vector2[], int size); float *matrixMul_float_parallel(float vector1[], float vector2[], int size, int thread_count); float *matrixMul_float_cuda(float* vector1, float* vector2, int num); double *matrixMul_double_serial(double vector1[], double vector2[], int size); double *matrixMul_double_parallel(double vector1[], double vector2[], int size, int thread_count); double *matrixMul_double_cuda(double* vector1, double* vector2, int num); double doubleGen(); float floatGen(); void operations(int size, int parallel, int serial, int cuda, int verify, int thread_count); void print_results_float( int size, double time_spent); void print_results_double( int size, double time_spent); double verifyVectord(double *vector1, double *vector2, int size); float verifyVectorf(float *vector1, float *vector2, int size); __global__ void matMul_CUDA_float(float *sum, int size, float *vector1, float *vector2){ int idx = blockIdx.x*blockDim.x+threadIdx.x; // Sequential thread index across the blocks int k; if(idx < size*size){ for(k=0; k< size; k++){ sum[idx] += (*(vector1+(idx-(idx % size)+k))) * (*(vector2+(k*size+(idx % size)))); } } }
7,010
#include "socket_reader.cuh" template<class T> uint32_t SocketReader<T>::AcquireFrames(std::vector<T> &buf, uint64_t frame_offset, uint32_t n_frames) { return 0; }; template<class T> void SocketReader<T>::Open() {}; template<class T> void SocketReader<T>::Close() {}; template class SocketReader<short>;
7,011
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <cuda_runtime_api.h> #include <assert.h> static const int WORK_SIZE = /*256*/ 2; /** * This macro checks return value of the CUDA runtime call and exits * the application if the call failed. */ __device__ unsigned int bitreverse1(unsigned int number) { number = ((0xf0f0f0f0 & number) >> 4) | ((0x0f0f0f0f & number) << 4); number = ((0xcccccccc & number) >> 2) | ((0x33333333 & number) << 2); number = ((0xaaaaaaaa & number) >> 1) | ((0x55555555 & number) << 1); return number; } /** * CUDA kernel function that reverses the order of bits in each element of the array. */ __global__ void bitreverse(void *data) { unsigned int *idata = (unsigned int*) data; idata[threadIdx.x] = bitreverse1(idata[threadIdx.x]); } /** * Host function that prepares data array and passes it to the CUDA kernel. */ int main() { void *d = NULL; int i; unsigned int idata[WORK_SIZE], odata[WORK_SIZE]; for (i = 0; i < WORK_SIZE; i++){ idata[i] = (unsigned int) i+1; printf("%u; ", idata[i]); } printf("\n"); cudaMalloc((void**) &d, sizeof(int) * WORK_SIZE); cudaMemcpy(d, idata, sizeof(int) * WORK_SIZE, cudaMemcpyHostToDevice); bitreverse<<<1, WORK_SIZE, WORK_SIZE * sizeof(int)>>>(d); //ESBMC_verify_kernel(bitreverse, 1, WORK_SIZE /* *sizeof(int)*/, d); cudaThreadSynchronize(); // Wait for the GPU launched work to complete cudaGetLastError(); cudaMemcpy(odata, d, sizeof(int) * WORK_SIZE, cudaMemcpyDeviceToHost); for (i = 0; i < WORK_SIZE; i++){ printf("Input value: %u, device output: %u\n", idata[i], odata[i]); assert((idata[i]==1)and(odata[i]==128)); } cudaFree((void*) d); cudaDeviceReset(); return 0; }
7,012
#include "includes.h" __global__ void callOperationSharedStatic(int *a, int *b, int *c, int n) { int tidx = blockDim.x * blockIdx.x + threadIdx.x; int tidy = blockDim.y * blockIdx.y + threadIdx.y; if (tidx >= n || tidy >= n) { return; } int tid = tidx * n + tidy; __shared__ int s_a[size * size], s_b[size * size], s_c[size * size]; s_a[tid] = a[tid]; s_b[tid] = b[tid]; if (s_a[tid] >= s_b[tid]) { s_c[tid] = s_a[tid]; } else { s_c[tid] = s_b[tid]; } c[tid] = s_c[tid]; }
7,013
/* * sarray.cu * * Created on: 18/apr/2014 * Author: Giovanni De Cesare * * Scopo: somma due vettori */ #include <stdio.h> #define N 10 // Attenzione a questa parola chiave. Definisce un kernel, ovvero un processo che avviene // sulla GPU __global__ void dark(void) { // Oggi non mi va di fare nulla. E in effetti non faccio niente. } // Questo kernel calcola la somma di due vettori "a[N]" e "b[N]" // I cores della GPU che vanno da 0 a N fanno una somma. __global__ void add(int *a, int *b, int *c) { int id = blockIdx.x; if (id < N) { c[id]= a[id] + b[id]; } } int main(void) { int a[N], b[N], c[N]; // tre vettori a, b, c allocati sulla CPU int *dev_a, *dev_b, *dev_c; // tre vettori dev_[a,b,c] da allocare sulla GPU // Devo allocare la memoria della GPU per i tre vettori a, b, c cudaMalloc( (void**)&dev_a, N * sizeof(int) ); cudaMalloc( (void**)&dev_b, N * sizeof(int) ); cudaMalloc( (void**)&dev_c, N * sizeof(int) ); // Assegno ai vettori a, b dei valori (arbitrari) for (int i=0; i < N; i++) { a[i] = i; b[i] = i; } // Quindi copio a, b nella GPU cudaMemcpy(dev_a, a, N * sizeof(int), cudaMemcpyHostToDevice ); cudaMemcpy(dev_b, b, N * sizeof(int), cudaMemcpyHostToDevice ); // lancio il kernel add<<<N,1>>>(dev_a, dev_b, dev_c); // L'array somma c sta ancora sulla GPU. Lo devo copiare sulla mamoria del processore // prima di poterlo usare cudaMemcpy(c, dev_c, N * sizeof(int), cudaMemcpyDeviceToHost ); // Finalmente scrivo il risultato della somma for (int i=0; i<N; i++) { printf("%d + %d = %d\n", a[i], b[i], c[i]); } // E' sempre una buona abitudine liberare la memoria dopo averla usata cudaFree( dev_a ); cudaFree( dev_b ); cudaFree( dev_c ); printf("Bye.\n"); return 0; }
7,014
// Colour Sine wave Kernal // Based on kernal_colour in kernelVBO.cpp by Rob Farber __global__ void kernel(float4* dVertexArray, uchar4 *dColorArray, unsigned int width, unsigned int height, float time) { unsigned int x = blockIdx.x*blockDim.x + threadIdx.x; unsigned int y = blockIdx.y*blockDim.y + threadIdx.y; // Each thread is unique point (u,v) in interval [-1,1],[-1,1] const float u = 2.0f* (x/(float)width) - 1.0f; const float v = 2.0f* (y/(float)height) - 1.0f; const float w = 0.5f * sinf(4.0f*u + time) * cosf(4.0f*v + time); // Update vertex array for point dVertexArray[y*width+x] = make_float4(u, w, v, 1.0f); // Update colour array for point dColorArray[y*width+x].w = 0.0f; dColorArray[y*width+x].x = 255.0f *0.5f*(1.f+sinf(w+x)); dColorArray[y*width+x].y = 255.0f *0.5f*(1.f+sinf(x)*cosf(y)); dColorArray[y*width+x].z = 255.0f *0.5f*(1.f+sinf(w+time/10.0f)); } extern "C" void launch_kernel(float4* dVertexArray, uchar4* dColourArray, unsigned int width, unsigned int height, float time) { dim3 block(8, 8, 1); dim3 grid(width / block.x, height / block.y, 1); kernel<<< grid, block>>>(dVertexArray, dColourArray, width, height, time); }
7,015
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #define MAX_VALUE 2147483647 #define numThreads 32 void printMatrix(int *matrix, int users, int attributes) { // printf("Matrix:-\n"); for(int i = 0; i < (users * attributes); i++) { if(i % attributes == 0 && i != 0) { printf("\n%d ", matrix[i]); } else { printf("%d ", matrix[i]); } } printf("\n"); } int checker(char* input, char* check) { int i,result=1; for(i=0; input[i]!='\0' || check[i]!='\0'; i++) { if(input[i] != check[i]) { result=0; break; } } return result; } void preliminarySteps(int argc, char** argv, int** dataSetPtr, int** scoresPtr, int* usersPtr, int* attributesPtr, int* kPtr) { // Check input if(argc < 5) { printf("Usage: %s <k> <users> <attributes> <serial/parallel>\n", argv[0]); exit(0); } int * dataSet; int k = atoi(argv[1]); int users = atoi(argv[2]); int attributes = atoi(argv[3]); *usersPtr = users; *attributesPtr = attributes; *kPtr = k; dataSet = (int*) malloc(sizeof(int) * users * attributes); if(dataSet != NULL) { // printf("Allocated an array for %d users and %d attributes\n", users, attributes); } else { printf("Couldn't allocate dataSet array, quitting!\n"); exit(0); } // Seed the RNG srand(time(NULL)); // Now fill dataSet with some values for(int i=0; i < (users * attributes); i++) //dataSet[i] = rand() % 1000; // Random integers between 0 and 1,000 dataSet[i] = rand() % 15; // Random integers between 0 and 1,000 *dataSetPtr = dataSet; int *scores; scores = (int *)malloc(sizeof(int) * users * users); if(scores != NULL) { // printf("Allocated a square scores array for %d users\n", users); } else { printf("Couldn't allocate scores array, quitting!\n"); exit(0); } *scoresPtr = scores; } void calculateScore(int* matrix, int* scores, int users, int attributes, int user1, int user2) { int answer = 0; int user1Start = attributes*user1; int user1End = user1Start + attributes - 1; int user2Start = attributes*user2; int user2End = user2Start + attributes - 1; int i; int j; int difference; for(i = user1Start, j = user2Start; i <= user1End && j <= user2End ; i++, j++) { difference = matrix[i] - matrix[j]; answer += difference*difference; } scores[user1*users + user2] = answer; } void calculateScores(int *matrix, int *scores, int users, int attributes) { int user1; int user2; for(user1 = 0; user1 < users; user1++) { for(user2 = 0; user2 < users; user2++) { calculateScore(matrix, scores, users, attributes, user1, user2); } } } __global__ void calculateScoreKernel(int *matrix, int *scores, int users, int attributes) { int user1 = numThreads*blockIdx.x + threadIdx.x; int user2 = numThreads*blockIdx.y + threadIdx.y; if(user1 >= 0 && user1 < users && user2 >= 0 && user2 < users) { int answer = 0; int user1Start = attributes*user1; int user1End = user1Start + attributes - 1; int user2Start = attributes*user2; int user2End = user2Start + attributes - 1; int i; int j; int difference; for(i = user1Start, j = user2Start; i <= user1End && j <= user2End ; i++, j++) { difference = matrix[i] - matrix[j]; answer += difference*difference; } /* # if __CUDA_ARCH__>=200 printf("%d, %d, %d, %d => %d \n", blockIdx.x, blockIdx.y, threadIdx.x, threadIdx.y, answer); #endif */ scores[user1*users + user2] = answer; } } void launchCalculateScoreKernel(int * dataSet, int * scores, int users, int attributes) { int * dev_dataSet; int * dev_scores; cudaMalloc((void**) &dev_dataSet, users*attributes*sizeof(int)); cudaMalloc((void**) &dev_scores, users*users*sizeof(int)); cudaMemcpy(dev_dataSet, dataSet, users*attributes*sizeof(int), cudaMemcpyHostToDevice); cudaMemcpy(dev_scores, scores, users*users*sizeof(int), cudaMemcpyHostToDevice); int numBlocks = (int) ceil(users*1.0/numThreads); dim3 grid( numBlocks, numBlocks, 1 ); dim3 block( numThreads, numThreads, 1 ); calculateScoreKernel<<< grid, block >>>(dev_dataSet, dev_scores, users, attributes); cudaMemcpy(scores, dev_scores, users*users*sizeof(int), cudaMemcpyDeviceToHost); } __global__ void calculateKNearestKernel(int * scores, int * kNearest, int users, int K) { int minValue, minIndex, value, user, k, index; user = numThreads*blockIdx.x + threadIdx.x; for(k = 0; k < K; k++) { minValue = MAX_VALUE; minIndex = -1; for(index = 0; index < users; index++) { value = scores[user*users + index]; if(value < minValue && index != user) { minValue = value; minIndex = index; } } if(minIndex != -1) { // scores[user*users + minIndex] = MAX_VALUE; } // kNearest[user*users + k] = minIndex; } } // arguments: scores, kNearest, users, k void launchCalculateKNearestKernel(int * dataSet, int * scores, int users, int k) { int * dev_dataSet; int * dev_scores; cudaMalloc((void**) &dev_dataSet, users*users*sizeof(int)); cudaMalloc((void**) &dev_scores, users*k*sizeof(int)); cudaMemcpy(dev_dataSet, dataSet, users*users*sizeof(int), cudaMemcpyHostToDevice); cudaMemcpy(dev_scores, scores, users*k*sizeof(int), cudaMemcpyHostToDevice); int numBlocks = (int) ceil(users*1.0/numThreads); dim3 grid( numBlocks, numBlocks, 1 ); dim3 block( numThreads, numThreads, 1 ); calculateKNearestKernel<<< grid, block >>>(dev_dataSet, dev_scores, users, k); cudaMemcpy(scores, dev_scores, users*k*sizeof(int), cudaMemcpyDeviceToHost); } void writeToFile(clock_t start, clock_t end, char * whichProgramToRun, int users, int attributes, int k, char * fileName) { FILE * file; if(checker(whichProgramToRun, (char*) "serial")) { file = fopen(fileName, "a"); }else { file = fopen(fileName, "a"); } long double timeTaken = (long double)(end - start)/CLOCKS_PER_SEC; fprintf(file, "%s, %d, %d, %d, %Lf\n", whichProgramToRun, users, attributes, k, timeTaken); fclose(file); printf("%s, %d, %d, %d, %Lf\n", whichProgramToRun, users, attributes, k, timeTaken); } void calculateKNearestSerial(int * scores, int * kNearest, int users, int K) { int minValue, minIndex, value, user, k, index; for(user = 0; user < users; user++) { for(k = 0; k < K; k++) { minValue = MAX_VALUE; minIndex = -1; for(index = 0; index < users; index++) { value = scores[user*users + index]; if(value < minValue && index != user) { minValue = value; minIndex = index; } } if(minIndex != -1) { // scores[user*users + minIndex] = MAX_VALUE; } // kNearest[user*users + k] = minIndex; } } } int main(int argc, char **argv) { int * dataSet; int * scores; int users; int attributes; int k; preliminarySteps(argc, argv, &dataSet, &scores, &users, &attributes, &k); char* whichProgramToRun = argv[4]; clock_t start = clock(); printf("k = %d\n", k); // printMatrix(dataSet, users, attributes); if(checker(whichProgramToRun, (char*) "serial")) { // serial calculateScores(dataSet, scores, users, attributes); free(dataSet); int * kNearest = (int*) malloc(sizeof(int) * users * k); calculateKNearestSerial(scores, kNearest, users, k); free(scores); free(kNearest); }else if(checker(whichProgramToRun, (char*) "parallel")) { // cuda parallel launchCalculateScoreKernel(dataSet, scores, users, attributes); free(dataSet); int * kNearest = (int*) malloc(sizeof(int) * users * k); launchCalculateKNearestKernel(scores, kNearest, users, k); free(scores); free(kNearest); }else { printf("Enter correct program to run: serial or parallel.\n"); free(dataSet); free(scores); exit(0); } // printf("Scores:-\n"); // printMatrix(scores, users, users); clock_t end = clock(); char * fileName = argv[5]; writeToFile(start, end, whichProgramToRun, users, attributes, k, fileName); return 0; }
7,016
#include <math.h> #include <stdint.h> #include <stdio.h> __global__ void apply_linear_filter_kernel(uint8_t *src, uint8_t *dst, float *fil, int src_H, int src_W, int src_C, int fil_H, int fil_W) { int h_idx = threadIdx.x + blockIdx.x*blockDim.x; int w_idx = threadIdx.y + blockIdx.y*blockDim.y; int c_idx = threadIdx.z + blockIdx.z*blockDim.z; if ((h_idx >= (src_H-fil_H+1))|(w_idx >= (src_W-fil_W+1))|(c_idx >= src_C)) return; extern __shared__ int s[]; uint8_t *shared = (uint8_t*)s; int src_idx = h_idx*src_W*src_C + w_idx*src_C + c_idx; for (int i = 0; (h_idx + i*blockDim.x < src_H)&(threadIdx.x + i*blockDim.x < fil_H + blockDim.x - 1); i++) { for (int j = 0; (w_idx + j*blockDim.y < src_W)&(threadIdx.y + j*blockDim.y < fil_W + blockDim.y - 1); j++) { int shared_idx = (threadIdx.x + i*blockDim.x)*(blockDim.y + fil_W - 1)*blockDim.z + (threadIdx.y + j*blockDim.y)*blockDim.z + threadIdx.z; shared[shared_idx] = src[src_idx + i*blockDim.x*src_W*src_C + j*blockDim.y*src_C]; } } float new_value = 0.0; float filter_sum = 0.0; for (int i = 0; i < fil_H; i++) { for (int j = 0; j < fil_W; j++) { int shared_idx = (threadIdx.x + i)*(blockDim.y + fil_W - 1)*blockDim.z + (threadIdx.y + j)*blockDim.z + threadIdx.z; new_value += (float)shared[shared_idx]*fil[i*fil_W + j]; filter_sum += fil[i*fil_W + j]; } } new_value = new_value / filter_sum; dst[h_idx*(src_W-fil_W+1)*(src_C) + w_idx*src_C + c_idx] = (uint8_t)round(new_value); } __host__ void apply_linear_filter(uint8_t *h_src, uint8_t *h_dst, float *h_fil, int src_H, int src_W, int src_C, int fil_H, int fil_W, int block_size) { uint8_t *d_src; uint8_t *d_dst; float *d_fil; cudaMalloc(&d_src, src_H*src_W*src_C); cudaMalloc(&d_dst, (src_H-fil_H+1)*(src_W-fil_W+1)*src_C); cudaMalloc(&d_fil, fil_H*fil_W*sizeof(float)); cudaMemcpy(d_src, h_src, src_H*src_W*src_C, cudaMemcpyHostToDevice); cudaMemcpy(d_fil, h_fil, fil_H*fil_W*sizeof(float), cudaMemcpyHostToDevice); int x_blocks = (src_H-fil_H+1); x_blocks = x_blocks/block_size + (x_blocks%block_size ? 1 : 0); int y_blocks = (src_W-fil_W+1); y_blocks = y_blocks/block_size + (y_blocks%block_size ? 1 : 0); apply_linear_filter_kernel<<< dim3(x_blocks,y_blocks,1), dim3(block_size,block_size,src_C), sizeof(float)*(block_size+fil_H-1)*(block_size+fil_W-1) >>>(d_src, d_dst, d_fil, src_H, src_W, src_C, fil_H, fil_W); cudaMemcpy(h_dst, d_dst, (src_H-fil_H+1)*(src_W-fil_W+1)*src_C, cudaMemcpyDeviceToHost); cudaDeviceSynchronize(); cudaFree(d_src); cudaFree(d_dst); cudaFree(d_fil); }
7,017
#include <unistd.h> #include <string.h> int main() { sync(); exit(0); }
7,018
/* * file name: matrix.cu * * matrix.cu contains the code that realize some common used matrix operations in CUDA * * this is a toy program for learning CUDA, some functions are reusable in other project * */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #ifndef BLOCK_SIZE #define BLOCK_SIZE 16 #endif #ifndef BATCH_SIZE #define BATCH_SIZE 1 #endif #ifndef NUM_ITERATIONS #define NUM_ITERATIONS 1024 #endif /* ********************************************************************* function name: gpu_matrix_mult description: dot product of two matrix (not only square) parameters: &a GPU device pointer to a m X n matrix (A) &b GPU device pointer to a n X k matrix (B) &c GPU device output purpose pointer to a m X k matrix (C) to store the result Note: grid and block should be configured as: dim3 dimGrid((k + BLOCK_SIZE - 1) / BLOCK_SIZE, (m + BLOCK_SIZE - 1) / BLOCK_SIZE); dim3 dimBlock(BLOCK_SIZE, BLOCK_SIZE); further sppedup can be obtained by using shared memory to decrease global memory access times return: none ********************************************************************* */ __global__ void gpu_matrix_mult(int *a,int *b, int *c, int m, int n, int k) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int sum = 0; if( col < k && row < m) { for(int i = 0; i < n; i++) { sum += a[row * n + i] * b[i * k + col]; } c[row * k + col] = sum; } } /* ********************************************************************* function name: main description: test and compare parameters: none return: none ********************************************************************* */ int main(int argc, char const *argv[]) { int m1, n1, k1, m2, n2, k2, m3, n3, k3; /* Fixed seed for illustration */ srand(3333); m1=BATCH_SIZE; n1=65536; k1=4096; m2=BATCH_SIZE; n2=4096; k2=1024; m3=BATCH_SIZE; n3=4096; k3=10; // allocate memory in host RAM int *h_a, *h_b, *h_c, *h_d, *h_e, *h_f, *h_g; cudaMallocHost((void **) &h_a, sizeof(int)*m1*n1); cudaMallocHost((void **) &h_b, sizeof(int)*n1*k1); cudaMallocHost((void **) &h_c, sizeof(int)*m1*k1); cudaMallocHost((void **) &h_d, sizeof(int)*n2*k2); cudaMallocHost((void **) &h_e, sizeof(int)*m2*k2); cudaMallocHost((void **) &h_f, sizeof(int)*n3*k3); cudaMallocHost((void **) &h_g, sizeof(int)*m3*k3); // random initialize matrix B for (int i = 0; i < n1; ++i) { for (int j = 0; j < k1; ++j) { h_b[i * k1 + j] = rand() % 1024; } } // random initialize matrix D for (int i = 0; i < n2; ++i) { for (int j = 0; j < k2; ++j) { h_d[i * k2 + j] = rand() % 1024; } } // random initialize matrix F for (int i = 0; i < n3; ++i) { for (int j = 0; j < k3; ++j) { h_f[i * k3 + j] = rand() % 1024; } } float gpu_elapsed_time_ms; // some events to count the execution time cudaEvent_t start, stop; cudaEventCreate(&start); cudaEventCreate(&stop); // Allocate memory space on the device int *d_a, *d_b, *d_c, *d_d, *d_e, *d_f, *d_g; cudaMalloc((void **) &d_a, sizeof(int)*m1*n1); cudaMalloc((void **) &d_b, sizeof(int)*n1*k1); cudaMalloc((void **) &d_c, sizeof(int)*m1*k1); cudaMalloc((void **) &d_d, sizeof(int)*n2*k2); cudaMalloc((void **) &d_e, sizeof(int)*m2*k2); cudaMalloc((void **) &d_f, sizeof(int)*n3*k3); cudaMalloc((void **) &d_g, sizeof(int)*m3*k3); // copy matrix B,D,F from host to device memory - these are weight matrices cudaMemcpy(d_b, h_b, sizeof(int)*n1*k1, cudaMemcpyHostToDevice); cudaMemcpy(d_d, h_d, sizeof(int)*n2*k2, cudaMemcpyHostToDevice); cudaMemcpy(d_f, h_f, sizeof(int)*n3*k3, cudaMemcpyHostToDevice); int numExamples = 0; double total_time_ms = 0.0; for(int i=0;i<NUM_ITERATIONS;i++) { // random initialize matrix A - this is the input matrix for (int i = 0; i < m1; ++i) { for (int j = 0; j < n1; ++j) { h_a[i * n1 + j] = rand() % 1024; } } cudaEventRecord(start, 0); // copy from host to device cudaMemcpy(d_a, h_a, sizeof(int)*m1*n1, cudaMemcpyHostToDevice); unsigned int grid_rows = (m1 + BLOCK_SIZE - 1) / BLOCK_SIZE; unsigned int grid_cols = (k1 + BLOCK_SIZE - 1) / BLOCK_SIZE; dim3 dimGrid(grid_cols, grid_rows); dim3 dimBlock(BLOCK_SIZE, BLOCK_SIZE); // Launch kernel for multiplication 1 #ifdef USE_CUDA_STREAMS gpu_matrix_mult<<<dimGrid, dimBlock, 0, 0>>>(d_a, d_b, d_c, m1, n1, k1); // execute on default stream #else gpu_matrix_mult<<<dimGrid, dimBlock>>>(d_a, d_b, d_c, m1, n1, k1); #endif cudaDeviceSynchronize(); // Launch kernel for multiplication 2 grid_rows = (m2 + BLOCK_SIZE - 1) / BLOCK_SIZE; grid_cols = (k2 + BLOCK_SIZE - 1) / BLOCK_SIZE; dim3 dimGrid2(grid_cols, grid_rows); dim3 dimBlock2(BLOCK_SIZE, BLOCK_SIZE); #ifdef USE_CUDA_STREAMS gpu_matrix_mult<<<dimGrid2, dimBlock2, 0, 0>>>(d_c, d_d, d_e, m2, n2, k2); // execute on default stream #else gpu_matrix_mult<<<dimGrid2, dimBlock2>>>(d_c, d_d, d_e, m2, n2, k2); #endif // Launch kernel for multiplication 3 - DR model grid_rows = (m3 + BLOCK_SIZE - 1) / BLOCK_SIZE; grid_cols = (k3 + BLOCK_SIZE - 1) / BLOCK_SIZE; dim3 dimGrid3(grid_cols, grid_rows); dim3 dimBlock3(BLOCK_SIZE, BLOCK_SIZE); #ifdef USE_CUDA_STREAMS cudaStream_t streams[1]; cudaStreamCreate(&streams[0]); gpu_matrix_mult<<<dimGrid3, dimBlock3, 0, streams[0]>>>(d_c, d_f, d_g, m3, n3, k3); // execute on non-default stream #else gpu_matrix_mult<<<dimGrid3, dimBlock3>>>(d_c, d_f, d_g, m3, n3, k3); #endif // Transfer results from device to host - only DR model result cudaMemcpy(h_g, d_g, sizeof(int)*m2*k2, cudaMemcpyDeviceToHost); cudaThreadSynchronize(); // time counting terminate cudaEventRecord(stop, 0); cudaEventSynchronize(stop); // compute time elapse on GPU computing cudaEventElapsedTime(&gpu_elapsed_time_ms, start, stop); numExamples += BATCH_SIZE; total_time_ms += gpu_elapsed_time_ms; } printf("Avg. Latency: %g ms :: Avg. Throughput: %g examples/sec\n", total_time_ms/NUM_ITERATIONS, numExamples*1000.0/total_time_ms); // free memory cudaFree(d_a); cudaFree(d_b); cudaFree(d_c); cudaFree(d_d); cudaFree(d_e); cudaFreeHost(h_a); cudaFreeHost(h_b); cudaFreeHost(h_c); cudaFreeHost(h_d); cudaFreeHost(h_e); return 0; }
7,019
#include<iostream> int main(){ std::cout << "Hello World from CUDA\n"; return 0; }
7,020
/* * HPC Class * GPU Examples of Indexes and Indexing * */ #include <iostream> using namespace std; #define N 20 // GPU kernels: __global__ void kernel1(int* a) { int idx = blockIdx.x * blockDim.x + threadIdx.x; a[idx] = 7; } __global__ void kernel2(int* b) { int idx = blockIdx.x * blockDim.x + threadIdx.x; b[idx] = blockIdx.x; } __global__ void kernel3(int* c) { int idx = blockIdx.x * blockDim.x + threadIdx.x; c[idx] = threadIdx.x; } int main() { int h_a[N], h_b[N],h_c[N]; // h stands for host (stuffs on CPU) int* d_pa, *d_pb, *d_pc; // d stands for device (stuffs on GPU) //allocate the memory on the GPU cudaMalloc( (void**)&d_pa, N*sizeof(int) ); cudaMalloc( (void**)&d_pb, N*sizeof(int) ); cudaMalloc( (void**)&d_pc, N*sizeof(int) ); cudaMemset(d_pa, 0, N); cudaMemset(d_pb, 0, N); cudaMemset(d_pc, 0, N); // call the GPU kernels kernel1<<<5,4>>>(d_pa); kernel2<<<5,4>>>(d_pb); kernel3<<<5,4>>>(d_pc); // copy the arrays back from the GPU to the CPU cudaMemcpy(h_a, d_pa, N*sizeof(int), cudaMemcpyDeviceToHost); cudaMemcpy(h_b, d_pb, N*sizeof(int), cudaMemcpyDeviceToHost); cudaMemcpy(h_c, d_pc, N*sizeof(int), cudaMemcpyDeviceToHost); // display the results cout<< " Results from kernel1:" << endl; for (int i = 0; i<N; i++) cout<< h_a[i] << " "; cout<< endl; cout<< " Results from kernel2:" << endl; for (int i = 0; i<N; i++) cout<< h_b[i] << " "; cout<< endl; cout<< " Results from kernel3:" << endl; for (int i = 0; i<N; i++) cout<< h_c[i] << " "; cout<< endl; //free the memory allocated on the GPU cudaFree(d_pa); cudaFree(d_pb); cudaFree(d_pc); return 0; }
7,021
#include <stdio.h> #include "cuda.h" #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) #define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1) void check_error (const char* message) { cudaError_t error = cudaGetLastError (); if (error != cudaSuccess) { printf ("CUDA error : %s, %s\n", message, cudaGetErrorString (error)); exit(-1); } } __global__ void j3d125pt (double * __restrict__ t_in, double * __restrict__ t_out, int N) { //Determing the block's indices int i0 = (int)(blockIdx.x)*(int)(blockDim.x) + 2; int i = max(i0,2) + (int)(threadIdx.x); int j0 = 4*(int)(blockIdx.y)*(int)(blockDim.y) + 2; int j = max(j0,2) + 4*(int)(threadIdx.y); int k0 = (int)(blockIdx.z)*(int)(blockDim.z) + 2; int k = max(k0,2) + (int)(threadIdx.z); double (*in)[516][516] = (double (*)[516][516])t_in; double (*out)[516][516] = (double (*)[516][516])t_out; if (i>=2 && i<=N-3 && j>=2 && j<=N-3 && k>=2 && k<=N-3) { double _t_2_; double outkc0jc0ic0; double _t_4_; double _t_10_; double _t_5_; double _t_18_; double _t_9_; double _t_24_; double _t_19_; double _t_6_; double _t_11_; double _t_17_; double _t_23_; double _t_20_; double _t_3_; double _t_7_; double _t_21_; double _t_8_; double _t_25_; double _t_16_; double _t_12_; double _t_26_; double _t_13_; double _t_14_; double _t_15_; double _t_27_; double _t_22_; double outkc0jp1ic0; double outkc0jp2ic0; double outkc0jp3ic0; double _t_0_; double _t_1_; _t_2_ = in[k-2][j-2][i-1]; _t_2_ += in[k-2][j-2][i-1]; _t_2_ += in[k-2][j-2][i+1]; _t_2_ += in[k-2][j-2][i+1]; _t_2_ += in[k-1][j-2][i-2]; _t_2_ += in[k-1][j-2][i+2]; _t_2_ += in[k][j-2][i]; _t_2_ += in[k+1][j-2][i-2]; _t_2_ += in[k+1][j-2][i+2]; _t_2_ += in[k-2][j+2][i-1]; _t_2_ += in[k-2][j+2][i-1]; _t_2_ += in[k-2][j+2][i+1]; _t_2_ += in[k-2][j+2][i+1]; _t_2_ += in[k-2][j+1][i-2]; _t_2_ += in[k-2][j+1][i-2]; _t_2_ += in[k-2][j+1][i+2]; _t_2_ += in[k-2][j+1][i+2]; _t_2_ += in[k-2][j][i]; _t_2_ += in[k-2][j][i]; _t_2_ += in[k-2][j-1][i-2]; _t_2_ += in[k-2][j-1][i-2]; _t_2_ += in[k-2][j-1][i+2]; _t_2_ += in[k-2][j-1][i+2]; _t_2_ += in[k-1][j+2][i-2]; _t_2_ += in[k-1][j+2][i+2]; _t_2_ += in[k+1][j+2][i-2]; _t_2_ += in[k+1][j+2][i+2]; _t_2_ += in[k][j+2][i]; _t_2_ += in[k][j][i-2]; _t_2_ += in[k][j][i+2]; outkc0jc0ic0 = 1.132 * _t_2_; _t_4_ = in[k-1][j-2][i]; _t_4_ += in[k][j-2][i-1]; _t_4_ += in[k][j-2][i+1]; _t_4_ += in[k+1][j-2][i]; _t_4_ += in[k-2][j-1][i]; _t_4_ += in[k-2][j-1][i]; _t_10_ = in[k-2][j-1][i]; _t_10_ += in[k-2][j+1][i-2]; _t_10_ += in[k-2][j+1][i+2]; _t_10_ += in[k-2][j-1][i]; _t_10_ += in[k-2][j+1][i-2]; _t_10_ += in[k-2][j+1][i+2]; _t_4_ += in[k][j-1][i-2]; _t_10_ += in[k][j-1][i-2]; _t_4_ += in[k][j-1][i+2]; _t_10_ += in[k][j-1][i+2]; _t_4_ += in[k-2][j+1][i]; _t_4_ += in[k-2][j+1][i]; _t_4_ += in[k-2][j][i-1]; _t_4_ += in[k-2][j][i-1]; _t_4_ += in[k-2][j][i+1]; _t_4_ += in[k-2][j][i+1]; _t_4_ += in[k-1][j+2][i]; _t_10_ += in[k-1][j+2][i]; _t_4_ += in[k+1][j+2][i]; _t_10_ += in[k+1][j+2][i]; _t_4_ += in[k][j+1][i-2]; _t_4_ += in[k][j+1][i+2]; _t_4_ += in[k][j+2][i-1]; _t_4_ += in[k][j+2][i+1]; _t_4_ += in[k-1][j][i-2]; _t_4_ += in[k-1][j][i+2]; _t_4_ += in[k+1][j][i-2]; _t_4_ += in[k+1][j][i+2]; _t_4_ += in[k][j][i]; outkc0jc0ic0 += 2.13 * _t_4_; _t_5_ = in[k-1][j-2][i-1]; _t_5_ += in[k-1][j-2][i+1]; _t_5_ += in[k+1][j-2][i-1]; _t_5_ += in[k+1][j-2][i+1]; _t_5_ += in[k-1][j][i]; _t_10_ += in[k-1][j][i]; _t_18_ = in[k-2][j+1][i]; _t_18_ += in[k-2][j+2][i-1]; _t_18_ += in[k-2][j+2][i+1]; _t_18_ += in[k-1][j][i]; _t_18_ += in[k-1][j+2][i-2]; _t_18_ += in[k-1][j+2][i+2]; _t_18_ += in[k][j+1][i-2]; _t_18_ += in[k][j+1][i+2]; _t_18_ += in[k][j+2][i]; _t_18_ += in[k+1][j+2][i-2]; _t_18_ += in[k+1][j+2][i+2]; _t_18_ += in[k-2][j+1][i]; _t_18_ += in[k-2][j+2][i-1]; _t_18_ += in[k-2][j+2][i+1]; _t_5_ += in[k+1][j][i]; _t_10_ += in[k+1][j][i]; _t_18_ += in[k+1][j][i]; _t_5_ += in[k-1][j-1][i-2]; _t_9_ = in[k-2][j+1][i]; _t_9_ += in[k-1][j-1][i-2]; _t_9_ += in[k][j+1][i-2]; _t_9_ += in[k][j+1][i+2]; _t_9_ += in[k-2][j+1][i]; _t_24_ = in[k-2][j+1][i]; _t_24_ += in[k-1][j+2][i]; _t_24_ += in[k][j+1][i-2]; _t_24_ += in[k][j+1][i+2]; _t_24_ += in[k+1][j+2][i]; _t_24_ += in[k-2][j+1][i]; _t_19_ = in[k-1][j+2][i]; _t_19_ += in[k+1][j+2][i]; _t_5_ += in[k-1][j-1][i+2]; _t_9_ += in[k-1][j-1][i+2]; _t_5_ += in[k+1][j-1][i-2]; _t_9_ += in[k+1][j-1][i-2]; _t_5_ += in[k+1][j-1][i+2]; _t_9_ += in[k+1][j-1][i+2]; _t_18_ += in[k-1][j+4][i]; _t_24_ += in[k-1][j+4][i]; _t_18_ += in[k+1][j+4][i]; _t_24_ += in[k+1][j+4][i]; _t_24_ += in[k-2][j+5][i]; _t_24_ += in[k-2][j+5][i]; _t_24_ += in[k][j+5][i-2]; _t_24_ += in[k][j+5][i+2]; _t_5_ += in[k-2][j-1][i-1]; _t_9_ += in[k-2][j-1][i-1]; _t_9_ += in[k-2][j-1][i-1]; _t_6_ = in[k-2][j-1][i-1]; _t_5_ += in[k-2][j-1][i+1]; _t_6_ += in[k-2][j-1][i+1]; _t_9_ += in[k-2][j-1][i+1]; _t_9_ += in[k-2][j-1][i+1]; _t_5_ += in[k-2][j+1][i-1]; _t_6_ += in[k-2][j+1][i-1]; _t_19_ += in[k-2][j+1][i-1]; _t_5_ += in[k-2][j+1][i+1]; _t_6_ += in[k-2][j+1][i+1]; outkc0jc0ic0 += 0.332 * _t_6_; _t_19_ += in[k-2][j+1][i+1]; _t_5_ += in[k][j-1][i-1]; _t_11_ = in[k-2][j][i]; _t_11_ += in[k-2][j+1][i-1]; _t_11_ += in[k-2][j+1][i+1]; _t_11_ += in[k][j-1][i-1]; _t_11_ += in[k][j][i-2]; _t_11_ += in[k][j][i+2]; _t_11_ += in[k-2][j][i]; _t_11_ += in[k-2][j+1][i-1]; _t_11_ += in[k-2][j+1][i+1]; _t_17_ = in[k-2][j][i]; _t_17_ += in[k][j][i-2]; _t_17_ += in[k][j][i+2]; _t_17_ += in[k-2][j][i]; _t_5_ += in[k][j-1][i+1]; _t_11_ += in[k][j-1][i+1]; _t_5_ += in[k-1][j+1][i-2]; _t_11_ += in[k-1][j+1][i-2]; _t_19_ += in[k-1][j+1][i-2]; _t_23_ = in[k-2][j+1][i-1]; _t_23_ += in[k-2][j+1][i+1]; _t_23_ += in[k-1][j+1][i-2]; _t_23_ += in[k-2][j+1][i-1]; _t_23_ += in[k-2][j+1][i+1]; _t_20_ = in[k-2][j+1][i-1]; _t_20_ += in[k-2][j+1][i+1]; _t_5_ += in[k-1][j+1][i+2]; _t_11_ += in[k-1][j+1][i+2]; _t_19_ += in[k-1][j+1][i+2]; _t_23_ += in[k-1][j+1][i+2]; _t_5_ += in[k+1][j+1][i-2]; _t_11_ += in[k+1][j+1][i-2]; _t_19_ += in[k+1][j+1][i-2]; _t_23_ += in[k+1][j+1][i-2]; _t_5_ += in[k+1][j+1][i+2]; _t_11_ += in[k+1][j+1][i+2]; _t_19_ += in[k+1][j+1][i+2]; _t_23_ += in[k+1][j+1][i+2]; _t_10_ += in[k-2][j+3][i]; _t_10_ += in[k-2][j+3][i]; _t_18_ += in[k-2][j+3][i]; _t_18_ += in[k-2][j+3][i]; _t_23_ += in[k-2][j+3][i]; _t_23_ += in[k-2][j+3][i]; _t_10_ += in[k][j+3][i-2]; _t_18_ += in[k][j+3][i-2]; _t_23_ += in[k][j+3][i-2]; _t_10_ += in[k][j+3][i+2]; _t_18_ += in[k][j+3][i+2]; _t_23_ += in[k][j+3][i+2]; _t_23_ += in[k-2][j+5][i-1]; _t_23_ += in[k-2][j+5][i-1]; _t_23_ += in[k-2][j+5][i+1]; _t_23_ += in[k-2][j+5][i+1]; _t_23_ += in[k-1][j+5][i-2]; _t_23_ += in[k-1][j+5][i+2]; _t_23_ += in[k][j+5][i]; _t_23_ += in[k+1][j+5][i-2]; _t_23_ += in[k+1][j+5][i+2]; _t_5_ += in[k-1][j+2][i-1]; _t_17_ += in[k-1][j+2][i-1]; _t_5_ += in[k-1][j+2][i+1]; _t_17_ += in[k-1][j+2][i+1]; _t_5_ += in[k+1][j+2][i-1]; _t_17_ += in[k+1][j+2][i-1]; _t_5_ += in[k+1][j+2][i+1]; _t_17_ += in[k+1][j+2][i+1]; _t_5_ += in[k][j+1][i-1]; _t_19_ += in[k][j+1][i-1]; _t_5_ += in[k][j+1][i+1]; outkc0jc0ic0 += 0.331 * _t_5_; _t_19_ += in[k][j+1][i+1]; _t_3_ = in[k-2][j-2][i]; _t_3_ += in[k-2][j-2][i]; _t_3_ += in[k-1][j-1][i]; _t_11_ += in[k-1][j-1][i]; _t_3_ += in[k+1][j-1][i]; _t_11_ += in[k+1][j-1][i]; _t_3_ += in[k][j-2][i-2]; _t_3_ += in[k][j-2][i+2]; _t_3_ += in[k-2][j+2][i]; _t_3_ += in[k-2][j+2][i]; _t_11_ += in[k-2][j+2][i]; _t_11_ += in[k-2][j+2][i]; _t_3_ += in[k-2][j][i-2]; _t_3_ += in[k-2][j][i-2]; _t_9_ += in[k-2][j][i-2]; _t_9_ += in[k-2][j][i-2]; _t_3_ += in[k-2][j][i+2]; _t_3_ += in[k-2][j][i+2]; _t_9_ += in[k-2][j][i+2]; _t_9_ += in[k-2][j][i+2]; _t_3_ += in[k-1][j][i-1]; _t_19_ += in[k-1][j][i-1]; _t_7_ = in[k-2][j-1][i-2]; _t_7_ += in[k-2][j-1][i+2]; _t_7_ += in[k-1][j][i-1]; _t_7_ += in[k-1][j+2][i-1]; _t_7_ += in[k-1][j+2][i+1]; _t_7_ += in[k][j][i]; _t_7_ += in[k][j+1][i-1]; _t_7_ += in[k][j+1][i+1]; _t_7_ += in[k][j+2][i]; _t_7_ += in[k+1][j+2][i-1]; _t_7_ += in[k+1][j+2][i+1]; _t_21_ = in[k-2][j+1][i-2]; _t_21_ += in[k-2][j+1][i+2]; _t_21_ += in[k-1][j+2][i-1]; _t_21_ += in[k-1][j+2][i+1]; _t_21_ += in[k][j+2][i]; _t_21_ += in[k+1][j+2][i-1]; _t_21_ += in[k+1][j+2][i+1]; _t_8_ = in[k-2][j-1][i-2]; _t_8_ += in[k-2][j-1][i+2]; _t_25_ = in[k-2][j+2][i]; _t_25_ += in[k][j+1][i-1]; _t_25_ += in[k][j+1][i+1]; _t_25_ += in[k-2][j+2][i]; _t_16_ = in[k-2][j][i-1]; _t_16_ += in[k-2][j][i+1]; _t_16_ += in[k-2][j+1][i-2]; _t_16_ += in[k-2][j+1][i+2]; _t_16_ += in[k-2][j+2][i]; _t_16_ += in[k-1][j][i-2]; _t_16_ += in[k-1][j][i+2]; _t_16_ += in[k][j][i]; _t_16_ += in[k+1][j][i-2]; _t_16_ += in[k+1][j][i+2]; _t_16_ += in[k-2][j][i-1]; _t_16_ += in[k-2][j][i+1]; _t_16_ += in[k-2][j+1][i-2]; _t_16_ += in[k-2][j+1][i+2]; _t_16_ += in[k-2][j+2][i]; _t_12_ = in[k-2][j][i-1]; _t_12_ += in[k-2][j][i+1]; _t_12_ += in[k-2][j+2][i-1]; _t_12_ += in[k-2][j+2][i+1]; _t_12_ += in[k-1][j][i-2]; _t_12_ += in[k-1][j][i+2]; _t_12_ += in[k-1][j+2][i-2]; _t_12_ += in[k-1][j+2][i+2]; _t_12_ += in[k][j+2][i-1]; _t_12_ += in[k][j+2][i+1]; _t_12_ += in[k+1][j][i-2]; _t_12_ += in[k+1][j][i+2]; _t_12_ += in[k+1][j+2][i-2]; _t_12_ += in[k+1][j+2][i+2]; _t_26_ = in[k-2][j+2][i-1]; _t_26_ += in[k-2][j+2][i+1]; _t_26_ += in[k-1][j+2][i-2]; _t_26_ += in[k-1][j+2][i+2]; _t_26_ += in[k][j+2][i-1]; _t_26_ += in[k][j+2][i+1]; _t_26_ += in[k+1][j+2][i-2]; _t_26_ += in[k+1][j+2][i+2]; _t_13_ = in[k-2][j][i-1]; _t_13_ += in[k-2][j][i+1]; _t_13_ += in[k-2][j+2][i-1]; _t_13_ += in[k-2][j+2][i+1]; _t_14_ = in[k-2][j][i-2]; _t_14_ += in[k-2][j][i+2]; _t_14_ += in[k][j+2][i-1]; _t_14_ += in[k][j+2][i+1]; _t_15_ = in[k-2][j][i-2]; _t_15_ += in[k-2][j][i+2]; _t_27_ = in[k-2][j+2][i-1]; _t_27_ += in[k-2][j+2][i+1]; _t_22_ = in[k-2][j+1][i-2]; _t_22_ += in[k-2][j+1][i+2]; _t_3_ += in[k][j+2][i-2]; _t_11_ += in[k][j+2][i-2]; _t_16_ += in[k][j+2][i-2]; _t_25_ += in[k][j+2][i-2]; _t_3_ += in[k][j+2][i+2]; _t_11_ += in[k][j+2][i+2]; _t_16_ += in[k][j+2][i+2]; _t_25_ += in[k][j+2][i+2]; _t_3_ += in[k-1][j+1][i]; _t_12_ += in[k-1][j+1][i]; _t_17_ += in[k-1][j+1][i]; _t_25_ += in[k-1][j+1][i]; _t_3_ += in[k+1][j+1][i]; _t_12_ += in[k+1][j+1][i]; _t_17_ += in[k+1][j+1][i]; _t_25_ += in[k+1][j+1][i]; _t_3_ += in[k-1][j][i+1]; _t_7_ += in[k-1][j][i+1]; _t_19_ += in[k-1][j][i+1]; _t_3_ += in[k+1][j][i-1]; _t_7_ += in[k+1][j][i-1]; _t_19_ += in[k+1][j][i-1]; _t_3_ += in[k+1][j][i+1]; outkc0jc0ic0 += 0.217 * _t_3_; _t_7_ += in[k+1][j][i+1]; _t_19_ += in[k+1][j][i+1]; _t_7_ += in[k-2][j+3][i-2]; _t_8_ += in[k-2][j+3][i-2]; _t_16_ += in[k-2][j+3][i-2]; _t_16_ += in[k-2][j+3][i-2]; _t_24_ += in[k-2][j+3][i-2]; _t_24_ += in[k-2][j+3][i-2]; _t_7_ += in[k-2][j+3][i+2]; _t_8_ += in[k-2][j+3][i+2]; _t_16_ += in[k-2][j+3][i+2]; _t_16_ += in[k-2][j+3][i+2]; _t_24_ += in[k-2][j+3][i+2]; _t_24_ += in[k-2][j+3][i+2]; outkc0jp1ic0 = 0.332 * _t_13_; outkc0jp1ic0 += 0.75 * _t_7_; outkc0jp1ic0 += 0.76 * _t_8_; _t_9_ += in[k-2][j+3][i-1]; _t_9_ += in[k-2][j+3][i-1]; _t_19_ += in[k-2][j+3][i-1]; _t_20_ += in[k-2][j+3][i-1]; _t_25_ += in[k-2][j+3][i-1]; _t_25_ += in[k-2][j+3][i-1]; _t_9_ += in[k-2][j+3][i+1]; _t_9_ += in[k-2][j+3][i+1]; _t_19_ += in[k-2][j+3][i+1]; _t_20_ += in[k-2][j+3][i+1]; _t_25_ += in[k-2][j+3][i+1]; _t_25_ += in[k-2][j+3][i+1]; _t_11_ += in[k][j+3][i-1]; _t_19_ += in[k][j+3][i-1]; _t_21_ += in[k][j+3][i-1]; _t_11_ += in[k][j+3][i+1]; _t_19_ += in[k][j+3][i+1]; _t_21_ += in[k][j+3][i+1]; _t_9_ += in[k-1][j+3][i-2]; _t_19_ += in[k-1][j+3][i-2]; _t_25_ += in[k-1][j+3][i-2]; _t_9_ += in[k-1][j+3][i+2]; _t_19_ += in[k-1][j+3][i+2]; _t_25_ += in[k-1][j+3][i+2]; _t_9_ += in[k+1][j+3][i-2]; _t_19_ += in[k+1][j+3][i-2]; _t_25_ += in[k+1][j+3][i-2]; _t_9_ += in[k+1][j+3][i+2]; _t_19_ += in[k+1][j+3][i+2]; _t_25_ += in[k+1][j+3][i+2]; _t_11_ += in[k-1][j+3][i]; _t_17_ += in[k-1][j+3][i]; _t_26_ += in[k-1][j+3][i]; _t_11_ += in[k+1][j+3][i]; _t_17_ += in[k+1][j+3][i]; _t_26_ += in[k+1][j+3][i]; _t_9_ += in[k][j+3][i]; _t_14_ += in[k][j+3][i]; _t_25_ += in[k][j+3][i]; _t_12_ += in[k-1][j+3][i-1]; _t_14_ += in[k-1][j+3][i-1]; _t_24_ += in[k-1][j+3][i-1]; _t_12_ += in[k-1][j+3][i+1]; _t_14_ += in[k-1][j+3][i+1]; _t_24_ += in[k-1][j+3][i+1]; _t_12_ += in[k+1][j+3][i-1]; _t_14_ += in[k+1][j+3][i-1]; _t_24_ += in[k+1][j+3][i-1]; _t_12_ += in[k+1][j+3][i+1]; _t_14_ += in[k+1][j+3][i+1]; _t_24_ += in[k+1][j+3][i+1]; _t_14_ += in[k-2][j+4][i-2]; _t_15_ += in[k-2][j+4][i-2]; _t_23_ += in[k-2][j+4][i-2]; _t_23_ += in[k-2][j+4][i-2]; _t_14_ += in[k-2][j+4][i+2]; _t_15_ += in[k-2][j+4][i+2]; _t_23_ += in[k-2][j+4][i+2]; _t_23_ += in[k-2][j+4][i+2]; outkc0jp2ic0 = 0.332 * _t_20_; outkc0jp2ic0 += 0.76 * _t_15_; _t_16_ += in[k-2][j+4][i-1]; _t_16_ += in[k-2][j+4][i-1]; _t_26_ += in[k-2][j+4][i-1]; _t_27_ += in[k-2][j+4][i-1]; _t_16_ += in[k-2][j+4][i+1]; _t_16_ += in[k-2][j+4][i+1]; _t_26_ += in[k-2][j+4][i+1]; _t_27_ += in[k-2][j+4][i+1]; outkc0jp3ic0 = 0.217 * _t_24_; outkc0jp3ic0 += 0.332 * _t_27_; _t_17_ += in[k-2][j+4][i]; _t_17_ += in[k-2][j+4][i]; _t_25_ += in[k-2][j+4][i]; _t_25_ += in[k-2][j+4][i]; _t_19_ += in[k-1][j+4][i-1]; _t_21_ += in[k-1][j+4][i-1]; _t_19_ += in[k-1][j+4][i+1]; _t_21_ += in[k-1][j+4][i+1]; _t_19_ += in[k+1][j+4][i-1]; _t_21_ += in[k+1][j+4][i-1]; _t_19_ += in[k+1][j+4][i+1]; outkc0jp2ic0 += 0.331 * _t_19_; _t_21_ += in[k+1][j+4][i+1]; _t_18_ += in[k][j+4][i-1]; _t_26_ += in[k][j+4][i-1]; _t_18_ += in[k][j+4][i+1]; _t_26_ += in[k][j+4][i+1]; _t_16_ += in[k-1][j+4][i-2]; _t_26_ += in[k-1][j+4][i-2]; _t_16_ += in[k-1][j+4][i+2]; _t_26_ += in[k-1][j+4][i+2]; _t_16_ += in[k+1][j+4][i-2]; _t_26_ += in[k+1][j+4][i-2]; _t_16_ += in[k+1][j+4][i+2]; _t_26_ += in[k+1][j+4][i+2]; _t_16_ += in[k][j+4][i]; outkc0jp2ic0 += 1.132 * _t_16_; _t_21_ += in[k][j+4][i]; _t_17_ += in[k][j+4][i-2]; _t_25_ += in[k][j+4][i-2]; _t_17_ += in[k][j+4][i+2]; _t_25_ += in[k][j+4][i+2]; _t_21_ += in[k-2][j+5][i-2]; _t_22_ += in[k-2][j+5][i-2]; _t_21_ += in[k-2][j+5][i+2]; outkc0jp3ic0 += 0.75 * _t_21_; _t_22_ += in[k-2][j+5][i+2]; outkc0jp3ic0 += 0.76 * _t_22_; _t_26_ += in[k-1][j+5][i-1]; _t_26_ += in[k-1][j+5][i+1]; _t_26_ += in[k+1][j+5][i-1]; _t_26_ += in[k+1][j+5][i+1]; _t_25_ += in[k-1][j+5][i]; _t_25_ += in[k][j+5][i-1]; _t_25_ += in[k][j+5][i+1]; _t_25_ += in[k+1][j+5][i]; outkc0jp3ic0 += 2.13 * _t_25_; _t_9_ += in[k-2][j+2][i-2]; _t_9_ += in[k-2][j+2][i-2]; _t_17_ += in[k-2][j+2][i-2]; _t_17_ += in[k-2][j+2][i-2]; _t_23_ += in[k-2][j+2][i-2]; _t_23_ += in[k-2][j+2][i-2]; _t_9_ += in[k-2][j+2][i+2]; _t_9_ += in[k-2][j+2][i+2]; _t_17_ += in[k-2][j+2][i+2]; _t_17_ += in[k-2][j+2][i+2]; outkc0jp2ic0 += 0.217 * _t_17_; _t_23_ += in[k-2][j+2][i+2]; _t_23_ += in[k-2][j+2][i+2]; _t_11_ += in[k][j+1][i]; outkc0jp1ic0 += 2.13 * _t_11_; _t_14_ += in[k][j+1][i]; _t_23_ += in[k][j+1][i]; outkc0jp3ic0 += 1.132 * _t_23_; _t_0_ = in[k-2][j+2][i-2]; _t_0_ += in[k-2][j+2][i+2]; _t_0_ += in[k][j+1][i]; _t_1_ = in[k-2][j+2][i-2]; _t_1_ += in[k-2][j+2][i+2]; _t_0_ += in[k-1][j+1][i-1]; _t_10_ += in[k-1][j+1][i-1]; _t_14_ += in[k-1][j+1][i-1]; _t_26_ += in[k-1][j+1][i-1]; _t_0_ += in[k-1][j+1][i+1]; _t_10_ += in[k-1][j+1][i+1]; _t_14_ += in[k-1][j+1][i+1]; _t_26_ += in[k-1][j+1][i+1]; _t_0_ += in[k+1][j+1][i-1]; _t_10_ += in[k+1][j+1][i-1]; _t_14_ += in[k+1][j+1][i-1]; _t_26_ += in[k+1][j+1][i-1]; _t_0_ += in[k+1][j+1][i+1]; _t_10_ += in[k+1][j+1][i+1]; outkc0jp1ic0 += 0.217 * _t_10_; _t_14_ += in[k+1][j+1][i+1]; outkc0jp2ic0 += 0.75 * _t_14_; _t_26_ += in[k+1][j+1][i+1]; outkc0jp3ic0 += 0.331 * _t_26_; out[k][j+3][i] = outkc0jp3ic0; _t_0_ += in[k][j][i-1]; _t_12_ += in[k][j][i-1]; _t_18_ += in[k][j][i-1]; _t_0_ += in[k][j][i+1]; _t_12_ += in[k][j][i+1]; _t_18_ += in[k][j][i+1]; outkc0jp2ic0 += 2.13 * _t_18_; out[k][j+2][i] = outkc0jp2ic0; _t_0_ += in[k-1][j-1][i-1]; _t_12_ += in[k-1][j-1][i-1]; _t_0_ += in[k-1][j-1][i+1]; _t_12_ += in[k-1][j-1][i+1]; _t_0_ += in[k+1][j-1][i-1]; _t_12_ += in[k+1][j-1][i-1]; _t_0_ += in[k+1][j-1][i+1]; _t_12_ += in[k+1][j-1][i+1]; outkc0jp1ic0 += 0.331 * _t_12_; _t_0_ += in[k][j-1][i]; _t_9_ += in[k][j-1][i]; outkc0jp1ic0 += 1.132 * _t_9_; out[k][j+1][i] = outkc0jp1ic0; _t_0_ += in[k-2][j-2][i-2]; _t_1_ += in[k-2][j-2][i-2]; _t_0_ += in[k-2][j-2][i+2]; outkc0jc0ic0 += 0.75 * _t_0_; _t_1_ += in[k-2][j-2][i+2]; outkc0jc0ic0 += 0.76 * _t_1_; out[k][j][i] = outkc0jc0ic0; } } extern "C" void host_code (double *h_in, double *h_out, int N) { double *in; cudaMalloc (&in, sizeof(double)*N*N*N); check_error ("Failed to allocate device memory for in\n"); cudaMemcpy (in, h_in, sizeof(double)*N*N*N, cudaMemcpyHostToDevice); double *out; cudaMalloc (&out, sizeof(double)*N*N*N); check_error ("Failed to allocate device memory for out\n"); dim3 blockconfig (16, 4, 4); dim3 gridconfig (ceil(N-4, blockconfig.x), ceil(N-4, 4*blockconfig.y), ceil(N-4, blockconfig.z)); j3d125pt<<<gridconfig, blockconfig>>> (in, out, N); cudaMemcpy (h_out, out, sizeof(double)*N*N*N, cudaMemcpyDeviceToHost); cudaFree (in); cudaFree (out); }
7,022
//pass //--blockDim=[17,17] --gridDim=[1,1] #include <cuda.h> // code example for blog: Use extent instead of grid class - Sample 1 // created by: Tamer Afify Date:1/1/2012 //This is a sample function for using the grid class to do an image blur //The pixel blur can be performed by changing every pixel color RBG band to //the arithmetic average of this pixel value with all its 8 neighbors pixels. //The grid offset feature can be of great benefit when the compute domain origin //is different from the data origin. In other words, (0,0) for the data is not //matching the (0,0) starting point for computation. //In this sample we will use this feature to blur the inner image box without the //boarder pixels as they dont have 8 neighbors pixel. So the compute domain origin //is (1, 1) in the data index. And also compute domain extent is smaller than data //extent by 2 rows and 2 columns. // Note: to compile this code you need to use C++ AMP Developer Preview destributed // During the TAP progrm. #define width 17 #define height 17 __global__ void boxblur(float* blurimage, float* img) { int idxX = blockIdx.x*blockDim.x + threadIdx.x; int idxY = blockIdx.y*blockDim.y + threadIdx.y; float r = 0.0f; int samples = 0; for (int dy = -1; dy <= 1; dy++) { for (int dx = -1; dx <= 1; dx++) { r += img[(idxY + dy)*width + idxX + dx]; samples++; } } blurimage[idxY*width + idxX] = r/samples; #if MUTATION blurimage[idxY*width + idxX + 1] = blurimage[idxY*width + idxX + 1]; #endif }
7,023
#include <iostream> #include <algorithm> #include <stdio.h> #include <cstdio> #include <cstdlib> #include <vector> std::vector<float> read_dr_vec() { std::cout << "Reading dr_vec" << std::endl; char* buffer; long lSize; size_t result; FILE* fp = std::fopen("dr_vec.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} double * buffer_d = reinterpret_cast<double*>(buffer); size_t num_elems = lSize / sizeof(double); std::vector<float> dr_vec(buffer_d, buffer_d + num_elems); // terminate fclose (fp); free(buffer); return dr_vec; } std::vector<float> read_fc_vec() { std::cout << "Reading fc_vec" << std::endl; char* buffer; long lSize; size_t result; FILE* fp = std::fopen("fc_vec.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} double * buffer_d = reinterpret_cast<double*>(buffer); size_t num_elems = lSize / sizeof(double); std::vector<float> fc_vec(buffer_d, buffer_d + num_elems); // terminate fclose (fp); free(buffer); return fc_vec; } std::vector<float> read_rmin() { std::cout << "Reading rmin" << std::endl; char* buffer; long lSize; size_t result; FILE* fp = std::fopen("rmin.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} double * buffer_d = reinterpret_cast<double*>(buffer); size_t num_elems = lSize / sizeof(double); std::vector<float> rmin_vec(buffer_d, buffer_d + num_elems); // terminate fclose (fp); free(buffer); return rmin_vec; } std::vector<float3> read_pos_tx() { std::cout << "Reading pos_tx" << std::endl; char* buffer; long lSize; size_t result; std::vector<float3> pos_tx_vec; FILE* fp = std::fopen("pos_tx.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} size_t num_elems = lSize / sizeof(double); double * buffer_d = reinterpret_cast<double*>(buffer); // pos_tx are x,y,z coordinates, store in the format // [x0,y0,z0,x1,y1,z1,x2,y2,z2....]. Convert to float3 values instead pos_tx_vec.resize(num_elems/3); for( int ii = 0; ii < num_elems/3; ii++ ) { int i_buff = ii * 3; pos_tx_vec[ii].x = (float)buffer_d[i_buff]; pos_tx_vec[ii].y = (float)buffer_d[i_buff+1]; pos_tx_vec[ii].z = (float)buffer_d[i_buff+2]; } // terminate fclose (fp); free(buffer); return pos_tx_vec; } std::vector<float3> read_pos_rx() { std::cout << "Reading pos_rx" << std::endl; char* buffer; long lSize; size_t result; std::vector<float3> pos_rx_vec; FILE* fp = std::fopen("pos_rx.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} size_t num_elems = lSize / sizeof(double); double * buffer_d = reinterpret_cast<double*>(buffer); // pos_tx are x,y,z coordinates, store in the format // [x0,y0,z0,x1,y1,z1,x2,y2,z2....]. Convert to float3 values instead pos_rx_vec.resize(num_elems/3); for( int ii = 0; ii < num_elems/3; ii++ ) { int i_buff = ii * 3; pos_rx_vec[ii].x = (float)buffer_d[i_buff]; pos_rx_vec[ii].y = (float)buffer_d[i_buff+1]; pos_rx_vec[ii].z = (float)buffer_d[i_buff+2]; } // terminate fclose (fp); free(buffer); return pos_rx_vec; } std::vector<float3> read_pos_bp() { std::cout << "Reading pos_bp" << std::endl; char* buffer; long lSize; size_t result; std::vector<float3> pos_bp_vec; FILE* fp = std::fopen("pos_bp.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} size_t num_elems = lSize / sizeof(double); double * buffer_d = reinterpret_cast<double*>(buffer); // pos_tx are x,y,z coordinates, store in the format // [x0,y0,z0,x1,y1,z1,x2,y2,z2....]. Convert to float3 values instead pos_bp_vec.resize(num_elems/3); for( int ii = 0; ii < num_elems/3; ii++ ) { int i_buff = ii * 3; pos_bp_vec[ii].x = (float)buffer_d[i_buff]; pos_bp_vec[ii].y = (float)buffer_d[i_buff+1]; pos_bp_vec[ii].z = (float)buffer_d[i_buff+2]; } // terminate fclose (fp); free(buffer); return pos_bp_vec; } std::vector<float3> read_range_profile_zp() { std::cout << "Reading range_profile_zp" << std::endl; char* buffer; long lSize; size_t result; std::vector<float3> rp_data_vec; FILE* fp = std::fopen("range_profile_zp.bin", "r"); if(!fp) { std::perror("File opening failed"); } // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize); if (buffer == NULL) {fputs ("Memory error",stderr); exit (2);} // copy the file into the buffer: result = fread (buffer,1,lSize,fp); if (result != lSize) {fputs ("Reading error",stderr); exit (3);} size_t num_elems = lSize / sizeof(double); double * buffer_d = reinterpret_cast<double*>(buffer); // pos_tx are x,y,z coordinates, store in the format // [x0,y0,z0,x1,y1,z1,x2,y2,z2....]. Convert to float3 values instead rp_data_vec.resize(num_elems/2); const int imag_jump = num_elems/2; for( int ii = 0; ii < num_elems/2; ii++ ) { rp_data_vec[ii].y = (float)buffer_d[ii]; rp_data_vec[ii].z = (float)buffer_d[ii+imag_jump]; } // terminate fclose (fp); free(buffer); return rp_data_vec; } int main(int argc, char** argv) { std::vector<float> dr_vec = read_dr_vec(); std::vector<float> fc_vec = read_fc_vec(); std::vector<float> rmin_vec = read_rmin(); std::vector<float3> pos_tx_vec = read_pos_tx(); std::vector<float3> pos_rx_vec = read_pos_rx(); std::vector<float3> pos_bp_vec = read_pos_bp(); std::vector<float3> rp_data_vec = read_range_profile_zp(); std::cout << "Buffer values: " << std::endl; for(int ii = 0; ii < 30; ii++) { std::cout << dr_vec[ii] << std::endl; } }
7,024
#include "includes.h" __global__ void sd_t_s1_1_kernel(size_t h1d,size_t h2d,size_t h3d,size_t p4d,size_t p6d,size_t p4ld_t2,size_t h1ld_t2,size_t h3ld_v2,size_t h2ld_v2,size_t p6ld_v2,size_t h3ld_t3,size_t h2ld_t3,size_t h1ld_t3,size_t p6ld_t3,size_t p4ld_t3, double *t2_d, double *v2_d,size_t p4, size_t total_x, double* t3d) { size_t h1,h2,h3,p6; __shared__ double t2_shm[T1*4*Tcomm]; for(size_t i=threadIdx.x;i<h1d*p4d;i+=blockDim.x) if(i<h1d*p4d) t2_shm[i] = t2_d[i]; size_t rest_x=blockIdx.x; size_t thread_x = T2*T1 * rest_x + threadIdx.x; rest_x = thread_x; __syncthreads(); /* the following computation may need to happen inside the loop */ for(size_t i=0;i<total_x;i+=gridDim.x*blockDim.x) { rest_x += i; h3=rest_x%h3d; rest_x=rest_x/h3d; h2=rest_x%h2d; rest_x=rest_x/h2d; p6=rest_x%p6d; if((thread_x+i)<total_x) for(h1=0;h1<h1d;h1++) for(p4=0;p4<p4d;p4++) { t3d[h3*h3ld_t3+h2*h2ld_t3+h1*h1ld_t3+p6*p6ld_t3+p4*p4ld_t3]+=t2_shm[h1*p4d+p4]*v2_d[h3*h3ld_v2+h2*h2ld_v2+p6*p6ld_v2]; } } __syncthreads(); }
7,025
#include <cuda_runtime.h> #include <iostream> #include <ctime> using namespace std; const int N = 1024; const int THREAD_SIZE = 256; #define CUDA_CHECK cuda_check(__FILE__, __LINE__) void cuda_check(string file, int line){ cudaError_t e = cudaGetLastError(); if (e != cudaSuccess){ cout << endl << file << ", line" << line << ": " << cudaGetErrorString(e) << "(" << e << ")" << endl; exit(1); } } __device__ float add(float a, float b){ return a + b; } __global__ void add_arrays(float* a, float* b, float* c, int n){ int ind = threadIdx.x + blockDim.x * blockIdx.x; if (ind < n) { c[ind] = add(a[ind], b[ind]); } } int main(int argc, char** argv){ float *a = new float[N]; float *b = new float[N]; float *c = new float[N]; for (int i = 0; i < N; ++ i){ a[i] = rand(); b[i] = rand(); c[i] = 0; } for (int i = 0; i < N; ++ i) c[i] = a[i] + b[i]; cout << "CPU:" << endl; for (int i = 0; i < N; ++ i) cout << a[i] << "+" << b[i] << "=" << c[i] << endl; cout << endl; float *d_a = NULL; float *d_b = NULL; float *d_c = NULL; size_t nbytes = N * sizeof(float); cudaMalloc(&d_a, nbytes); CUDA_CHECK; cudaMalloc(&d_b, nbytes); CUDA_CHECK; cudaMalloc(&d_c, nbytes); CUDA_CHECK; cudaMemcpy(d_a, a, nbytes, cudaMemcpyHostToDevice); cudaMemcpy(d_b, b, nbytes, cudaMemcpyHostToDevice); dim3 block = dim3(THREAD_SIZE, 1, 1); dim3 grid = dim3((N + block.x - 1) / block.x, 1, 1); add_arrays <<<grid, block>>> (d_a, d_b, d_c, N); cudaMemcpy(c, d_c, nbytes, cudaMemcpyDeviceToHost);CUDA_CHECK; cudaFree(d_a); cudaFree(d_b); cudaFree(d_c); cout << "GPU" << endl; for (int i = 0; i < N; ++ i) cout << i << ":" << a[i] << "+" << b[i] << "=" << c[i] << endl; delete[] a; delete[] b; delete[] c; return 0; }
7,026
#include <stdio.h> #include "math.h" __constant__ int perm[] = {151,160,137,91,90,15, 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23, 190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33, 88,237,149,56,87,174,20,125,136,171,168, 68,175,74,165,71,134,139,48,27,166, 77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244, 102,143,54, 65,25,63,161, 1,216,80,73,209,76,132,187,208, 89,18,169,200,196, 135,130,116,188,159,86,164,100,109,198,173,186, 3,64,52,217,226,250,124,123, 5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42, 223,183,170,213,119,248,152, 2,44,154,163, 70,221,153,101,155,167, 43,172,9, 129,22,39,253, 19,98,108,110,79,113,224,232,178,185, 112,104,218,246,97,228, 251,34,242,193,238,210,144,12,191,179,162,241, 81,51,145,235,249,14,239,107, 49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254, 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180}; __constant__ int grad3[] = {1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1, 0, 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 0, 1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1 }; __device__ double mix(double a, double b, double t) { return (1 - t) * a + t * b; } __device__ double fade(double t) { return t * t * t * (t * (t * 6 - 15) + 10); } __device__ double dot(int * g, double x, double y) { return g[0] * x + g[1] * y; } __device__ double dot(int * g, double x, double y, double z) { return g[0] * x + g[1] * y + g[2] * z; } __device__ int fastFloor(double x) { return x > 0 ? (int) x : (int) x - 1; } __device__ double map(double input, int min1, int max1, int min2, int max2) { return (((input - min1) / (max1 - min1)) * (max2 - min2)) + min2; } extern "C" __global__ void noise3D(int * output, double x, double y, double z) { int idx = blockIdx.x * blockDim.x + threadIdx.x; int idy = blockIdx.y * blockDim.y + threadIdx.y; int pixelIndex = (idy * blockDim.y) + idx; x += idx; y += idy; int X = floor(x); int Y = floor(y); int Z = floor(z); x = x - X; y = y - Y; z = z - Z; X = X & 255; Y = Y & 255; Z = Z & 255; int gi000 = perm[X + perm[Y + perm[Z]]] % 12; int gi001 = perm[X + perm[Y + perm[Z + 1]]] % 12; int gi010 = perm[X + perm[Y + 1 + perm[Z]]] % 12; int gi011 = perm[X + perm[Y + 1 + perm[Z + 1]]] % 12; int gi100 = perm[X + 1 + perm[Y + perm[Z]]] % 12; int gi101 = perm[X + 1 + perm[Y + perm[Z + 1]]] % 12; int gi110 = perm[X + 1 + perm[Y + 1 + perm[Z]]] % 12; int gi111 = perm[X + 1 + perm[Y + 1 + perm[Z + 1]]] % 12; double n000 = dot(grad3 + gi000, idx, idy, z); double n100 = dot(grad3 + gi100, x - 1, y, z); double n010 = dot(grad3 + gi010, x, y - 1, z); double n110 = dot(grad3 + gi110, x - 1, y - 1, z); double n001 = dot(grad3 + gi001, x, y, z - 1); double n101 = dot(grad3 + gi101, x - 1, y, z - 1); double n011 = dot(grad3 + gi011, x, y - 1, z - 1); double n111 = dot(grad3 + gi111, x - 1, y - 1, z - 1); double u = fade(x); double v = fade(y); double w = fade(z); double nx00 = mix(n000, n100, u); double nx01 = mix(n001, n101, u); double nx10 = mix(n010, n110, u); double nx11 = mix(n011, n111, u); double nxy0 = mix(nx00, nx10, v); double nxy1 = mix(nx01, nx11, v); double nxyz = mix(nxy0, nxy1, w); output[pixelIndex] = map(nxyz, -1, 1, 0, 255); }
7,027
#include "includes.h" __global__ void MatrixMulKernelTiles(float* d_M, float* d_N, float* d_P, int Width){ __shared__ float Mds[TILE_WIDTH][TILE_WIDTH]; __shared__ float Nds[TILE_WIDTH][TILE_WIDTH]; int bx = blockIdx.x; int by = blockIdx.y; int tx = threadIdx.x; int ty = threadIdx.y; // Identify the row and column of the d_P element to work on int Row = by * TILE_WIDTH + ty; int Col = bx * TILE_WIDTH + tx; float Pvalue = 0; // Loop over the d_M and d_N tiles required to compute d_P element for (int m = 0; m < Width/TILE_WIDTH; ++m) { // Coolaborative loading of d_M and d_N tiles into shared memory Mds[ty][tx] = d_M[Row*Width + m*TILE_WIDTH + tx]; Nds[ty][tx] = d_N[(m*TILE_WIDTH + ty)*Width + Col]; __syncthreads(); for (int k = 0; k < TILE_WIDTH; ++k) { Pvalue += Mds[ty][k] * Nds[k][tx]; } __syncthreads(); } d_P[Row*Width + Col] = Pvalue; }
7,028
 #include <stdio.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #define N 9 #define threads 3 __global__ void mulKernel(int* A, int* X, int* B) { __shared__ int a[threads * threads]; __shared__ int x[threads]; __shared__ int parcial[threads]; int res = 0; int row = threadIdx.y + blockIdx.y * blockDim.y; int col = threadIdx.x + blockIdx.x * blockDim.x; int iA = col + row * N; int tidA = threadIdx.x + threads * threadIdx.y; int tidX = threadIdx.y; if (row >= N || col >= N) return; a[tidA] = A[iA]; if (threadIdx.x == 0) x[tidX] = B[row]; __syncthreads(); res = a[tidA] * x[tidX]; atomicAdd(&parcial[tidX], res); __syncthreads(); if (threadIdx.x == 0) atomicAdd(&B[col], parcial[tidX]); } //lab2-6 __global__ void kernel6(int* A, int* posmin) { //__shared__ int sh[threads]; __shared__ int locPosMin; int loc; int index = threadIdx.x + blockIdx.x * blockDim.x; loc = A[index]; if (threadIdx.x == 0) locPosMin = INT_MAX; __syncthreads(); if(loc > 0) atomicMin(&locPosMin, loc); __syncthreads(); if (threadIdx.x == 0) atomicMin(posmin, locPosMin); __syncthreads(); if (threadIdx.x == 0) locPosMin = *posmin; __syncthreads(); if (loc <= 0) loc = locPosMin; A[index] = loc; } int main() { return 0; }
7,029
#include "includes.h" __global__ void add(int *c , int *d){ int tid=threadIdx.x; d[tid]+=c[tid]; }
7,030
//function kernel __device__ float length(float3 r) { return r.x*r.x + r.y*r.y + r.z*r.z; } __device__ float3 mul_float3(float3 r1, float3 r2) { return make_float3(r1.x * r2.x, r1.y * r2.y, r1.z * r2.z); } __device__ float3 add_float3(float3 r1, float3 r2) { return make_float3(r1.x + r2.x, r1.y + r2.y, r1.z + r2.z); } __device__ float3 dif_float3(float3 r1, float3 r2) { return make_float3(r1.x - r2.x, r1.y - r2.y, r1.z - r2.z); } __device__ float3 scale_float3(float s, float3 r) { r.x *= s; r.y *= s; r.z *= s; return r; } __device__ float Kernel_Poly6(float3 r, float h) { float PI = 3.14159; return 315.0f / (64 * PI * pow(h, 9)) * pow(pow(h, 2) - length(r), 3); } __device__ float3 Gradient_Kernel_Poly6(float3 r, float h) { float PI = 3.14159; return make_float3( r.x * -945.0f / ( 32.0f * PI * pow(h,9) ) * pow(pow(h, 2) - length(r), 2), r.y * -945.0f / ( 32.0f * PI * pow(h,9) ) * pow(pow(h, 2) - length(r), 2), r.z * -945.0f / ( 32.0f * PI * pow(h,9) ) * pow(pow(h, 2) - length(r), 2)); } __device__ float Lap_Kernel_Poly6(float3 r, float h) { float PI = 3.14159; return 945.0f / (8 * PI * pow(h, 9)) * (pow(h, 2) - length(r)) * (length(r) - 3 / 4 * (pow(h, 2) - length(r))); } __device__ float3 Gradient_Kernel_Spiky(float3 r, float h) { float PI = 3.14159; float _r = sqrt(length(r)); float v = -45.0f / (PI * pow(h, 6) * _r) * pow(h - _r, 2); return make_float3(r.x*v, r.y*v, r.z*v); } __device__ float Lap_Kernel_Viscosity(float3 r, float h) { float PI = 3.14159; return 45.0f / (PI * pow(h, 5)) * (1 - sqrt(length(r)) / h); } //PBF particle struct struct pPBF { float3 pos; float3 vel; float m; float rho; float lambda; float col; }; extern "C" __global__ void PBD_1(float3 *pos, int *M_index, float *M, const float h, const int N, const int NP) { int idx = blockDim.x * blockIdx.x + threadIdx.x; if (idx > N) return; float3 _pos = pos[idx]; int i; int index = 0; // Policy // dont use H, and use M for connection for (i = 0; i < NP; ++i) { M_index[i + idx * NP] = 0; M[i + idx * NP] = 0; } // S for (i = 0; i < N; ++i) { if (i == idx) continue; float3 __pos = pos[i]; float3 r = dif_float3(_pos, __pos); float len = length(r); if (len > h*h) continue; M_index[index + idx * NP] = i; M[index + idx * NP] = sqrt(len); ++index; if (index == NP) break; } return; }
7,031
/* Daniel Willen, 2019 * * Solve the transient heat conduction problem with homogeneous Dirichlet * boundary conditions: * * u(x={0,L}) = u(y={0,L}) = 0 * * and initial condition: * * u(x,y,0) = sin(x) * sin(y) * * on the domain 0 <= x,y <= L, with L = pi. * * This program solves the above problem on a single GPU with the Jacobi method. * */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cuda.h> #include <thrust/device_ptr.h> #include <thrust/reduce.h> #define PI 3.14159265358979323846 #define MAX_THREADS_DIM 16 // Note that this depends on the hardware /* Note on the structure of this file: * - Cuda device constant memory declarations are at the top * - Functions definitions are in the middle. Functions include: * - - parse_cmdline: Read command-line arguments for domain size * - - jacobi_solver: Advance the soln to the next time step using Jacobi * - - check_error: Calculate the error b/t the numeric and analytic solns * - The `main' function is at the bottom * * Note that it is good practice to use header files and break functions out * into separate files. This has not been done here for simplicity. */ /*** Auxiliary Functions ***/ /* Read the command line inputs */ // - argv[0] is the program name // - argv[1] is the first input (number of points) int parse_cmdline(int argc, char *argv[]) { int nx; if (argc >= 2) { nx = atoi(argv[1]); // Number of grid points printf("Grid is %d by %d\n\n", nx, nx); } else { printf("Input error. Run like: \n\n"); printf(" $ ./parallel.c n\n\n"); printf(" where n is the number of grid cells in one dimension\n"); exit(EXIT_FAILURE); } return nx; } /*** GPU Constants ***/ __constant__ int _nx; __constant__ int _ny; __constant__ double _Lx; __constant__ double _Ly; __constant__ double _dx; __constant__ double _dy; __constant__ double _dt; __constant__ double _D; __constant__ double _pref; /******************************************************************************* * Step IV: Launch the GPU kernel to advance to the next time step with the * * Jacobi method here. * ******************************************************************************/ __global__ void jacobi_solver(double* u, double* u_new) { // int ti = blockIdx.x*blockDim.x + threadIdx.x; // int tj = blockIdx.y*blockDim.y + threadIdx.y; // if ((ti >= 1 && ti < (_nx-1)) && // (tj >= 1 && tj < (_ny-1))) { // u_new[ti + tj*_nx] = // u[ti + tj*_nx] + _pref * ( // u[(ti+1) + tj*_nx] + // u[(ti-1) + tj*_nx] + // u[ti + (tj+1)*_nx] + // u[ti + (tj-1)*_nx] + // u[ti + tj*_nx] * (-4) // ); // } __shared__ double s_u[MAX_THREADS_DIM*MAX_THREADS_DIM]; int si = threadIdx.x; int sj = threadIdx.y; int ti = blockIdx.x*(blockDim.x-2) + threadIdx.x; int tj = blockIdx.y*(blockDim.y-2) + threadIdx.y; if (ti < _nx && tj < _ny) { s_u[si + sj*blockDim.x] = u[ti + tj*_nx]; } __syncthreads(); if ((ti >= 1 && ti < (_nx-1)) && (tj >= 1 && tj < (_ny-1)) && (si > 0 && si < (blockDim.x-1)) && (sj > 0 && sj < (blockDim.y-1))) { u_new[ti + tj*_nx] = s_u[si + sj*blockDim.x] + _pref * ( s_u[(si+1) + sj*blockDim.x] + s_u[(si-1) + sj*blockDim.x] + s_u[si + (sj+1)*blockDim.x] + s_u[si + (sj-1)*blockDim.x] + s_u[si + sj*blockDim.x] * (-4) ); } return; } /****************************************************************************** * Step V: Launch the GPU kernel to calculate the error at each grid point * * here. * *****************************************************************************/ __global__ void check_error(double* u, double* error, double time) { // int ti = blockIdx.x*blockDim.x + threadIdx.x; // int tj = blockIdx.y*blockDim.y + threadIdx.y; // if ((ti >= 1 && ti < (_nx-1)) && // (tj >= 1 && tj < (_ny-1))) { // error[ti + tj*_nx] = u[ti + tj*_nx] / (sin(ti*_dx) * sin(tj*_dy) * exp(-2*_D*time)) - 1; // } int ti = blockIdx.x*(blockDim.x-2) + threadIdx.x; int tj = blockIdx.y*(blockDim.y-2) + threadIdx.y; if ((ti >= 1 && ti < (_nx-1)) && (tj >= 1 && tj < (_ny-1)) && (threadIdx.x > 0 && threadIdx.x < (blockDim.x-1)) && (threadIdx.y > 0 && threadIdx.y < (blockDim.y-1))) { error[ti + tj*_nx] = u[ti + tj*_nx] / (sin(ti*_dx) * sin(tj*_dy) * exp(-2*_D*time)) - 1; } return; } /*** Main Function ***/ int main(int argc, char *argv[]) { /* Variable declaration */ double Lx = PI; // Domain length in x-direction double Ly = PI; // Domain length in y-direction double D = 1.; // Diffusion constant int nx, ny; // Grid points (grid cells + 1) double dx, dy; // Grid spacing double dt; // Time step size double sim_time; // Length of sim time, arbitrary for simplicity double pref; // Pre-factor in the Jacobi method double error = 0.; // Mean percent-difference at each grid point error = error; // To prevent compiler warning /* Parse command-line for problem size */ nx = parse_cmdline(argc, argv); ny = nx; // Assume a square grid /* Initialize variables */ dx = Lx / (nx - 1); // Cell width in x-direction dy = Ly / (ny - 1); // Cell width in y-direction dt = 0.25*dx*dy/D; // Limited by diffusive stability sim_time = Lx*Ly/D; // Arbitrary simulation length pref = D*dt/(dx*dx); // Jacobi pre-factor printf("Parameters\n"); printf("---------------------------\n"); printf("Lx = %.5lf\n", Lx); printf("Lx = %.5lf\n", Ly); printf("T = %.5lf\n", sim_time); printf("D = %.5lf\n", D); printf("nx = %d\n", nx); printf("ny = %d\n", nx); printf("dx = %.5lf\n", dx); printf("dy = %.5lf\n", dy); printf("dt = %.5lf\n", dt); printf("\n"); cudaMemcpyToSymbol(_nx, &nx, sizeof(int)); cudaMemcpyToSymbol(_ny, &ny, sizeof(int)); cudaMemcpyToSymbol(_Lx, &Lx, sizeof(double)); cudaMemcpyToSymbol(_Ly, &Ly, sizeof(double)); cudaMemcpyToSymbol(_dx, &dx, sizeof(double)); cudaMemcpyToSymbol(_dy, &dy, sizeof(double)); cudaMemcpyToSymbol(_dt, &dt, sizeof(double)); cudaMemcpyToSymbol(_D, &D, sizeof(double)); cudaMemcpyToSymbol(_pref, &pref, sizeof(double)); /***************************************************************************** * Step I: Declare, allocate, and initialize memory for the field variable * * u on the CPU. * ****************************************************************************/ double *u; u = (double*) malloc(nx*ny * sizeof(double)); for (int i = 0; i < nx; i++) { for (int j = 0; j < ny; j++) { u[i+j*nx] = sin(i*dx) * sin(j*dy); } } /***************************************************************************** * Step II: Declare and allocate GPU memory for _u, _u_new, and _error. Copy * * the initial condition to the GPU. * ****************************************************************************/ double *_u, *_u_new, *_error; cudaMalloc(&_u, nx*ny * sizeof(double)); cudaMalloc(&_u_new, nx*ny * sizeof(double)); cudaMalloc(&_error, nx*ny * sizeof(double)); cudaMemcpy(_u, u, nx*ny * sizeof(double), cudaMemcpyHostToDevice); // Set the new soln and error to 0 cudaMemset(_u_new, 0., nx*ny * sizeof(double)); cudaMemset(_error, 0., nx*ny * sizeof(double)); // Create thrust pointers to device memory for error calculation thrust::device_ptr<double> t_error(_error); /***************************************************************************** * Step III: Set up the kernel execution configuration for the domain based * * on the input domain size and the MAX_THREADS_DIM variable. * ****************************************************************************/ int threads_x = MAX_THREADS_DIM; int threads_y = MAX_THREADS_DIM; // int blocks_x = (int) ceil((double) nx / (double) threads_x); // int blocks_y = (int) ceil((double) ny / (double) threads_y); int blocks_x = (int) ceil((double) nx / (double) (threads_x - 2)); int blocks_y = (int) ceil((double) ny / (double) (threads_y - 2)); dim3 dim_blocks(threads_x, threads_y); dim3 num_blocks(blocks_x, blocks_y); printf("Parallelization\n"); printf("---------------------------\n"); printf("MAX_THREADS_DIM = %d\n", MAX_THREADS_DIM); printf("threads_x = %d\n", threads_x); printf("threads_y = %d\n", threads_y); printf("blocks_x = %d\n", blocks_x); printf("blocks_y = %d\n", blocks_y); printf("\n"); /***************************/ /* Main Time-Stepping Loop */ /***************************/ for (double time = 0.; time <= sim_time; time += dt) { /*************************************************************************** * Step IV: Launch the GPU kernel to advance to the next time step with * * the Jacobi method here. * **************************************************************************/ jacobi_solver<<<num_blocks, dim_blocks>>>(_u, _u_new); /*************************************************************************** * Step V: Launch the GPU kernel to calculate the error at each grid point * * here. * **************************************************************************/ check_error<<<num_blocks, dim_blocks>>>(_u, _error, time); // Use thrust to do a parallel reduction on the error error = thrust::reduce(t_error, t_error + nx*ny, 0., thrust::plus<double>()); printf("Error at t* = %.5lf is %e\n", time*D/(Lx*Lx), error/(nx*ny)); // Copy new soln to old. This also blocks to ensure computations are finished. cudaMemcpy(_u, _u_new, nx*ny * sizeof(double), cudaMemcpyDeviceToDevice); } /***************************************************************************** * Step VI: Copy the memory back to the CPU. * ****************************************************************************/ cudaMemcpy(u, _u, nx*ny * sizeof(double), cudaMemcpyDeviceToHost); /***************************************************************************** * Step I and Step II: Free the memory that you declared and allocated * * earlier in the program. * ****************************************************************************/ cudaFree(_u); cudaFree(_u_new); cudaFree(_error); free(u); return EXIT_SUCCESS; }
7,032
#include <fstream> #include <sstream> #include <vector> #include "math.h" __device__ double calculateStandardDeviation(double *data, int col, int rows, int columns, double mean) { double standardDeviation = 0; for (int i = col; i < rows * columns; i += columns) { auto temp = (data[i] - mean); standardDeviation += (temp * temp); } return sqrt(standardDeviation/rows); } __device__ double calculateMean(double *data, int col, int rows, int columns) { double mean = 0; for (int i = col; i < rows * columns; i+= columns) { mean += data[i]; } return mean/rows; } __global__ void runStandardization(double* data, int rows, int columns) { double *mean = new double[columns - 1]; double *std = new double[columns - 1]; for(int i = 0; i < columns-1; i++) { mean[i] = calculateMean(data, i, rows, columns); std[i] = calculateStandardDeviation(data, i, rows, columns, mean[i]); } int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; int columnsCounter = 0; for(int i = index; i < rows * columns; i+=stride) { double value = data[i]; if (columnsCounter+1 == columns) { data[i] = value; columnsCounter = 0; } else { if(std[columnsCounter] != 0) { value -= mean[columnsCounter]; value /= std[columnsCounter]; } data[i] = value; columnsCounter++; } } } __host__ int countWords(const std::string& text, char delimiter) { std::stringstream stream(text); std::string temp; int counter = 0; while(getline(stream, temp, delimiter)) { counter++; } return counter; } __host__ void countRowsAndColumns(std::string filename, int* rows, int* columns) { std::ifstream featuresFile(filename); std::string line; std::getline(featuresFile, line); *columns = countWords(line, ','); *rows = 1; while (std::getline(featuresFile, line)) (*rows)++; featuresFile.close(); } __host__ void readFeaturesFromCsv(std::string filename, double* result, int rows, int columns) { std::ifstream featuresFile(filename); std::string line; int i = 0; while(std::getline(featuresFile, line)) { std::stringstream ss(line); double value; while(ss >> value){ result[i] = value; if(ss.peek() == ',') ss.ignore(); i++; } } featuresFile.close(); } __host__ void writeFeaturesToCsv(double *output, int rows, int columns){ std::ofstream file("data.csv"); int size = rows * columns; int columnsCounter = 0; for(int i = 0; i < size; ++i) { double value = output[i]; file << value; if (columnsCounter + 1 != columns) { file << ","; columnsCounter++; } else { file << "\n"; columnsCounter = 0; } } file.close(); } int main(int argc, char* argv[]) { int rows, columns; std::string fileName("./winequality-white.csv"); countRowsAndColumns(fileName, &rows, &columns); double *input = new double[rows * columns]; readFeaturesFromCsv(fileName, input, rows, columns); double *normalized; cudaMalloc((void **) &normalized, rows * columns * sizeof(double)); cudaMemcpy(normalized, input, rows * columns * sizeof(double), cudaMemcpyHostToDevice); cudaEvent_t startTime, stopTime; cudaEventCreate(&startTime); cudaEventCreate(&stopTime); cudaEventRecord(startTime); runStandardization<<<1, 1>>>(normalized, rows, columns); float resultTime; cudaEventRecord(stopTime); cudaEventSynchronize(stopTime); cudaEventElapsedTime(&resultTime, startTime, stopTime); printf("Algorithm took: %f (ms)\n", resultTime); cudaMemcpy(input, normalized, rows * columns * sizeof(double), cudaMemcpyDeviceToHost); cudaFree(normalized); writeFeaturesToCsv(input, rows, columns); }
7,033
#include "includes.h" using namespace std; #define GRID_SIZE 32 #define SHARED_MEM 16384 __global__ void findY(float *x, float *y, int n, float h, float z, int zLoc, float *returnVal) { // int col = blockIdx.x * blockDim.x + threadIdx.x; // int row = blockIdx.y * blockDim.y + threadIdx.y; __shared__ float sum; sum = 0; // float absVal = 0; int count = 0; for(int i = 0; i < n; i++) { // absVal = abs(x[i] - z); if(abs(x[i] - z) < h) { //sum = atomicAdd(&sum, y[zLoc]); sum += y[i]; // cuPrintf("sum = %d\n", sum); count++; } } *returnVal = sum / count; // sum = 0; // count = 0; }
7,034
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <algorithm> #include <cassert> #include <cstdlib> #include <iostream> #include <iterator> #include <vector> using std::begin; using std::copy; using std::cout; using std::end; using std::generate; using std::vector; // CUDA kernel for vector addition // __global__ means this is called from the CPU, and runs on the GPU __global__ void vectorAdd(int* a, int* b, int* c, int N) { // Calculate global thread ID int tid = (blockIdx.x * blockDim.x) + threadIdx.x; // Boundary check if (tid < N) { // Each thread adds a single element c[tid] = a[tid] + b[tid]; } } // Check vector add result void verify_result(vector<int>& a, vector<int>& b, vector<int>& c) { for (int i = 0; i < a.size(); i++) { assert(c[i] == a[i] + b[i]); } } int main() { // Array size of 2^16 (65536 elements) constexpr int N = 1 << 26; size_t bytes = sizeof(int) * N; // Vectors for holding the host-side (CPU-side) data vector<int> a(N); vector<int> b(N); vector<int> c(N); // Initialize random numbers in each array generate(begin(a), end(a), []() { return rand() % 100; }); generate(begin(b), end(b), []() { return rand() % 100; }); // Allocate memory on the device int* d_a, * d_b, * d_c; cudaMalloc(&d_a, bytes); cudaMalloc(&d_b, bytes); cudaMalloc(&d_c, bytes); // Copy data from the host to the device (CPU -> GPU) cudaMemcpy(d_a, a.data(), bytes, cudaMemcpyHostToDevice); cudaMemcpy(d_b, b.data(), bytes, cudaMemcpyHostToDevice); // Threads per CTA (1024 threads per CTA) int NUM_THREADS = 1 << 10; // CTAs per Grid // We need to launch at LEAST as many threads as we have elements // This equation pads an extra CTA to the grid if N cannot evenly be divided // by NUM_THREADS (e.g. N = 1025, NUM_THREADS = 1024) int NUM_BLOCKS = (N + NUM_THREADS - 1) / NUM_THREADS; // Launch the kernel on the GPU // Kernel calls are asynchronous (the CPU program continues execution after // call, but no necessarily before the kernel finishes) vectorAdd <<<NUM_BLOCKS, NUM_THREADS>>> (d_a, d_b, d_c, N); // Copy sum vector from device to host // cudaMemcpy is a synchronous operation, and waits for the prior kernel // launch to complete (both go to the default stream in this case). // Therefore, this cudaMemcpy acts as both a memcpy and synchronization // barrier. cudaMemcpy(c.data(), d_c, bytes, cudaMemcpyDeviceToHost); // Check result for errors verify_result(a, b, c); // Free memory on device cudaFree(d_a); cudaFree(d_b); cudaFree(d_c); cout << "COMPLETED SUCCESSFULLY\n"; return 0; }
7,035
#include "includes.h" __global__ void setMultiLHS ( double* dsMulti, double* dlMulti, double* diagMulti, double* duMulti, double* dwMulti, double a, double b, double c, double d, double e, int nx, int batchCount ) { // Matrix index int globalIdx = blockDim.x * blockIdx.x + threadIdx.x; int globalIdy = blockDim.y * blockIdx.y + threadIdx.y; // Index access int index = globalIdy * batchCount + globalIdx; if (globalIdx < batchCount && globalIdy < nx) { dsMulti[index] = a; dlMulti[index] = b; diagMulti[index] = c; duMulti[index] = d; dwMulti[index] = e; } }
7,036
#include "includes.h" __global__ void AddToFloat( float *sum, float *out, const float *pIn ) { (void) atomicAdd( &out[threadIdx.x], pIn[threadIdx.x] ); }
7,037
#include "includes.h" #define SIZE_thread 1024 __global__ void VectorAdd(int *A, int *B, int *C,int n) { int i = threadIdx.x + blockIdx.x*blockDim.x; if(i<n) C[i]=A[i]+B[i]; }
7,038
#include <iostream> #include <stdlib.h> #include <chrono> #include <stdio.h> __global__ void triad_kernel(int N, double *x, double *y, double *z) { for(unsigned i = threadIdx.x + blockIdx.x * blockDim.x; i < N; i+=blockDim.x*gridDim.x) z[i] = x[i] + y[i]; } int main() { int N = 100; double *x, *y, *z; cudaMallocManaged((void**) &x, N*sizeof(double)); cudaMallocManaged((void**) &y, N*sizeof(double)); cudaMallocManaged((void**) &z, N*sizeof(double)); for(unsigned i = 0; i < N; i++) { x[i] = 0.001*i; y[i] = 0.03*i; } int nthreads = 64; int nblocks = (N+nthreads-1)/ nthreads; triad_kernel<<<nblocks, nthreads>>>(N,x,y,z); cudaDeviceSynchronize(); for(unsigned i = 0; i < N; i++) { printf("z[%d] = %g; expected z = %g\n|" ,i,z[i],x[i]+y[i]); } cudaFree(x); cudaFree(y); cudaFree(z); return 0; }
7,039
#include "constants.cuh" #include "e_field.cuh" #include "b_field.cuh" #include "sources.cuh" #include "update_functions.cuh" #include "tdma.cuh" #include "file_io.cuh" using namespace std; const int step = 10; void run_loop(Efield& e, Bfield& b, Source& s) { Timer update_loop_timer; update_loop_timer.start(); Tridiagonal td_x_half(nx, dy); // ex n+1/2 Tridiagonal td_y_half(ny, dz); // ey n+1/2 Tridiagonal td_z_half(nz, dx); // ez n+1/2 Tridiagonal td_x_one(nx, dz); // ex n+1 Tridiagonal td_y_one(ny, dx); // ey n+1 Tridiagonal td_z_one(nz, dy); // ez n+1 // Begin time loop for (int q = 0; q < nt; q++) { auto t = float(q) * dt; update_sources(s, t); /* n -> n + 1/2 */ // Implicit e update implicit_ex_half(e, b, s); x_solve(td_x_half, e.ex_rhs, e.ex); implicit_ey_half(e, b, s); y_solve(td_y_half, e.ey_rhs, e.ey); implicit_ez_half(e, b, s); z_solve(td_z_half, e.ez_rhs, e.ez); // Explicit E update explicit_E(e.Ex, e.ex); explicit_E(e.Ey, e.ey); explicit_E(e.Ez, e.ez); // Explicit H update explicit_Hx_half(b, e); explicit_Hy_half(b, e); explicit_Hz_half(b, e); /* n + 1/2 -> n + 1 */ // Implicit e update implicit_ex_one(e, b); x_solve(td_x_one, e.ex_rhs, e.ex); implicit_ey_one(e, b); y_solve(td_y_one, e.ey_rhs, e.ey); implicit_ez_one(e, b); z_solve(td_z_one, e.ez_rhs, e.ez); // Explicit E update explicit_E(e.Ex, e.ex); explicit_E(e.Ey, e.ey); explicit_E(e.Ez, e.ez); // Explicit H update explicit_Hx_one(b, e); explicit_Hy_one(b, e); explicit_Hz_one(b, e); if (q % step == 0) { cout << q << "/" << nt << ": " << update_loop_timer.split() << endl; snapshot(q, e, b); } } cout << "Update loop completed. Processing arrays." << endl; snapshot(nt, e, b); update_loop_timer.stop(); cout << "Processing completed.\nTotal time: " << update_loop_timer.total << endl; } int main() { save_params(step); Efield e; Bfield b; Source s; run_loop(e, b, s); return 0; }
7,040
/// ================================================================ /// /// Disclaimer: IMPORTANT: This software was developed at theNT /// National Institute of Standards and Technology by employees of the /// Federal Government in the course of their official duties. /// Pursuant to title 17 Section 105 of the United States Code this /// software is not subject to copyright protection and is in the /// public domain. This is an experimental system. NIST assumes no /// responsibility whatsoever for its use by other parties, and makes /// no guarantees, expressed or implied, about its quality, /// reliability, or any other characteristic. We would appreciate /// acknowledgement if the software is used. This software can be /// redistributed and/or modified freely provided that any derivative /// works bear some notice that they are derived from it, and any /// modified versions bear some notice that they have been modified. /// /// ================================================================ // ================================================================ // // Author: Timothy Blattner // Date: Wed Nov 30 12:36:40 2011 EScufftDoubleComplex // // Functions that execute on the graphics card for doing // Vector computation. // // ================================================================ #include <cuda.h> #include <cufft.h> #include<float.h> #define THREADS_PER_BLOCK 256 #define MIN_DISTANCE 1.0 // ================================================================ __device__ double distance(int x1, int x2, int y1, int y2) { return ((double(x1-x2))*(double(x1-x2)))+ ((double(y1-y2))*(double(y1-y2))); } __device__ bool checkDistance(int *maxesRow, int *maxesCol, int nMax, int curIdx, int width) { int row = curIdx / width; int col = curIdx % width; int j; //double dist; for (j = 0; j < nMax; j++) { if (maxesRow[j] == row && maxesCol[j] == col) return false; //dist = distance(maxesRow[j], row, maxesCol[j], col); //if (dist < MIN_DISTANCE) // return false; } return true; } __device__ bool checkDistance(volatile int *maxesRow, volatile int *maxesCol, int nMax, int curIdx, int width) { int row = curIdx / width; int col = curIdx % width; int j; //double dist; for (j = 0; j < nMax; j++) { if (maxesRow[j] == row && maxesCol[j] == col) return false; // dist = distance(maxesRow[j], row, maxesCol[j], col); // if (dist < MIN_DISTANCE) // return false; } return true; } extern "C" __global__ void elt_prod_conj(cufftDoubleComplex *fc, cufftDoubleComplex * c1, cufftDoubleComplex * c2, int size) { __shared__ cufftDoubleComplex sfc[THREADS_PER_BLOCK]; __shared__ cufftDoubleComplex sc1[THREADS_PER_BLOCK]; __shared__ cufftDoubleComplex sc2[THREADS_PER_BLOCK]; int idx = threadIdx.x + blockIdx.x * THREADS_PER_BLOCK; if (idx >= size) return; sc1[threadIdx.x] = c1[idx]; sc2[threadIdx.x] = c2[idx]; __syncthreads(); sfc[threadIdx.x] = cuCmul(sc1[threadIdx.x], cuConj(sc2[threadIdx.x])); double mag = cuCabs(sfc[threadIdx.x]); if (mag == 0 || isnan(mag)) { mag = DBL_EPSILON; sfc[threadIdx.x].x = DBL_EPSILON; } fc[idx] = make_cuDoubleComplex(cuCreal(sfc[threadIdx.x]) / mag, cuCimag(sfc[threadIdx.x]) / mag); } extern "C" __global__ void elt_prod_conj_v2(cufftDoubleComplex *fc, cufftDoubleComplex * c1, cufftDoubleComplex * c2, int size) { __shared__ cufftDoubleComplex sfc[THREADS_PER_BLOCK]; int idx = threadIdx.x + blockIdx.x * THREADS_PER_BLOCK; if (idx >= size) return; //cufftDoubleComplex fc_res; sfc[threadIdx.x] = cuCmul(c1[idx], cuConj(c2[idx])); __syncthreads(); double mag; // mag = sqrt(fc_res.x * fc_res.x + fc_res.y * fc_res.y); mag = sqrt(sfc[threadIdx.x].x * sfc[threadIdx.x].x + sfc[threadIdx.x].y * sfc[threadIdx.x].y); if (isnan(mag) || mag == 0) { mag = DBL_EPSILON; //cuCabs(sfc[threadIdx.x]); sfc[threadIdx.x].x = DBL_EPSILON; } // if (mag == 0) // mag = DBL_EPSILON; fc[idx] = make_cuDoubleComplex(sfc[threadIdx.x].x / mag, sfc[threadIdx.x].y / mag); } extern "C" __global__ void elt_prod_conj_v3(cufftDoubleComplex *fc, cufftDoubleComplex * c1, cufftDoubleComplex *c2, int size) { int idx = threadIdx.x + blockIdx.x * THREADS_PER_BLOCK; if (idx >= size) return; cufftDoubleComplex _c1 = c1[idx]; cufftDoubleComplex _c2 = c2[idx]; cufftDoubleComplex _fc = cuCmul(_c1, cuConj(_c2)); double mag = sqrt(_fc.x * _fc.x + _fc.y * _fc.y); if (isnan(mag) || mag == 0) mag = cuCabs(_fc); if (mag == 0) mag = DBL_EPSILON; fc[idx] = make_cuDoubleComplex(_fc.x / mag, _fc.y / mag); } extern "C" __global__ void reduce_max_final(double *g_idata, double *g_odata, int * max_idx, unsigned int n, int blockSize) { __shared__ double sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize*2) + tid; unsigned int gridSize = blockSize*2*gridDim.x; double myMax = 0.0; int myMaxIndex; while (i < n) { if (myMax < g_idata[i]) { myMax = g_idata[i]; myMaxIndex = max_idx[i]; } if (i+blockSize < n) { if (myMax < g_idata[i+blockSize]) { myMax = g_idata[i+blockSize]; myMaxIndex = max_idx[i+blockSize]; } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } __syncthreads(); } volatile double *vdata = sdata; volatile int *vidxData = idxData; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } if (blockSize >= 4) if (myMax < vdata[tid+2]) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; } } extern "C" __global__ void reduce_max_main(double *g_idata, double *g_odata, int * max_idx, unsigned int n, int blockSize) { __shared__ double sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize) + tid; unsigned int gridSize = blockSize*gridDim.x; double myMax = 0.0; int myMaxIndex; double val; while (i < n) { val = g_idata[i]; if (myMax < val) { myMax = val; myMaxIndex = i; } if (i+blockSize < n) { val = g_idata[i+blockSize]; if (myMax < val) { myMax = val; myMaxIndex = i+blockSize; } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } __syncthreads(); } volatile double *vdata = sdata; volatile int *vidxData = idxData; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } if (blockSize >= 4) if (myMax < vdata[tid+2]) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; } } extern "C" __global__ void reduce_max_filter_final(double *g_idata, double *g_odata, int * max_idx, unsigned int n, unsigned int width, int blockSize, int *maxes, int nMax) { __shared__ int smaxesRow[10]; __shared__ int smaxesCol[10]; __shared__ int smaxesVal[10]; __shared__ double sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize*2) + tid; unsigned int gridSize = blockSize*2*gridDim.x; if (tid < nMax) { smaxesVal[tid] = maxes[tid]; smaxesRow[tid] = smaxesVal[tid] / width; smaxesCol[tid] = smaxesVal[tid] % width; } __syncthreads(); double myMax = 0.0; int myMaxIndex; while (i < n) { if (myMax < g_idata[i]) { if (checkDistance(smaxesRow, smaxesCol, nMax, max_idx[i], width)) { myMax = g_idata[i]; myMaxIndex = max_idx[i]; } } if (i+blockSize < n) { if (myMax < g_idata[i+blockSize]) { if (checkDistance(smaxesRow, smaxesCol, nMax, max_idx[i+blockSize], width)) { myMax = g_idata[i+blockSize]; myMaxIndex = max_idx[i+blockSize]; } } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { if (checkDistance(smaxesRow, smaxesCol, nMax, idxData[tid+256], width)) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { if (checkDistance(smaxesRow, smaxesCol, nMax, idxData[tid+128], width)) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { if (checkDistance(smaxesRow, smaxesCol, nMax, idxData[tid+64], width)) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } } __syncthreads(); } volatile double *vdata = sdata; volatile int *vidxData = idxData; volatile int *vsmaxesRow = smaxesRow; volatile int *vsmaxesCol = smaxesCol; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+32], width)) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+16], width)) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+8], width)) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+4], width)) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } } if (blockSize >= 4) if (myMax < vdata[tid+2]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+2], width)) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+1], width)) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; if (gridDim.x == 1) maxes[nMax] = idxData[0]; } } extern "C" __global__ void reduce_max_filter_main(double *g_idata, double *g_odata, int * max_idx, unsigned int width, unsigned int height, int blockSize, int *maxes, int nMax) { __shared__ int smaxesRow[10]; __shared__ int smaxesCol[10]; __shared__ int smaxesVal[10]; __shared__ double sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize) + tid; unsigned int gridSize = blockSize*gridDim.x; if (tid < nMax) { smaxesVal[tid] = maxes[tid]; smaxesRow[tid] = smaxesVal[tid] / width; smaxesCol[tid] = smaxesVal[tid] % width; } __syncthreads(); double myMax = -INFINITY; int myMaxIndex; double val; while (i < width * height) { val = g_idata[i]; if (myMax < val) { // compute distance . . . if (checkDistance(smaxesRow, smaxesCol, nMax, i, width)) { myMax = val; myMaxIndex = i; } } if (i+blockSize < width * height) { val = g_idata[i+blockSize]; if (myMax < val) { if (checkDistance(smaxesRow, smaxesCol, nMax, i+blockSize, width)) { myMax = val; myMaxIndex = i+blockSize; } } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { if (checkDistance(smaxesRow, smaxesCol, nMax, idxData[tid+256], width)) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { if (checkDistance(smaxesRow, smaxesCol, nMax, idxData[tid+128], width)) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { if (checkDistance(smaxesRow, smaxesCol, nMax, idxData[tid+64], width)) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } } __syncthreads(); } volatile double *vdata = sdata; volatile int *vidxData = idxData; volatile int *vsmaxesRow = smaxesRow; volatile int *vsmaxesCol = smaxesCol; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+32], width)) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+16], width)) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+8], width)) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+4], width)) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } } if (blockSize >= 4) if (myMax < vdata[tid+2]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+2], width)) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { if (checkDistance(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+1], width)) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; if (gridDim.x == 1) maxes[nMax] = idxData[0]; } } // ================================================================ // ================================================================ // ================================================================ // ================================================================ // ======================= Float versions ========================= // ================================================================ // ================================================================ // ================================================================ // ================================================================ // ================================================================ __device__ float distancef(int x1, int x2, int y1, int y2) { return ((float(x1-x2))*(float(x1-x2)))+ ((float(y1-y2))*(float(y1-y2))); } __device__ bool checkDistancef(int *maxesRow, int *maxesCol, int nMax, int curIdx, int width) { int row = curIdx / width; int col = curIdx % width; int j; for (j = 0; j < nMax; j++) { if (maxesRow[j] == row && maxesCol[j] == col) return false; //dist = distance(maxesRow[j], row, maxesCol[j], col); //if (dist < MIN_DISTANCE) // return false; } return true; } __device__ bool checkDistancef(volatile int *maxesRow, volatile int *maxesCol, int nMax, int curIdx, int width) { int row = curIdx / width; int col = curIdx % width; int j; for (j = 0; j < nMax; j++) { if (maxesRow[j] == row && maxesCol[j] == col) return false; } return true; } extern "C" __global__ void elt_prod_conjf(cufftComplex *fc, cufftComplex * c1, cufftComplex * c2, int size) { __shared__ cufftComplex sfc[THREADS_PER_BLOCK]; __shared__ cufftComplex sc1[THREADS_PER_BLOCK]; __shared__ cufftComplex sc2[THREADS_PER_BLOCK]; int idx = threadIdx.x + blockIdx.x * THREADS_PER_BLOCK; if (idx >= size) return; sc1[threadIdx.x] = c1[idx]; sc2[threadIdx.x] = c2[idx]; __syncthreads(); sfc[threadIdx.x] = cuCmulf(sc1[threadIdx.x], cuConjf(sc2[threadIdx.x])); float mag = cuCabsf(sfc[threadIdx.x]); if (mag == 0 || isnan(mag)) { mag = FLT_EPSILON; sfc[threadIdx.x].x = FLT_EPSILON; } fc[idx] = make_cuComplex(cuCrealf(sfc[threadIdx.x]) / mag, cuCimagf(sfc[threadIdx.x]) / mag); } extern "C" __global__ void elt_prod_conj_v2f(cufftComplex *fc, cufftComplex * c1, cufftComplex * c2, int size) { __shared__ cufftComplex sfc[THREADS_PER_BLOCK]; int idx = threadIdx.x + blockIdx.x * THREADS_PER_BLOCK; if (idx >= size) return; //cufftDoubleComplex fc_res; sfc[threadIdx.x] = cuCmulf(c1[idx], cuConjf(c2[idx])); __syncthreads(); float mag; // mag = sqrt(fc_res.x * fc_res.x + fc_res.y * fc_res.y); mag = sqrtf(sfc[threadIdx.x].x * sfc[threadIdx.x].x + sfc[threadIdx.x].y * sfc[threadIdx.x].y); if (isnan(mag) || mag == 0) { mag = FLT_EPSILON; //cuCabs(sfc[threadIdx.x]); sfc[threadIdx.x].x = FLT_EPSILON; } // if (mag == 0) // mag = DBL_EPSILON; fc[idx] = make_cuComplex(sfc[threadIdx.x].x / mag, sfc[threadIdx.x].y / mag); } extern "C" __global__ void elt_prod_conj_v3f(cufftComplex *fc, cufftComplex * c1, cufftComplex *c2, int size) { int idx = threadIdx.x + blockIdx.x * THREADS_PER_BLOCK; if (idx >= size) return; cufftComplex _c1 = c1[idx]; cufftComplex _c2 = c2[idx]; cufftComplex _fc = cuCmulf(_c1, cuConjf(_c2)); float mag = sqrtf(_fc.x * _fc.x + _fc.y * _fc.y); if (isnan(mag) || mag == 0) mag = cuCabsf(_fc); if (mag == 0) mag = FLT_EPSILON; fc[idx] = make_cuComplex(_fc.x / mag, _fc.y / mag); } extern "C" __global__ void reduce_max_finalf(float *g_idata, float *g_odata, int * max_idx, unsigned int n, int blockSize) { __shared__ float sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize*2) + tid; unsigned int gridSize = blockSize*2*gridDim.x; float myMax = 0.0; int myMaxIndex; while (i < n) { if (myMax < g_idata[i]) { myMax = g_idata[i]; myMaxIndex = max_idx[i]; } if (i+blockSize < n) { if (myMax < g_idata[i+blockSize]) { myMax = g_idata[i+blockSize]; myMaxIndex = max_idx[i+blockSize]; } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } __syncthreads(); } volatile float *vdata = sdata; volatile int *vidxData = idxData; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } if (blockSize >= 4) if (myMax < vdata[tid+2]) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; } } extern "C" __global__ void reduce_max_mainf(float *g_idata, float *g_odata, int * max_idx, unsigned int n, int blockSize) { __shared__ float sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize) + tid; unsigned int gridSize = blockSize*gridDim.x; float myMax = 0.0; int myMaxIndex; float val; while (i < n) { val = g_idata[i]; if (myMax < val) { myMax = val; myMaxIndex = i; } if (i+blockSize < n) { val = g_idata[i+blockSize]; if (myMax < val) { myMax = val; myMaxIndex = i+blockSize; } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } __syncthreads(); } volatile float *vdata = sdata; volatile int *vidxData = idxData; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } if (blockSize >= 4) if (myMax < vdata[tid+2]) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; } } extern "C" __global__ void reduce_max_filter_finalf(float *g_idata, float *g_odata, int * max_idx, unsigned int n, unsigned int width, int blockSize, int *maxes, int nMax) { __shared__ int smaxesRow[10]; __shared__ int smaxesCol[10]; __shared__ int smaxesVal[10]; __shared__ float sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize*2) + tid; unsigned int gridSize = blockSize*2*gridDim.x; if (tid < nMax) { smaxesVal[tid] = maxes[tid]; smaxesRow[tid] = smaxesVal[tid] / width; smaxesCol[tid] = smaxesVal[tid] % width; } __syncthreads(); float myMax = 0.0; int myMaxIndex; while (i < n) { if (myMax < g_idata[i]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, max_idx[i], width)) { myMax = g_idata[i]; myMaxIndex = max_idx[i]; } } if (i+blockSize < n) { if (myMax < g_idata[i+blockSize]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, max_idx[i+blockSize], width)) { myMax = g_idata[i+blockSize]; myMaxIndex = max_idx[i+blockSize]; } } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, idxData[tid+256], width)) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, idxData[tid+128], width)) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, idxData[tid+64], width)) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } } __syncthreads(); } volatile float *vdata = sdata; volatile int *vidxData = idxData; volatile int *vsmaxesRow = smaxesRow; volatile int *vsmaxesCol = smaxesCol; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+32], width)) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+16], width)) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+8], width)) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+4], width)) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } } if (blockSize >= 4) if (myMax < vdata[tid+2]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+2], width)) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+1], width)) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; if (gridDim.x == 1) maxes[nMax] = idxData[0]; } } extern "C" __global__ void reduce_max_filter_mainf(float *g_idata, float *g_odata, int * max_idx, unsigned int width, unsigned int height, int blockSize, int *maxes, int nMax) { __shared__ int smaxesRow[10]; __shared__ int smaxesCol[10]; __shared__ int smaxesVal[10]; __shared__ float sdata[THREADS_PER_BLOCK]; __shared__ int idxData[THREADS_PER_BLOCK]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x*(blockSize) + tid; unsigned int gridSize = blockSize*gridDim.x; if (tid < nMax) { smaxesVal[tid] = maxes[tid]; smaxesRow[tid] = smaxesVal[tid] / width; smaxesCol[tid] = smaxesVal[tid] % width; } __syncthreads(); float myMax = -INFINITY; int myMaxIndex; float val; while (i < width * height) { val = g_idata[i]; if (myMax < val) { // compute distance . . . if (checkDistancef(smaxesRow, smaxesCol, nMax, i, width)) { myMax = val; myMaxIndex = i; } } if (i+blockSize < width * height) { val = g_idata[i+blockSize]; if (myMax < val) { if (checkDistancef(smaxesRow, smaxesCol, nMax, i+blockSize, width)) { myMax = val; myMaxIndex = i+blockSize; } } } i += gridSize; } sdata[tid] = myMax; idxData[tid] = myMaxIndex; __syncthreads(); if (blockSize >= 512) { if (tid < 256) { if (myMax < sdata[tid + 256]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, idxData[tid+256], width)) { sdata[tid] = myMax = sdata[tid+256]; idxData[tid] = idxData[tid+256]; } } } __syncthreads(); } if (blockSize >= 256) { if (tid < 128) { if (myMax < sdata[tid + 128]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, idxData[tid+128], width)) { sdata[tid] = myMax = sdata[tid+128]; idxData[tid] = idxData[tid+128]; } } } __syncthreads(); } if (blockSize >= 128) { if (tid < 64) { if(myMax < sdata[tid + 64]) { if (checkDistancef(smaxesRow, smaxesCol, nMax, idxData[tid+64], width)) { sdata[tid] = myMax = sdata[tid+64]; idxData[tid] = idxData[tid+64]; } } } __syncthreads(); } volatile float *vdata = sdata; volatile int *vidxData = idxData; volatile int *vsmaxesRow = smaxesRow; volatile int *vsmaxesCol = smaxesCol; if (tid < 32) { if (blockSize >= 64) if (myMax < vdata[tid + 32]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+32], width)) { vdata[tid] = myMax = vdata[tid+32]; vidxData[tid] = vidxData[tid+32]; } } if (blockSize >= 32) if (myMax < vdata[tid + 16]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+16], width)) { vdata[tid] = myMax = vdata[tid+16]; vidxData[tid] = vidxData[tid+16]; } } if (blockSize >= 16) if (myMax < vdata[tid + 8]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+8], width)) { vdata[tid] = myMax = vdata[tid+8]; vidxData[tid] = vidxData[tid+8]; } } if (blockSize >= 8) if (myMax < vdata[tid + 4]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+4], width)) { vdata[tid] = myMax = vdata[tid+4]; vidxData[tid] = vidxData[tid+4]; } } if (blockSize >= 4) if (myMax < vdata[tid+2]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+2], width)) { vdata[tid] = myMax = vdata[tid+2]; vidxData[tid] = vidxData[tid+2]; } } if (blockSize >= 2) if (myMax < vdata[tid + 1]) { if (checkDistancef(vsmaxesRow, vsmaxesCol, nMax, vidxData[tid+1], width)) { vdata[tid] = myMax = vdata[tid+1]; vidxData[tid] = vidxData[tid+1]; } } __syncthreads(); } if (tid == 0) { g_odata[blockIdx.x] = sdata[0]; max_idx[blockIdx.x] = idxData[0]; if (gridDim.x == 1) maxes[nMax] = idxData[0]; } } // ================================================================ // Local Variables: // time-stamp-line-limit: 30 // End:
7,041
#include "includes.h" __global__ void calculateMatrixFormula(int *a, int *b, int *res, int n) { int tidx = blockDim.x * blockIdx.x + threadIdx.x; int tidy = blockDim.y * blockIdx.y + threadIdx.y; if (tidx >= n || tidy >= n) { return; } int tid = tidx * n + tidy; res[tid] = a[tid] - b[tid]; }
7,042
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <iomanip> #include <math.h> using namespace std; typedef double myfloat; const double pi_const = 3.1415926535897932384626433832795; void generate_components(float* pi_comp, int n); float add_components(float* pi_comp, int n); void print_components(float* pi_comp, int n); void generate_components(double* pi_comp, int n); double add_components(double* pi_comp, int n); void print_components(double* pi_comp, int n); __global__ void add_components_GPU_2(myfloat* pi_components, myfloat* pi_components_2, int thr_adds) { int id_i = (blockIdx.x * blockDim.x + threadIdx.x) * thr_adds; for (int i = id_i; i < id_i + thr_adds; i++) { *(pi_components_2 + id_i / thr_adds) += *(pi_components + i); } } __global__ void generate_GPU(myfloat* pi_components, int n) { int id_i = (blockIdx.x * blockDim.x + threadIdx.x); for (int i = id_i; i < n; i += blockDim.x + gridDim.x) { *(pi_components + i) = 4 * 1.0 / (2 * i + 1) * ((2 * i) % 4 ? -1.0 : 1.0); } } int main() { int n = 1; //std::cout << "Give n: "; //std::cin >> n; n = 600000000; std::cout << "n: " << n << "\n\n"; myfloat* pi_comp_CPU = (myfloat*)malloc(n * sizeof(myfloat)); cudaError_t cudaStatus; //Obliczenia CPU //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ generate_components(pi_comp_CPU, n); clock_t start_CPU = clock(); myfloat pi_no = add_components(pi_comp_CPU, n); clock_t stop_CPU = clock(); std::cout << "pi_constant: " << std::setprecision(50) << pi_const << "\n\n"; std::cout << "\n\nCPU\n"; std::cout << "pi CPU: " << std::setprecision(50) << pi_no << "\n"; std::cout << "Czas_CPU: " << 1000 * (stop_CPU - start_CPU) / ((double)CLOCKS_PER_SEC) << " ms" << std::endl; std::cout << "pi_error: " << std::setprecision(50) << pi_const - pi_no << "\n\n"; //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //GPU myfloat* pi_components; myfloat* pi_components_2; int BLOCK_SIZE = 256; int GRID_SIZE = 16; myfloat* pi_sum_h = (myfloat*)malloc(sizeof(myfloat)); cudaStatus = cudaMalloc(&pi_components, (n + BLOCK_SIZE * GRID_SIZE) * sizeof(myfloat)); if (cudaStatus != cudaSuccess) { fprintf(stderr, "cudaMalloc failed!\n"); } cudaStatus = cudaMalloc(&pi_components_2, BLOCK_SIZE * GRID_SIZE * sizeof(myfloat));//(n+1)/2 if (cudaStatus != cudaSuccess) { fprintf(stderr, "cudaMalloc failed!\n"); } cudaMemcpy(pi_components, pi_comp_CPU, n * sizeof(myfloat), cudaMemcpyHostToDevice); clock_t start_GPU = clock(); // Obliczenia GPU //-------------------------------------------------------------- int thr_adds = (n + BLOCK_SIZE * GRID_SIZE - 1) / (BLOCK_SIZE * GRID_SIZE);//ile jeden watek ma wykonac dodawan add_components_GPU_2 <<<GRID_SIZE, BLOCK_SIZE >>> (pi_components, pi_components_2, thr_adds); cudaStatus = cudaGetLastError(); if (cudaStatus != cudaSuccess) { fprintf(stderr, "add_components_GPU_2 launch failed: %s\n", cudaGetErrorString(cudaStatus)); } cudaMemcpy(pi_comp_CPU, pi_components_2, (BLOCK_SIZE * GRID_SIZE) * sizeof(myfloat), cudaMemcpyDeviceToHost); *pi_sum_h = add_components(pi_comp_CPU, (BLOCK_SIZE * GRID_SIZE)); //-------------------------------------------------------------- clock_t stop_GPU = clock(); std::cout << "\n\nGPU\n"; std::cout << "pi GPU: " << std::setprecision(50) << *pi_sum_h << "\n"; std::cout << "Czas_GPU: " << 1000 * (stop_GPU - start_GPU) / ((double)CLOCKS_PER_SEC) << " ms" << std::endl; std::cout << "pi_error: " << std::setprecision(50) << pi_const - *pi_sum_h << "\n\n"; std::cout << "Speedup: " << (double)(stop_CPU - start_CPU) / (stop_GPU - start_GPU) << "\n\n"; cudaFree(pi_components); cudaFree(pi_components_2); free(pi_comp_CPU); free(pi_sum_h); return 0; } //################################################################################## void generate_components(myfloat* pi_comp, int n) { int sign = 1; for (int i = 1; i < 2 * n; i += 2) { *(pi_comp + i / 2) = 4 * 1.0 / i * sign; sign = -sign; } } myfloat add_components(myfloat* pi_comp, int n) { myfloat pi_no = 0.0; for (int i = 0; i < n; i++) { pi_no += pi_comp[i]; } return pi_no; } void print_components(myfloat* pi_comp, int n) { for (int i = 0; i < n; i++) { std::cout << "comp " << i << ": " << pi_comp[i] << "\n"; } }
7,043
#include <stdio.h> #define CHECK(call) \ { \ const cudaError_t error = call; \ if (error != cudaSuccess) \ { \ fprintf(stderr, "Error: %s:%d, ", __FILE__, __LINE__); \ fprintf(stderr, "code: %d, reason: %s\n", error, \ cudaGetErrorString(error)); \ exit(EXIT_FAILURE); \ } \ } struct GpuTimer { cudaEvent_t start; cudaEvent_t stop; GpuTimer() { cudaEventCreate(&start); cudaEventCreate(&stop); } ~GpuTimer() { cudaEventDestroy(start); cudaEventDestroy(stop); } void Start() { cudaEventRecord(start, 0); } void Stop() { cudaEventRecord(stop, 0); } float Elapsed() { float elapsed; cudaEventSynchronize(stop); cudaEventElapsedTime(&elapsed, start, stop); return elapsed; } }; int reduceByHost(int * in, int n) { int s = in[0]; for (int i = 1; i < n; i++) s += in[i]; return s; } // Kernel 1 - warp divergence __global__ void reduceByDevice1(int * in, int * out, int n) { // TODO int i = (blockIdx.x*blockDim.x + threadIdx.x)*2; int stride; int sum = 0; for(stride = 0; stride < 2*threadIdx.x; stride *= 2){ if(threadIdx.x%stride == 0){ if(i+stride < n){ sum += in[i+stride]; } } __syncthreads(); } out[i] = sum; if(threadIdx.x == 0){ out[blockIdx.x*blockDim.x] = out[blockIdx.x*blockDim.x*2]; } } // Kernel 2 - less warp divergence __global__ void reduceByDevice2(int * in, int * out, int n) { // TODO int num = blockIdx.x*blockDim.x*2; for(int stride = 1; stride < blockDim.x*2; stride *= 2){ int i = num + threadIdx.x*2*stride; if(threadIdx.x < blockDim.x/stride){ if(i + stride < n){ in[i] += in[i+stride]; } __syncthreads(); } } if(threadIdx.x == 0){ out[blockIdx.x] = in[num]; } } // Kernel 3 - less warp divergence + efficient memory access __global__ void reduceByDevice3(int * in, int * out, int n) { // TODO int num = blockIdx.x*blockDim.x*2; for(int stride = blockDim.x; stride > 0; stride /= 2){ int i = num + threadIdx.x*2*stride; if(threadIdx.x < stride){ if(i + stride < n){ in[i] += in[i + stride]; } __syncthreads(); } } if(threadIdx.x == 0){ out[blockIdx.x] = in[num]; } } /* // Kernel 4 - use shared memmory __global__ void reduceByDevice4(int * in, int * out, int n){ // todo // mỗi block load dữ liệu từ GMEM(ram) lên SMEM // vì khai báo cần 1 kích thước tĩnh nên ở đây giả sử kích thước mỗi block là 256 __shared__ int blkData[2*256]; // số phần tử trước block hiện tại int num = blockIdx.x*blockDim*2; blkData[threadIdx.x]=in[num + threadIdx.x]; blkData[blockDim.x + threadIdx.x]=in[num + blockDim.x + threadIdx.x]; __syncthreads(); // tinh toan voi du lieu luu tai SMem for(int stride = blockDim.x; stride > 0; stride/=2){ if(threadIdx.x < stride){ blkData[threadIdx.x]+=blkData[threadIdx.x + stride]; } __syncthreads(); } // chep du lieu ve lai GMem if(threadIdx.x == 0){ out[blockIdx.x] = blkData[0]; } } */ int main(int argc, char ** argv) { // Print out device info cudaDeviceProp devProv; CHECK(cudaGetDeviceProperties(&devProv, 0)); printf("**********GPU info**********\n"); printf("Name: %s\n", devProv.name); // TODO printf("Compute capability: %d\n", devProv.major); // TODO printf("Num SMs: %d\n", devProv.multiProcessorCount); // TODO printf("Max num threads per SM: %d\n", devProv.maxThreadsPerMultiProcessor); // TODO printf("Max num warps per SM: %d\n", devProv.maxThreadsPerMultiProcessor/32 ); // TODO printf("****************************\n\n"); // Set up input size int n = (1 << 24) + 1; printf("Input size: %d\n", n); // Set up execution configuration dim3 blockSize(256); // Default if (argc == 2) // Get block size from cmd argument blockSize.x = atoi(argv[1]); dim3 gridSize((n-1)/(2*blockSize.x) + 1); // TODO printf("Grid size: %d, block size: %d\n", gridSize.x, blockSize.x); // Allocate memories size_t bytes = n * sizeof(int); int * in = (int *) malloc(bytes); int * out = (int *) malloc(gridSize.x * sizeof(int)); // Set up input data for (int i = 0; i < n; i++) { // Generate a random integer in [0, 255] in[i] = (int)(rand() & 0xFF); } // Reduce on host int host_sum = reduceByHost(in, n); printf("\n%15s%12s%16s%21s%16s\n", "Function", "Result", "KernelTime(ms)", "Post-kernelTime(ms)", "TotalTime(ms)"); printf("%15s%12d%16s%21s%16s\n", "reduceByHost", host_sum, "-", "-", "-"); //======================================================== // Allocate device memories int *d_in, *d_out; CHECK(cudaMalloc(&d_in, bytes)); CHECK(cudaMalloc(&d_out, gridSize.x * sizeof(int))); // Copy data to device memories CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); // Kernel 1 - warp divergence CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); GpuTimer timer; timer.Start(); reduceByDevice1<<<gridSize, blockSize>>>(d_in, d_out, n); cudaDeviceSynchronize(); CHECK(cudaGetLastError()); timer.Stop(); float kernelTime = timer.Elapsed(); CHECK(cudaMemcpy(out, d_out, gridSize.x * sizeof(int), cudaMemcpyDeviceToHost)); timer.Start(); int device_sum = 0; for (int i = 0; i < gridSize.x; i++) device_sum += out[i]; timer.Stop(); float postKernelTime = timer.Elapsed(); printf("%15s%12d%16.3f%21.3f%16.3f\n", "reduceByDevice1", device_sum, kernelTime, postKernelTime, kernelTime + postKernelTime); bool correct1 = (host_sum == device_sum); // Check result // Reset d_in and d_out CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); // Re-copy input data to d_in CHECK(cudaMemset(d_out, 0, gridSize.x * sizeof(int))); // Reset d_out // Kernel 2 - less warp divergence timer.Start(); reduceByDevice2<<<gridSize, blockSize>>>(d_in, d_out, n); cudaDeviceSynchronize(); CHECK(cudaGetLastError()); timer.Stop(); kernelTime = timer.Elapsed(); CHECK(cudaMemcpy(out, d_out, gridSize.x * sizeof(int), cudaMemcpyDeviceToHost)); timer.Start(); device_sum = 0; for (int i = 0; i < gridSize.x; i++) device_sum += out[i]; timer.Stop(); postKernelTime = timer.Elapsed(); printf("%15s%12d%16.3f%21.3f%16.3f\n", "reduceByDevice2", device_sum, kernelTime, postKernelTime, kernelTime + postKernelTime); bool correct2 = (host_sum == device_sum); // Check result // Reset d_in and d_out CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); // Re-copy input data to d_in CHECK(cudaMemset(d_out, 0, gridSize.x * sizeof(int))); // Reset d_out // Kernel 3 - less warp divergence + efficient memory access CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); // Re-copy input data to d_in CHECK(cudaMemset(d_out, 0, gridSize.x * sizeof(int))); // Reset d_out timer.Start(); reduceByDevice3<<<gridSize, blockSize>>>(d_in, d_out, n); cudaDeviceSynchronize(); CHECK(cudaGetLastError()); timer.Stop(); kernelTime = timer.Elapsed(); CHECK(cudaMemcpy(out, d_out, gridSize.x * sizeof(int), cudaMemcpyDeviceToHost)); timer.Start(); device_sum = 0; for (int i = 0; i < gridSize.x; i++) device_sum += out[i]; timer.Stop(); postKernelTime = timer.Elapsed(); printf("%15s%12d%16.3f%21.3f%16.3f\n", "reduceByDevice3", device_sum, kernelTime, postKernelTime, kernelTime + postKernelTime); bool correct3 = (host_sum == device_sum); // Check result /* // Reset d_in and d_out CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); // Re-copy input data to d_in CHECK(cudaMemset(d_out, 0, gridSize.x * sizeof(int))); // Reset d_out // Kernel 4 - use shared memory CHECK(cudaMemcpy(d_in, in, bytes, cudaMemcpyHostToDevice)); // Re-copy input data to d_in CHECK(cudaMemset(d_out, 0, gridSize.x * sizeof(int))); // Reset d_out timer.Start(); reduceByDevice4<<<gridSize, blockSize>>>(d_in, d_out, n); cudaDeviceSynchronize(); CHECK(cudaGetLastError()); timer.Stop(); kernelTime = timer.Elapsed(); CHECK(cudaMemcpy(out, d_out, gridSize.x * sizeof(int), cudaMemcpyDeviceToHost)); timer.Start(); device_sum = 0; for (int i = 0; i < gridSize.x; i++) device_sum += out[i]; timer.Stop(); postKernelTime = timer.Elapsed(); printf("%15s%12d%16.3f%21.3f%16.3f\n", "reduceByDevice4", device_sum, kernelTime, postKernelTime, kernelTime + postKernelTime); bool correct4 = (host_sum == device_sum); // Check result */ // Print out errors printf("\n"); if (correct1 == false) fprintf(stderr, "Error: reduceByDevice1 is incorrect!\n"); if (correct2 == false) fprintf(stderr, "Error: reduceByDevice2 is incorrect!\n"); if (correct3 == false) fprintf(stderr, "Error: reduceByDevice3 is incorrect!\n"); //if (correct4 == false) // fprintf(stderr, "Error: reduceByDevice3 is incorrect!\n"); // Free device memories CHECK(cudaFree(d_in)); CHECK(cudaFree(d_out)); //======================================================== // Free memories free(in); free(out); return EXIT_SUCCESS; }
7,044
__global__ void test(float *A){ int i = threadIdx.x; if (i % 2 == 0){ float x = A[i]; } if (i % 3 == 0){ A[i] = i; } }
7,045
#include "includes.h" __global__ void transponer(float* entrada, float* salida, int ANCHO){ int tx = blockIdx.x*blockDim.x + threadIdx.x; int ty = blockIdx.y*blockDim.y + threadIdx.y; salida[tx*ANCHO + ty] = entrada[ty*ANCHO + tx]; }
7,046
/* My very first program in c++ square a vector */ #include <iostream> #define ARR_SIZE 64 /* Kernel - square the array */ __global__ void square(float *d_in, float *d_out) { int ndx = threadIdx.x; d_out[ndx] = d_in[ndx] * d_in[ndx]; } int main() { // Allocate array @CPU RAM float h_vec_a[ARR_SIZE]; float h_vec_res[ARR_SIZE]; // Initialize array @CPU for (int i=0; i<ARR_SIZE; i++) { h_vec_a[i] = (float)i; h_vec_res[i] = 0; } // Allocate arrays @GPU float *d_vec_a; float *d_vec_res; const long arr_bytes = ARR_SIZE * sizeof(float); if (cudaMalloc((void **) &d_vec_a, arr_bytes) != cudaSuccess) { std::cout << "Failed at cudaMalloc vec_a\n"; } if (cudaMalloc((void **) &d_vec_res, arr_bytes) != cudaSuccess) { std::cout << "Failed at cudaMalloc vec_res\n"; } // Transfer data from CPU to GPU cudaError_t err; err = cudaMemcpy(d_vec_a, h_vec_a, arr_bytes, cudaMemcpyHostToDevice); if (err != cudaSuccess) { std::cout << cudaGetErrorString(err) << "\n"; std::cout << "Failed at cudaMemcpy D2H at" << __FILE__ << " line: " << __LINE__ << "\n"; } // Kernel launch square<<<1, ARR_SIZE>>>(d_vec_a, d_vec_res); // Transfer data from GPU to CPU err = cudaMemcpy(h_vec_res, d_vec_res, arr_bytes, cudaMemcpyDeviceToHost); if ( err != cudaSuccess) { std::cout << cudaGetErrorString(err) << "\n"; std::cout << "Failed at cudaMemcpy D2H at" << __FILE__ << " line: " << __LINE__ << "\n"; } std::cout << "h_vec_res:\n"; for (int i=0; i< ARR_SIZE; i++) { std::cout << h_vec_res[i] << "\n"; } // Free GPU memory cudaFree(d_vec_a); cudaFree(d_vec_res); // Freeing host memory produces some weird crap -> investigate and/or do c++ style return 0; }
7,047
#include "includes.h" #define ROUND_OFF 50000 #define CUDA_NUM_THREADS 1024 #define WARPS_PER_BLOCK 1 #define THREADS_PER_WARP 32 #define CUDA_KERNEL_LOOP(i, n) for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); i += blockDim.x * gridDim.x) #define GET_BLOCKS(n, t) (n+t-1) / t // == Dimension rearrangement Kernel __global__ void CorrelateDataSubtract_1d(const int nthreads, int num, int item, int topwidth, int topheight, int topchannels, int topcount, int max_displacement, int x_shift, int neighborhood_grid_width, int kernel_radius, int stride1, int stride2, int bottomwidth, int bottomheight, int bottomchannels, const float *bottom0, const float *bottom1, float *top) { CUDA_KERNEL_LOOP(index, nthreads) { int x = index % topwidth; //w-pos int y = (index / topwidth) % topheight; //h-pos int c = (index / topwidth / topheight) % topchannels; //channels // Offset of patch in image 2 int s2o = (c % neighborhood_grid_width + x_shift) * stride2; // First (upper left) position of kernel center in current neighborhood in image 1 int x1 = x*stride1 + kernel_radius + max_displacement; int y1 = y*stride1 + kernel_radius + 0; // Iterate through 3D patch float sum = 0; for(int j = -kernel_radius; j <= kernel_radius; j++) { // HEIGHT for(int i = -kernel_radius; i <= kernel_radius; i++) { // WIDTH for(int l = 0; l < bottomchannels; l++) { // CHANNELS // Calculate position in image 2 int x2 = x1 + s2o; int y2 = y1; // Indices in bottom data: (CH=l,W=x2,H=y2,N) int idx1 = ((item * bottomheight + y1+j) * bottomwidth + x1+i) * bottomchannels + l; int idx2 = ((item * bottomheight + y2+j) * bottomwidth + x2+i) * bottomchannels + l; // Do the correlation: sum += fabsf(bottom0[idx1] - bottom1[idx2]); } } } const int sumelems = (kernel_radius*2+1)*(kernel_radius*2+1)*bottomchannels; top[index + item*topcount] = sum / (float)sumelems; } }
7,048
// // Created by smallflyfly on 2021/5/17. // #include <stdio.h> __global__ void hello_world() { printf("GPU HELLO WORLD!\n"); } int main(int argc, char** argv) { hello_world<<<1, 10>>>(); cudaDeviceReset(); return 0; }
7,049
#include <cuda_runtime.h> //#define NUMS 64 //#define num_size 8 //#define NUM 49 #define local_1(NUMS) \ __global__ void local_1_##NUMS(float *a) \ {\ float tmp[NUMS];\ int i;\ for(i=0;i<NUMS;i++)\ {\ tmp[i]=a[i];\ }\ for(i=0;i<NUMS;i++)\ {\ a[i]+=tmp[i];\ }\ } //local_1(29) //sm_10 //local_1(30) //local_1(73) //sm_35 //local_1(74) #define local_2(num_size) \ __global__ void local_2_##num_size(float *a,float *b,float *c)\ {\ float tmp_a[num_size*num_size];\ float temp;\ int i,j,k;\ for (i=0;i<num_size*num_size;i++)\ {\ tmp_a[i]=a[i];\ }\ for (i=0;i<num_size;i++)\ {\ for (j=0;j<num_size;j++)\ {\ temp=0.0;\ for (k=0;k<num_size;k++)\ {\ temp+=tmp_a[i*num_size+k]*b[k*num_size+j];\ }\ c[i*num_size+j]=temp;\ }\ }\ } //local_2(2) //sm_10 //local_2(3) //local_2(4) //local_2(5) //local_2(6) //sm_35 //local_2(7) //local_2(8) //local_2(9) #define local_3(NUM) \ __global__ void local_3_##NUM(float *a)\ {\ float tmp[NUM];\ float minf=0.0,temp;\ int mind;\ int i,j;\ for(i=0;i<NUM;i++)\ {\ tmp[i]=a[i];\ }\ for(i=0;i<NUM;i++)\ {\ minf=tmp[i];\ mind=i;\ for (j=i;j<NUM;j++)\ {\ if (minf>tmp[j])\ {\ minf=tmp[j];\ mind=i;\ } \ }\ if (mind!=i)\ {\ temp=tmp[i];\ tmp[i]=tmp[mind];\ tmp[mind]=temp;\ }\ }\ a[0]=tmp[NUM-1];\ } //sm_10 local_3(2) local_3(4) local_3(8) local_3(16) local_3(32) local_3(64) local_3(128)
7,050
extern "C" { #define RED_WEIGHT 0.2989f #define GREEN_WEIGHT 0.5870f #define BLUE_WEIGHT 0.1140f #define MAX_PIXEL(r, g, b) fmaxf(r, fmaxf(g, b)) #define MIN_PIXEL(r, g, b) fminf(r, fminf(g, b)) #define BLOCK_DIM 32 __device__ uchar3 hsv(float3 *rgb) { float h, s, v; float r = rgb->x, g = rgb->y, b = rgb->z; v = MAX_PIXEL(r, g, b); float min = MIN_PIXEL(r, g, b); min = v - min; s = v != 0.0f ? 255.0f*min / v : 0.0f; float tmp = 60.0f / min; if (v == r) h = tmp*(g - b); if (v == g) h = 120.0f + tmp*(b - r); if (v == b) h = 240.0f + tmp*(r - b); h = h < 0.0f ? 360.0f + h : h; //h = h > 180.0f ? h : 180.0f; return make_uchar3((unsigned char)h, (unsigned char)s, (unsigned char)v); } __global__ void rgb2hsv(unsigned char *d_input, unsigned char *d_output,int height, int width) { unsigned int row = blockDim.y*blockIdx.y + threadIdx.y; unsigned int col = blockDim.x*blockIdx.x; __shared__ float smem[6][32 * 3]; __shared__ unsigned char hsv_result[6][32*3]; for (int i = row; i < height; i += blockDim.y*gridDim.y) for (int j = col; j + threadIdx.x < width; j += blockDim.x*gridDim.x) { int index = 3 * (i*width + j) / 4 + threadIdx.x; uchar4 p0; if (threadIdx.x < 24) // 24 * 4 = 32 * 3 { p0 = reinterpret_cast<uchar4*>(d_input)[index]; reinterpret_cast<float4*>(smem)[24 * threadIdx.y + threadIdx.x] = make_float4((float)p0.x, (float)p0.y, (float)p0.z, (float)p0.w); } __syncthreads(); float3 gray = make_float3(smem[threadIdx.y][3 * threadIdx.x], smem[threadIdx.y][3 * threadIdx.x + 1], smem[threadIdx.y][3 * threadIdx.x + 2]); reinterpret_cast<uchar3*>(hsv_result)[32 * threadIdx.y + threadIdx.x] = hsv(&gray); __syncthreads(); if (threadIdx.x < 24) // 24 * 4 = 32 * 3 { uchar4 p1 = reinterpret_cast<uchar4*>(hsv_result)[24 * threadIdx.y + threadIdx.x]; reinterpret_cast<uchar4*>(d_output)[index] = p1; } } } __device__ uchar3 hsv_(uchar3 *rgb) { float h, s, v; float r = rgb->x, g = rgb->y, b = rgb->z; v = MAX_PIXEL(r, g, b); float min = MIN_PIXEL(r, g, b); min = v - min; s = v != 0.0f ? 255.0f*min / v : 0.0f; float tmp = 60.0f / min; if (v == r) h = tmp*(g - b); if (v == g) h = 120.0f + tmp*(b - r); if (v == b) h = 240.0f + tmp*(r - b); h = h < 0.0f ? 360.0f + h : h; //h = h > 180.0f ? h : 180.0f; return make_uchar3((unsigned char)h, (unsigned char)s, (unsigned char)v); } __global__ void rgb2hsv_(unsigned char *d_input, unsigned char *d_output,int height, int width) { int row = blockDim.y*blockIdx.y + threadIdx.y; int col = blockDim.x*blockIdx.x + threadIdx.x; for (int i = row; i < height; i += blockDim.y*gridDim.y) for (int j = col; j < width; j += blockDim.x*gridDim.x) { uchar3 p0 = reinterpret_cast<uchar3*>(d_input)[i*width + j]; reinterpret_cast<uchar3*>(d_output)[i*width + j] = hsv_(&p0); } } }
7,051
#include "includes.h" __device__ inline int getTransArrayIndex(unsigned int width, unsigned int height, unsigned int i) { return height * (i % width) + i / width; } __global__ void kAddTransSlow(float* a, float* b, float* dest, unsigned int width, unsigned int height, unsigned int numEls, float scaleA, float scaleB) { const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int numThreads = blockDim.x * gridDim.x; // const unsigned int idx = blockIdx.y * height + blockIdx.x * blockDim.x + threadIdx.y*blockDim.x + threadIdx.x; for (unsigned int i = idx; i < numEls; i += numThreads) { dest[i] = scaleA * a[i] + scaleB * b[getTransArrayIndex(width, height, i)]; } }
7,052
#include "Tensor.cuh" #include <cstring> #include <numeric> using namespace std; Tensor::Tensor(std::initializer_list<unsigned> l) : shape(l) { const unsigned len = std::accumulate( shape.begin(), shape.end(), 1, std::multiplies<unsigned>()); cudaMallocManaged(&m_data, len * sizeof(float)); /* memset(m_data, 0, len); */ for (unsigned i = 0; i < len; ++i) m_data[i] = 0; cudaDeviceSynchronize(); } Tensor::Tensor(Tensor const& other) : shape(other.shape) { cudaMallocManaged(&m_data, other.size() * sizeof(float)); for (unsigned i = 0; i < other.size(); ++i) m_data[i] = other.m_data[i]; cudaDeviceSynchronize(); } Tensor& Tensor::operator=(const Tensor& other) { if (this == &other) return *this; if (this->size() != other.size()) { delete[] m_data; cudaMallocManaged(&m_data, other.size() * sizeof(float)); } for (unsigned i = 0; i < other.size(); ++i) m_data[i] = other.m_data[i]; cudaDeviceSynchronize(); return *this; } Tensor::~Tensor() { cudaDeviceSynchronize(); cudaFree(m_data); } size_t Tensor::size() const { return std::accumulate( shape.begin(), shape.end(), 1, std::multiplies<unsigned>()); }
7,053
#include "includes.h" __global__ void InterpolateSymbolsKernel( float *symbolVectors, int symbolOneId, int symbolTwoId, float weightOne, float weightTwo, float *resultSymbol, int symbolSize ) { int threadId = blockDim.x*blockIdx.y*gridDim.x //rows preceeding current row in grid + blockDim.x*blockIdx.x //blocks preceeding current block + threadIdx.x; if(threadId < symbolSize) { int symbolOneCellId = symbolOneId * symbolSize + threadId; int symbolTwoCellId = symbolTwoId * symbolSize + threadId; resultSymbol[threadId] = weightOne * symbolVectors[symbolOneCellId] + weightTwo * symbolVectors[symbolTwoCellId]; } }
7,054
#include "cuda_field.cu" extern "C" { __global__ void field_init(int m){ cuda_field_init(m); } __global__ void make_unit(cuda_field_element* B, int n){ int thidX = (blockIdx.x * blockDim.x) + threadIdx.x; int thidY = (blockIdx.y * blockDim.y) + threadIdx.y; if(thidX < n && thidY < n){ B[thidX*n+thidY] = (thidX == thidY); } } __global__ void find_nonzero(cuda_field_element* A, int n, int i, int* k){ int thidX = (blockIdx.x * blockDim.x) + threadIdx.x; if(i < thidX && thidX < n) if(A[thidX*n+i] != 0) *k = thidX; } __global__ void swap(cuda_field_element* M, int n, int i, int k){ int thidX = (blockIdx.x * blockDim.x) + threadIdx.x; if(thidX < n){ cuda_field_element v = M[i*n+thidX]; M[i*n+thidX] = M[k*n+thidX]; M[k*n+thidX] = v; } } __global__ void fix_row(cuda_field_element* M, int n, int i, cuda_field_element mul){ int thidX = (blockIdx.x * blockDim.x) + threadIdx.x; if(thidX < n){ M[i*n+thidX] = M[i*n+thidX] * mul; } } __global__ void update_column(cuda_field_element* A, cuda_field_element* i_th_column, int n, int i){ int thidX = (blockIdx.x * blockDim.x) + threadIdx.x; if(thidX < n){ i_th_column[thidX] = A[thidX*n + i]; } } __global__ void fix_column(cuda_field_element* M, cuda_field_element* i_th_column, int n, int i){ int thidX = (blockIdx.x * blockDim.x) + threadIdx.x; int thidY = (blockIdx.y * blockDim.y) + threadIdx.y; //__shared__ cuda_field_element P[32]; if(thidY != i && thidX < n && thidY < n){ //P[threadIdx.x] = M[i*n+thidX]; M[thidY*n+thidX] -= i_th_column[thidY]*M[i*n+thidX];//P[threadIdx.x]; } } }
7,055
#include "includes.h" __global__ void scale_dropblock_kernel(float *output, int size, int outputs, float *drop_blocks_scale) { const int index = blockIdx.x*blockDim.x + threadIdx.x; if (index >= size) return; const int b = index / outputs; output[index] *= drop_blocks_scale[b]; }
7,056
#include "includes.h" __device__ float gamma_correction(float f_stop, float gamma, float val) { return powf((val*powf(2.0,f_stop)),(1.0/gamma)); } __device__ float rgb2Lum(float B, float G, float R) { return B * 0.0722 + G * 0.7152 + R * 0.2126; } __global__ void gamma_tonemap_kernel(float* imageIn, float* imageOut, int width, int height, int channels, float f_stop, float gamma) { int Row = blockDim.y * blockIdx.y + threadIdx.y; int Col = blockDim.x * blockIdx.x + threadIdx.x; if(Row < height && Col < width) { float B, G, R, L, nL, scale; B = imageIn[(Row*width+Col)*3+BLUE]; G = imageIn[(Row*width+Col)*3+GREEN]; R = imageIn[(Row*width+Col)*3+RED]; L = rgb2Lum(B, G, R); nL = gamma_correction(f_stop, gamma, L); scale = nL / L; imageOut[(Row*width+Col)*3+BLUE] = B * scale; imageOut[(Row*width+Col)*3+GREEN] = G * scale; imageOut[(Row*width+Col)*3+RED] = R * scale; } }
7,057
#include <iostream> #include <stdio.h> class fixedFunction{ public: __host__ fixedFunction() {} __host__ __device__ double operator()(double x) { return x*x; } }; __host__ __device__ double f1(double x){ return x*x; } typedef double (*pf) (double var); __device__ pf f1_d = f1; class genericFunction{ public: __host__ genericFunction(double (*h_infunc)(double), double (*d_infunc)(double)) : h_func(h_infunc),d_func(d_infunc){} __host__ __device__ double operator()(double x) { #ifdef __CUDA_ARCH__ return d_func(x); #else return h_func(x); #endif } private: pf h_func; pf d_func; }; __global__ void kernel1(fixedFunction* g1){ unsigned int tid = blockIdx.x *blockDim.x + threadIdx.x; printf("Func val is: %f\n", (*g1)(tid)); } __global__ void kernel2(genericFunction* g1){ unsigned int tid = blockIdx.x *blockDim.x + threadIdx.x; printf("Func val is: %f\n", (*g1)(tid)); } int main(){ fixedFunction h_g1; fixedFunction* d_g1; cudaMallocManaged(&d_g1, sizeof(h_g1)); //Host call std::cout << h_g1(2.0) << "\n"; //device call kernel1<<<1,32>>>(d_g1); cudaDeviceSynchronize(); pf d_f1; cudaMemcpyFromSymbol(&d_f1, f1_d, sizeof(void*)); genericFunction h_g2(f1, d_f1); genericFunction* d_g2; cudaMallocManaged(&d_g2, sizeof(h_g2)); cudaMemcpy(d_g2, &h_g2, sizeof(h_g2), cudaMemcpyDefault); //Host call std::cout << h_g2(3.0) << "\n"; //device call kernel2<<<1,32>>>(d_g2); cudaDeviceSynchronize(); }
7,058
#include <cuda.h> #include <device_launch_parameters.h> /* Inspired by the implementation of CustomPong.cu + GridWorld.cu @author mp */ extern "C" { __device__ __inline__ unsigned int AsUint(float *sourceImage, int pixelId) { return *(((unsigned int*)sourceImage) + pixelId); } __device__ __inline__ unsigned int GetComponent(unsigned int pixel, int comp) { return (pixel >> (comp * 8)) & 0xFF; } /* Draws a background color into a 3-component image. inputWidth & inputHeight: map dimensions in pixels gridDim.y = 3, one for each color component */ __global__ void DrawRgbBackgroundKernel(float *target, int inputWidth, int inputHeight, float r, float g, float b) { int column = threadIdx.x + blockDim.x * blockIdx.z; if (column >= inputWidth) return; int id = inputWidth * ( blockIdx.y * gridDim.x + blockIdx.x) // blockIdx.x == row, blockIdx.y == color channel + column; int imagePixels = inputWidth * inputHeight; if (id < 3*imagePixels) // 3 for RGB { float color = 0.0f; switch (blockIdx.y) { case 0: color = r; break; case 1: color = g; break; case 2: color = b; break; } target[id] = color; } } /* Adds noise into a 3-component image. inputWidth & inputHeight: map dimensions in pixels */ __global__ void AddRgbNoiseKernel(float *target, int inputWidth, int inputHeight, float *randoms, int isBlackAndWhiteNoise) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int imagePixels = inputWidth * inputHeight; if (id < imagePixels) { unsigned int tg = *((unsigned int*)(&target[id])); int random = randoms[id]; int blue = (tg >> 0) & (0xFF); blue += random; blue = blue < 255 ? blue : 255; blue = blue > 0 ? blue : 0; int green = ((tg >> 8) & (0xFF)); green += (isBlackAndWhiteNoise ? random : (int)(randoms[id + imagePixels])); green = green < 255 ? green : 255; green = green > 0 ? green : 0; int red = ((tg >> 16) & (0xFF)); red += (isBlackAndWhiteNoise ? random : (int)(randoms[id + imagePixels * 2])); red = red < 255 ? red : 255; red = red > 0 ? red : 0; // alpha is the last channel (<< 24) unsigned int tmp = (*((unsigned int *)(&blue)) << 0) | (*((unsigned int *)(&green)) << 8) | (*((unsigned int *)(&red)) << 16); target[id] = *((float *)(&tmp)); } } /* Fill specified rectangle with color */ __global__ void DrawRgbaColorKernel(float *target, int targetWidth, int targetHeight, int inputX, int inputY, int areaWidth, int areaHeight, float r, float g, float b) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int targetPixels = targetWidth * targetHeight; int texturePixels = areaWidth * areaHeight; int idTextureRgb = id / texturePixels; int idTexturePixel = (id - idTextureRgb * texturePixels); // same as (id % texturePixels), but the kernel runs 10% faster int idTextureY = idTexturePixel / areaWidth; int idTextureX = (idTexturePixel - idTextureY * areaWidth); // same as (id % textureWidth), but the kernel runs another 10% faster if (idTextureRgb < 3) // 3 channels that we will write to { // if the texture pixel offset by inputX, inputY, lies inside the target if (idTextureX + inputX < targetWidth && idTextureX + inputX >= 0 && idTextureY + inputY < targetHeight && idTextureY + inputY >= 0) { float color = 0.0f; switch (idTextureRgb) { case 0: color = r; break; case 1: color = g; break; case 2: color = b; break; } int tIndex = targetPixels * idTextureRgb + targetWidth * (idTextureY + inputY) + (idTextureX + inputX); target[tIndex] = color; } } } /* Draws a texture into a 3-component target. RGBA. Checks bounds. */ __global__ void DrawRgbaTextureKernel(float *target, int targetWidth, int targetHeight, int inputX, int inputY, float *texture, int textureWidth, int textureHeight) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int targetPixels = targetWidth * targetHeight; int texturePixels = textureWidth * textureHeight; int idTextureRgb = id / texturePixels; int idTexturePixel = (id - idTextureRgb * texturePixels); // same as (id % texturePixels), but the kernel runs 10% faster int idTextureY = idTexturePixel / textureWidth; int idTextureX = (idTexturePixel - idTextureY * textureWidth); // same as (id % textureWidth), but the kernel runs another 10% faster if (idTextureRgb < 3) // 3 channels that we will write to { // the texture is in BGR format, we want RGB switch (idTextureRgb) { case 0: // R idTextureRgb = 2; // B break; case 2: // B idTextureRgb = 0; // R break; } // if the texture pixel offset by inputX, inputY, lies inside the target if (idTextureX + inputX < targetWidth && idTextureX + inputX >= 0 && idTextureY + inputY < targetHeight && idTextureY + inputY >= 0) { int tIndex = targetPixels * idTextureRgb + targetWidth * (idTextureY + inputY) + (idTextureX + inputX); int aIndex = idTexturePixel + 3 * texturePixels; // the A component of the texture float a = texture[aIndex]; target[tIndex] = target[tIndex] * (1.0f - a) + a * texture[id]; } } } /* Draws a texture into a 3-component target. RGBA. Checks bounds. Stretches the texture. */ __global__ void DrawRgbaTextureKernelNearestNeighbor(float *target, int targetWidth, int targetHeight, int inputX, int inputY, float *texture, int textureWidth, int textureHeight, int objectWidth, int objectHeight) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int targetPixels = targetWidth * targetHeight; int texturePixels = textureWidth * textureHeight; int objectPixels = objectWidth * objectHeight; int idObjectRgb = id / objectPixels; int idObjectPixel = (id - idObjectRgb * objectPixels); // same as (id % objectPixels), but the kernel runs 10% faster int idObjectY = idObjectPixel / objectWidth; int idObjectX = (idObjectPixel - idObjectY * objectWidth); // same as (id % textureWidth), but the kernel runs another 10% faster if (idObjectRgb < 3) // 3 channels that we will write to { int targetRgb = idObjectRgb; // the texture is in BGR format, we want RGB switch (idObjectRgb) { case 0: // R targetRgb = 2; // B break; case 2: // B targetRgb = 0; // R break; } // if the object pixel offset by inputX, inputY, lies inside the target if (idObjectX + inputX < targetWidth && idObjectX + inputX >= 0 && idObjectY + inputY < targetHeight && idObjectY + inputY >= 0) { // nearest neighbor texture X,Y: int textureX = textureWidth * idObjectX / objectWidth; int textureY = textureHeight * idObjectY / objectHeight; int textureId = textureY * textureWidth + textureX; int rgbIndex = textureId + idObjectRgb * texturePixels; float textureValue = texture[rgbIndex]; int tIndex = targetPixels * targetRgb + targetWidth * (idObjectY + inputY) + (idObjectX + inputX); int aIndex = textureId + 3 * texturePixels; // the A component of the texture float a = texture[aIndex]; target[tIndex] = target[tIndex] * (1.0f - a) + a * textureValue; } } } /* Same as DrawRgbaTextureKernelNearestNeighbor, but texture = mask and texture's pixel values are replaced by a single color */ __global__ void DrawMaskedColorKernelNearestNeighbor(float *target, int targetWidth, int targetHeight, int inputX, int inputY, float *texture, int textureWidth, int textureHeight, int objectWidth, int objectHeight, float r, float g, float b ) // texture = mask { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int targetPixels = targetWidth * targetHeight; int texturePixels = textureWidth * textureHeight; int objectPixels = objectWidth * objectHeight; int idObjectRgb = id / objectPixels; int idObjectPixel = (id - idObjectRgb * objectPixels); // same as (id % objectPixels), but the kernel runs 10% faster int idObjectY = idObjectPixel / objectWidth; int idObjectX = (idObjectPixel - idObjectY * objectWidth); // same as (id % textureWidth), but the kernel runs another 10% faster if (idObjectRgb < 3) // 3 channels that we will write to { int targetRgb = idObjectRgb; // the texture is in BGR format, we want RGB switch (idObjectRgb) { case 0: // R targetRgb = 2; // B break; case 2: // B targetRgb = 0; // R break; } // if the object pixel offset by inputX, inputY, lies inside the target if (idObjectX + inputX < targetWidth && idObjectX + inputX >= 0 && idObjectY + inputY < targetHeight && idObjectY + inputY >= 0) { // nearest neighbor texture X,Y: int textureX = textureWidth * idObjectX / objectWidth; int textureY = textureHeight * idObjectY / objectHeight; int textureId = textureY * textureWidth + textureX; int tIndex = targetPixels * targetRgb + targetWidth * (idObjectY + inputY) + (idObjectX + inputX); int aIndex = textureId + 3 * texturePixels; // the A component of the texture float a = texture[aIndex]; if (a > 0) // mask allows color here { // apply this: target[tIndex] = target[tIndex] * (1.0f - a) + a * color; target[tIndex] = target[tIndex] * (1.0f - a); switch (idObjectRgb) { case 0: target[tIndex] += a*r; break; case 1: target[tIndex] += a*g; break; case 2: default: target[tIndex] += a*b; break; } } } } } /* Optimized version of DrawRgbaTextureKernel : avoids division operations (~30% speedup) The width of the texture is in blockDim.x The height of the texture is distributed between blockDim.y and gridDim.x */ __global__ void DrawRgbaTextureKernel2DBlock(float *target, int targetWidth, int targetHeight, int inputX, int inputY, float *texture, int textureWidth, int textureHeight) { int id = blockDim.x * blockDim.y * (blockIdx.y * gridDim.x + blockIdx.x) + blockDim.x * threadIdx.y + threadIdx.x; // 2D grid of 2D blocks; block dimension x = texture width; // grid dimension x + block dimension y = texture height int targetPixels = targetWidth * targetHeight; int texturePixels = textureWidth * textureHeight; int idTextureRgb = blockIdx.y; int idTexturePixel = (id - idTextureRgb * texturePixels); int idTextureY = blockIdx.x * blockDim.y + threadIdx.y; int idTextureX = threadIdx.x; if (idTextureRgb < 3) // 3 channels that we will write to { // the texture is in BGR format, we want RGB switch (idTextureRgb) { case 0: // R idTextureRgb = 2; // B break; case 2: // B idTextureRgb = 0; // R break; } // if the texture pixel offset by inputX, inputY, lies inside the target if (idTextureX + inputX < targetWidth && idTextureX + inputX >= 0 && idTextureY + inputY < targetHeight && idTextureY + inputY >= 0) { int tIndex = targetPixels * idTextureRgb + targetWidth * (idTextureY + inputY) + (idTextureX + inputX); int aIndex = idTexturePixel + 3 * texturePixels; // the A component of the texture float a = texture[aIndex]; target[tIndex] = target[tIndex] * (1.0f - a) + a * texture[id]; } } } /* Draws an RGB color into the masked area. The color is drawn in each pixel that has non-0 alpha. */ __global__ void DrawMaskedColorKernel(float *target, int targetWidth, int targetHeight, int inputX, int inputY, float *textureMask, int textureWidth, int textureHeight, float r, float g, float b) { int id = blockDim.x * blockIdx.y * gridDim.x + blockDim.x * blockIdx.x + threadIdx.x; int targetPixels = targetWidth * targetHeight; int texturePixels = textureWidth * textureHeight; int idTextureRgb = id / texturePixels; int idTexturePixel = (id - idTextureRgb * texturePixels); // same as (id % texturePixels), but the kernel runs 10% faster int idTextureY = idTexturePixel / textureWidth; int idTextureX = (idTexturePixel - idTextureY * textureWidth); // same as (id % textureWidth), but the kernel runs another 10% faster if (idTextureRgb < 3) // only RGB channels are interesting { // if the texture pixel offset by inputX, inputY, lies inside the target if (idTextureX + inputX < targetWidth && idTextureX + inputX >= 0 && idTextureY + inputY < targetHeight && idTextureY + inputY >= 0) { int tIndex = targetPixels * idTextureRgb + targetWidth * (idTextureY + inputY) + (idTextureX + inputX); int aIndex = idTexturePixel + 3 * texturePixels; // the A component of the texture float a = textureMask[aIndex]; if (a > 0) // mask allows color here { switch (idTextureRgb) { case 0: target[tIndex] = r; break; case 1: target[tIndex] = g; break; case 2: default: target[tIndex] = b; break; } } } } } /* Optimized version of DrawMaskedColorKernel : avoids division operations (~30% speedup) The width of the texture is in blockDim.x The height of the texture is distributed between blockDim.y and gridDim.x */ __global__ void DrawMaskedColorKernel2DBlock(float *target, int targetWidth, int targetHeight, int inputX, int inputY, float *textureMask, int textureWidth, int textureHeight, float r, float g, float b) { int id = blockDim.x * blockDim.y * (blockIdx.y * gridDim.x + blockIdx.x) + blockDim.x * threadIdx.y + threadIdx.x; // 2D grid of 2D blocks; block dimension x = texture width; // grid dimension x + block dimension y = texture height int targetPixels = targetWidth * targetHeight; int texturePixels = textureWidth * textureHeight; int idTextureRgb = blockIdx.y; int idTexturePixel = (id - idTextureRgb * texturePixels); int idTextureY = blockIdx.x * blockDim.y + threadIdx.y; int idTextureX = threadIdx.x; if (idTextureRgb < 3) // only RGB channels are interesting { // if the texture pixel offset by inputX, inputY, lies inside the target if (idTextureX + inputX < targetWidth && idTextureX + inputX >= 0 && idTextureY + inputY < targetHeight && idTextureY + inputY >= 0) { int tIndex = targetPixels * idTextureRgb + targetWidth * (idTextureY + inputY) + (idTextureX + inputX); int aIndex = idTexturePixel + 3 * texturePixels; // the A component of the texture float a = textureMask[aIndex]; if (a > 0) // mask allows color here { switch (idTextureRgb) { case 0: target[tIndex] = r; break; case 1: target[tIndex] = g; break; case 2: default: target[tIndex] = b; break; } } } } } /* Convert Raw to RGB */ __global__ void ExtractRawComponentsToRgbKernel(float *target, int inputWidth, int inputHeight) { int pixelId = blockDim.x*blockIdx.y*gridDim.x + blockDim.x*blockIdx.x + threadIdx.x; int imagePixels = inputWidth * inputHeight; if (pixelId >= imagePixels) return; unsigned int* uTarget = (unsigned int*)target; unsigned int pixel = uTarget[pixelId]; for (int i = 2; i >= 0; i--) { unsigned int component = pixel; component = component >> (8 * (2-i)); // 2-i == RGB -> BGR component = component & 0xFF; target[imagePixels * i + pixelId] = ((float)component)/255.0f; __syncthreads(); } } /* Convert Raw to RGB */ __global__ void RawToRgbKernel(float *source, float *target, int pixelCount) { int pixelId = blockDim.x*blockIdx.x + threadIdx.x; if (pixelId >= pixelCount) return; unsigned int pixel = AsUint(source, pixelId); for (int i = 0; i < 3; i++) // 3: don't care about alpha { target[pixelCount * i + pixelId] = GetComponent(pixel,2-i) / 255.0f; // /255.0f to re-scale from 0 to 1, // 2-i to convert between RGB and BGR } } /* Convert Raw to Raw grayscale http://stackoverflow.com/questions/687261/converting-rgb-to-grayscale-intensity */ __global__ void RawToRawGrayscaleKernel(float *source, float *target, int pixelCount) { int pixelId = blockDim.x*blockIdx.x + threadIdx.x; if (pixelId >= pixelCount) return; unsigned int pixel = AsUint(source, pixelId); unsigned int luminance = (unsigned int) (.2126f * GetComponent(pixel, 2) + .7152f * GetComponent(pixel, 1) + .0722f * GetComponent(pixel, 0)); unsigned int alpha = GetComponent(pixel, 3); *((unsigned int*)&target[pixelId]) = luminance | (luminance << 8) | (luminance << 16) | (alpha << 24); } /* Convert Raw to Grayscale http://stackoverflow.com/questions/687261/converting-rgb-to-grayscale-intensity */ __global__ void RawToGrayscaleKernel(float *source, float *target, int pixelCount) { int pixelId = blockDim.x*blockIdx.x + threadIdx.x; if (pixelId >= pixelCount) return; unsigned int pixel = AsUint(source, pixelId); float luminance = (.2126f * GetComponent(pixel, 2) + .7152f * GetComponent(pixel, 1) + .0722f * GetComponent(pixel, 0)); target[pixelId] = luminance / 255.0f; // to re-scale from 0 to 1 } }
7,059
#include "includes.h" __global__ void cudaSinv_kernel(unsigned int size, const float *x, float *y) { const unsigned int index = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int stride = blockDim.x * gridDim.x; for (unsigned int i = index; i < size; i += stride) { y[i] = 1.0f / x[i]; } }
7,060
#include "includes.h" __global__ void windowBlackman2d(float* idata, int length, int height) { int tidx = threadIdx.x + blockIdx.x*blockDim.x; int tidy = threadIdx.y + blockIdx.y*blockDim.y; if (tidx < length && tidy < height) { idata[tidy * length + tidx] = (0.74 / 2 * -0.5 * cos(2 * PI_F*tidy / (height - 1)) + 0.16 / 2 * sin(4 * PI_F*tidy / (height - 1))) * (0.74 / 2 * -0.5 * cos(2 * PI_F*tidx / (length - 1)) + 0.16 / 2 * sin(4 * PI_F*tidx / (length - 1))); } }
7,061
#include <stdio.h> #define CSC(call) { \ cudaError err = call; \ if(err != cudaSuccess) { \ fprintf(stderr, "CUDA error in file '%s' in line %i: %s.\n", \ __FILE__, __LINE__, cudaGetErrorString(err)); \ exit(1); \ } \ } while (0) __global__ void kernel(int *a, int *b, int *c, int n) { int idx = blockIdx.x * blockDim.x + threadIdx.x; int offset = gridDim.x * blockDim.x; for(; idx < n; idx += offset) c[idx] = a[idx] + b[idx]; } int main() { int i, n = 2000000; int *a = (int *)malloc(sizeof(int) * n); int *b = (int *)malloc(sizeof(int) * n); int *c = (int *)malloc(sizeof(int) * n); for(i = 0; i < n; i++) a[i] = b[i] = i; int *dev_a; int *dev_b; int *dev_c; cudaEvent_t start, stop; CSC(cudaEventCreate(&start)); CSC(cudaEventCreate(&stop)); CSC(cudaMalloc(&dev_a, sizeof(int) * n)); CSC(cudaMalloc(&dev_b, sizeof(int) * n)); CSC(cudaMalloc(&dev_c, sizeof(int) * n)); CSC(cudaMemcpy(dev_a, a, sizeof(int) * n, cudaMemcpyHostToDevice)); CSC(cudaMemcpy(dev_b, b, sizeof(int) * n, cudaMemcpyHostToDevice)); CSC(cudaEventRecord(start, 0)); //for(i = 0; i < n; i++) // c[i] = a[i] + b[i]; kernel<<<6, 256>>>(dev_a, dev_b, dev_c, n); CSC(cudaGetLastError()); CSC(cudaEventRecord(stop, 0)); CSC(cudaEventSynchronize(stop)); float t; CSC(cudaEventElapsedTime(&t, start, stop)); printf("time = %f\n", t); CSC(cudaEventDestroy(start)); CSC(cudaEventDestroy(stop)); CSC(cudaMemcpy(c, dev_c, sizeof(int) * n, cudaMemcpyDeviceToHost)); //for(i = 0; i < n; i++) // printf("%d ", c[i]); //printf("\n"); CSC(cudaFree(dev_a)); CSC(cudaFree(dev_b)); CSC(cudaFree(dev_c)); free(a); free(b); free(c); return 0; }
7,062
#include <stdio.h> //#include <cuda.h> #include <stdlib.h> #define N 64 #define R 3 // Kernel definition //__global__ void MatMul(int A[N][N], int B[N][N], int C[N][N]) //{ // //finish matrix multiplication, each thread calculate one element of C // int mi = threadIdx.x + blockIdx.x*blockDim.x; // int mj = threadIdx.y + blockIdx.y*blockDim.y; // C[mi][mj] = 0; // for(int i = 0; i < N; i++){ // C[mi][mj] += A[mi][i] * B[i][mj]; // } //} int main() { int a_h[N], b_h[N]; int (*a_d)[N], (*b_d)[N]; int size = N*N*sizeof(int); ////allocate the memory on the device //cudaMalloc((void*)&a_d, size); //cudaMalloc((void*)&b_d, size); //assign values to matrixes for(int i=0; i<N; i++) { a_h[i] = i; b_h[i] = 0; } //sequential implementation for(int i = 0; i < N; i++){ for(int j = -R; j < R+1; j++){ if(!(i+j < 0 || i+j >= N)){ b_h[i] += a_h[i+j]; } } } for(int i = 0; i < N; i++){ printf("%d\n", b_h[i]); } //copy matrixes to the device //cudaMemcpy(a_d, a_h, size, cudaMemcpyHostToDevice); //cudaMemcpy(b_d, b_h, size, cudaMemcpyHostToDevice); //cudaMemcpy(c_d, c_h, size, cudaMemcpyHostToDevice); //// launch kernel on the device by combining two-dimensional blocks with two-dimensional threads ////define numBlocks and threadsPerBlock //int nThreads = 4; //dim3 numBlocks(N/nThreads,N/nThreads); //dim3 numThreads(nThreads,nThreads); //MatMul<<<numBlocks, numThreads>>>(a_d, b_d, c_d); ////copy results from the device to the host //cudaMemcpy(c_h, c_d, size, cudaMemcpyDeviceToHost); ////print the results //for(int i=0;i<N;i++){ // for(int j=0;j<N;j++){ // printf("%d ", c_h[i][j]); // } // printf("\n"); //} ////free the memory //cudaFree(a_d); //cudaFree(b_d); //cudaFree(c_d); return 0; }
7,063
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #define HEIGHT 960 #define WIDTH 1280 #define MASK_WIDTH 53 #define MASK_RADIUS (MASK_WIDTH/2) #define BLOCK_SIZE 32 // gabor filter. __global__ void convolution_kernel(float * input, float * output, int height, int width, const float * __restrict__ Mask) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; float accum = 0.0; if (row < height && col < width) { for (int y = -MASK_RADIUS; y <= MASK_RADIUS;++y) { for (int x = -MASK_RADIUS; x <= MASK_RADIUS; ++x) { int xoffset = col + x; int yoffset = row + y; if (xoffset >= 0 && xoffset < WIDTH && yoffset >= 0 && yoffset < HEIGHT) accum += input[yoffset*WIDTH + xoffset]*Mask[(y+MASK_RADIUS)*MASK_WIDTH+x+MASK_RADIUS]; } } output[row*WIDTH + col] = accum; } } // »ñÈ¡½Ø¶ÏÏàλ²î __global__ void get_phase(float * ref, float * sce, const float * __restrict__ maskReal, const float * __restrict__ maskImage, float * phase) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; float ref_real = 0.0; float ref_image = 0.0; float sce_real = 0.0; float sce_image = 0.0; if (row < HEIGHT && col < WIDTH) { for (int y = -MASK_RADIUS; y <= MASK_RADIUS;++y) { for (int x = -MASK_RADIUS; x <= MASK_RADIUS; ++x) { int xoffset = col + x; int yoffset = row + y; if (xoffset >= 0 && xoffset < WIDTH && yoffset >= 0 && yoffset < HEIGHT) { ref_real += ref[yoffset*WIDTH + xoffset]*maskReal[(y+MASK_RADIUS)*MASK_WIDTH+x+MASK_RADIUS]; ref_image += ref[yoffset*WIDTH + xoffset]*maskImage[(y+MASK_RADIUS)*MASK_WIDTH+x+MASK_RADIUS]; sce_real += sce[yoffset*WIDTH + xoffset]*maskReal[(y+MASK_RADIUS)*MASK_WIDTH+x+MASK_RADIUS]; sce_image += sce[yoffset*WIDTH + xoffset]*maskImage[(y+MASK_RADIUS)*MASK_WIDTH+x+MASK_RADIUS]; } } } // sce - ref phase[row*WIDTH + col] = atan2(sce_image, sce_real) - atan2(ref_image, ref_real); } } // ´ÓÎļþÖе¼ÈëͼÏñÊý¾Ý void import_data(const char * inputFile, float * hostInput, int height, int width) { FILE *input = fopen(inputFile, "r"); for (int i = 0; i < height; ++i) { for (int j = 0; j < width; ++j) { fscanf(input, "%f ",&hostInput[i*width+j]); } } fclose(input); } int main() { float * hostRef; // ²Î¿¼Æ½Ãæ float * hostSce; // ³¡¾° float * hostPhase; // ½Ø¶ÏÏàλ float * hostMaskReal;// GaborºËʵ²¿ float * hostMaskImage;// GaborºËÐ鲿 float * deviceRef; float * deviceSce; float * devicePhase; float * deviceMaskReal; float * deviceMaskImage; float time_elapsed = 0; //¼Ç¼GPU¼ÆËãµÄʱ¼ä cudaError_t err = cudaSuccess; //GPU ״̬(¼Ç¼ÄÚ´æ·ÖÅäÊÇ·ñ³É¹¦µÈµÈ) cudaEvent_t start, stop; //@@ allocate memory on CPU hostRef = (float *)malloc(HEIGHT*WIDTH*sizeof(float)); hostSce = (float *)malloc(HEIGHT*WIDTH*sizeof(float)); hostPhase = (float *)malloc(HEIGHT*WIDTH*sizeof(float)); hostMaskReal = (float *)malloc(MASK_WIDTH*MASK_WIDTH*sizeof(float)); hostMaskImage = (float *)malloc(MASK_WIDTH*MASK_WIDTH*sizeof(float)); //@@ load image data and Gabor mask. import_data("ref.txt", hostRef, HEIGHT, WIDTH); import_data("sce.txt", hostSce, HEIGHT, WIDTH); import_data("gabor_kernel_re.txt", hostMaskReal, MASK_WIDTH, MASK_WIDTH); import_data("gabor_kernel_im.txt", hostMaskImage, MASK_WIDTH, MASK_WIDTH); //@@ allocate memory on gpu err = cudaMalloc((void **)&deviceRef, HEIGHT*WIDTH*sizeof(float)); if(err!=cudaSuccess) { perror("the cudaMalloc on GPU is failed"); return 1; } err = cudaMalloc((void **)&deviceSce, HEIGHT*WIDTH*sizeof(float)); if(err!=cudaSuccess) { perror("the cudaMalloc on GPU is failed"); return 1; } err = cudaMalloc((void **)&devicePhase, HEIGHT*WIDTH*sizeof(float)); if(err!=cudaSuccess) { perror("the cudaMalloc on GPU is failed"); return 1; } err = cudaMalloc((void **)&deviceMaskReal, MASK_WIDTH*MASK_WIDTH*sizeof(float)); if(err!=cudaSuccess) { perror("the cudaMalloc on GPU is failed"); return 1; } err = cudaMalloc((void **)&deviceMaskImage, MASK_WIDTH*MASK_WIDTH*sizeof(float)); if(err!=cudaSuccess) { perror("the cudaMalloc on GPU is failed"); return 1; } //@@ copy data to device cudaMemcpy(deviceRef, hostRef, HEIGHT*WIDTH*sizeof(float), cudaMemcpyHostToDevice); cudaMemcpy(deviceSce, hostSce, HEIGHT*WIDTH*sizeof(float), cudaMemcpyHostToDevice); cudaMemcpy(deviceMaskReal, hostMaskReal, MASK_WIDTH*MASK_WIDTH*sizeof(float), cudaMemcpyHostToDevice); cudaMemcpy(deviceMaskImage, hostMaskImage, MASK_WIDTH*MASK_WIDTH*sizeof(float), cudaMemcpyHostToDevice); cudaEventCreate(&start); //´´½¨Event cudaEventCreate(&stop); //@@ launch the kernel dim3 dimBlock(BLOCK_SIZE, BLOCK_SIZE, 1); dim3 dimGrid((WIDTH-1)/BLOCK_SIZE+1, (HEIGHT-1)/BLOCK_SIZE+1,1); cudaEventRecord(start, 0); /*convolution_kernel<<<dimGrid, dimBlock>>>(deviceInputImageData, deviceOutputImageData, HEIGHT, WIDTH, deviceMaskData);*/ get_phase<<<dimGrid, dimBlock>>>(deviceRef, deviceSce, deviceMaskReal, deviceMaskImage, devicePhase); cudaDeviceSynchronize(); cudaEventRecord(stop, 0); cudaEventSynchronize(start); //Waits for an event to complete. cudaEventSynchronize(stop); //Waits for an event to complete.Record֮ǰµÄÈÎÎñ cudaEventElapsedTime(&time_elapsed,start,stop); //¼ÆËãʱ¼ä²î printf("Ö´ÐÐʱ¼ä£º%f(ms)\n",time_elapsed); cudaMemcpy(hostPhase, devicePhase, HEIGHT*WIDTH*sizeof(float), cudaMemcpyDeviceToHost); FILE *outputImage = fopen("phase.txt", "w"); for (int i = 0; i < HEIGHT; ++i) { for (int j = 0; j < WIDTH; ++j) { fprintf(outputImage, j < WIDTH -1 ? "%f ":"%f\n", hostPhase[i*WIDTH + j]); } } fclose(outputImage); cudaEventDestroy(start); //destory the event cudaEventDestroy(stop); // free the memory on CPU and GPU. cudaFree(deviceRef); cudaFree(deviceSce); cudaFree(devicePhase); cudaFree(deviceMaskReal); cudaFree(deviceMaskImage); free(hostRef); free(hostSce); free(hostPhase); free(hostMaskReal); free(hostMaskImage); getchar(); return 0; }
7,064
#include <iostream> #include <math.h> #include <time.h> #include <stdlib.h> #include <random> #include <vector> #include <chrono> #define TILE_DIM 32 __global__ void convolve(const int *mat_1, const int *mat_2, int *mat_conv, const int n, const int m, const int p, const int q, const int stride, const int u, const int v) { int x = blockIdx.x * blockDim.x + threadIdx.x; int y = blockIdx.y * blockDim.y + threadIdx.y; int start_row = stride*y; int start_col = stride*x; if (y < u && x < v && start_row+p <= n && start_col+q <= m) { int sum = 0; for (int i = start_row; i < start_row+p; i++) { int i1 = i-start_row; for (int j = start_col; j < start_col+q; j++) { int j1 = j-start_col; sum += mat_1[i*m+j]*mat_2[i1*q+j1]; } } mat_conv[y*v+x] = sum; } } std::vector<std::vector<int>> random_matrix(const int num_rows, const int num_cols, const int min_val=0.0, const int max_val=1000.0) { std::vector<std::vector<int>> my_arr; static std::random_device rd; static std::mt19937 mte(rd()); std::uniform_int_distribution<int> dist(min_val, max_val); for (int i = 0; i < num_rows; i++) { std::vector<int> my_arr_col; for (int j = 0; j < num_cols; j++) { my_arr_col.push_back(dist(mte)); } my_arr.push_back(my_arr_col); } return my_arr; } bool check_correctness(const int *mat_1, const int *mat_2, int *mat_conv, const int n, const int m, const int p, const int q, const int stride, const int u, const int v) { for (int i = 0; i < u*v; i++) { int r = i/v; int c = i % v; int start_row = stride*r; int start_col = stride*c; if (start_row+p <= n && start_col+q <= m) { int sum = 0; for (int i1 = start_row; i1 < start_row+p; i1++) { int i2 = i1-start_row; for (int j1 = start_col; j1 < start_col+q; j1++) { int j2 = j1-start_col; sum += mat_1[i1*m+j1]*mat_2[i2*q+j2]; } } if (sum != mat_conv[i]) { return false; } } else { return false; } } return true; } int main(void) { int n = 5000; int m = 8000; int p = 7; int q = 11; int stride = 1; int u = (n-p)/stride + 1; int v = (m-q)/stride + 1; dim3 dimGrid((v + TILE_DIM - 1)/TILE_DIM, (u + TILE_DIM - 1)/TILE_DIM, 1); dim3 dimBlock(TILE_DIM, TILE_DIM, 1); int *mat_1, *mat_2, *mat_conv; cudaMallocManaged(&mat_1, n*m*sizeof(int)); cudaMallocManaged(&mat_2, p*q*sizeof(int)); cudaMallocManaged(&mat_conv, u*v*sizeof(int)); std::vector<std::vector<int>> my_arr_1 = random_matrix(n, m, 0, 10); std::vector<std::vector<int>> my_arr_2 = random_matrix(p, q, 0, 10); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { mat_1[i*m + j] = my_arr_1[i][j]; } } for (int i = 0; i < p; i++) { for (int j = 0; j < q; j++) { mat_2[i*q + j] = my_arr_2[i][j]; } } auto t1 = std::chrono::high_resolution_clock::now(); convolve<<<dimGrid, dimBlock>>>(mat_1, mat_2, mat_conv, n, m, p, q, stride, u, v); cudaDeviceSynchronize(); auto t2 = std::chrono::high_resolution_clock::now(); auto duration = std::chrono::duration_cast<std::chrono::milliseconds>( t2 - t1 ).count(); std::cout << duration << std::endl; std::cout << check_correctness(mat_1, mat_2, mat_conv, n, m, p, q, stride, u, v) << std::endl; return 0; }
7,065
/* * Overdamped Brownian particle in symmetric piecewise linear potential * * \dot{x} = -V'(x) + Gaussian, Poissonian and dichotomous noise * */ #include <stdio.h> #include <getopt.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <cuda.h> #include <curand.h> #include <curand_kernel.h> #define PI 3.14159265358979f //model __constant__ float d_Dg, d_Dp, d_lambda, d_mean, d_fa, d_fb, d_mua, d_mub; __constant__ int d_comp; float h_lambda, h_fa, h_fb, h_mua, h_mub, h_mean; int h_comp; //simulation float h_trans; int h_dev, h_block, h_grid, h_spp, h_samples; long h_paths, h_periods, h_threads, h_steps, h_trigger; __constant__ int d_spp, d_samples; __constant__ long d_paths; //output char *h_domain; char h_domainx; float h_beginx, h_endx; int h_logx, h_points, h_moments; __constant__ char d_domainx; __constant__ int d_points; //vector float *h_x, *h_xb, *h_fx, *h_dx; float *d_x, *d_fx, *d_dx; int *d_pcd, *d_dcd, *d_dst; unsigned int *h_seeds, *d_seeds; curandState *d_states; size_t size_f, size_i, size_ui, size_p; curandGenerator_t gen; static struct option options[] = { {"Dg", required_argument, NULL, 'a'}, {"Dp", required_argument, NULL, 'b'}, {"lambda", required_argument, NULL, 'c'}, {"fa", required_argument, NULL, 'd'}, {"fb", required_argument, NULL, 'e'}, {"mua", required_argument, NULL, 'f'}, {"mub", required_argument, NULL, 'g'}, {"comp", required_argument, NULL, 'h'}, {"mean", required_argument, NULL, 'i'}, {"dev", required_argument, NULL, 'j'}, {"block", required_argument, NULL, 'k'}, {"paths", required_argument, NULL, 'l'}, {"periods", required_argument, NULL, 'm'}, {"trans", required_argument, NULL, 'n'}, {"spp", required_argument, NULL, 'o'}, {"samples", required_argument, NULL, 'p'}, {"mode", required_argument, NULL, 'q'}, {"domain", required_argument, NULL, 'r'}, {"domainx", required_argument, NULL, 's'}, {"logx", required_argument, NULL, 't'}, {"points", required_argument, NULL, 'u'}, {"beginx", required_argument, NULL, 'v'}, {"endx", required_argument, NULL, 'w'} }; void usage(char **argv) { printf("Usage: %s <params> \n\n", argv[0]); printf("Model params:\n"); printf(" -a, --Dg=FLOAT set the Gaussian noise intensity 'D_G' to FLOAT\n"); printf(" -b, --Dp=FLOAT set the Poissonian noise intensity 'D_P' to FLOAT\n"); printf(" -c, --lambda=FLOAT set the Poissonian kicks frequency '\\lambda' to FLOAT\n"); printf(" -d, --fa=FLOAT set the first state of the dichotomous noise 'F_a' to FLOAT\n"); printf(" -e, --fb=FLOAT set the second state of the dichotomous noise 'F_b' to FLOAT\n"); printf(" -f, --mua=FLOAT set the transition rate of the first state of dichotomous noise '\\mu_a' to FLOAT\n"); printf(" -g, --mub=FLOAT set the transition rate of the second state of dichotomous noise '\\mu_b' to FLOAT\n"); printf(" -h, --comp=INT choose between biased and unbiased Poissonian or dichotomous noise. INT can be one of:\n"); printf(" 0: biased; 1: unbiased\n"); printf(" -i, --mean=FLOAT if is nonzero, fix the mean value of Poissonian noise or dichotomous noise to FLOAT, matters only for domains p, l, a, b, m or n\n"); printf("Simulation params:\n"); printf(" -j, --dev=INT set the gpu device to INT\n"); printf(" -k, --block=INT set the gpu block size to INT\n"); printf(" -l, --paths=LONG set the number of paths to LONG\n"); printf(" -m, --periods=LONG set the number of periods to LONG\n"); printf(" -n, --trans=FLOAT specify fraction FLOAT of periods which stands for transients\n"); printf(" -o, --spp=INT specify how many integration steps should be calculated for the smallest characteristic time scale\n"); printf(" -p, --samples=INT specify how many integration steps should be calculated for a single kernel call\n"); printf("Output params:\n"); printf(" -q, --mode=STRING sets the output mode. STRING can be one of:\n"); printf(" moments: the first moment <<v>>\n"); printf(" -r, --domain=STRING simultaneously scan over one or two model params. STRING can be one of:\n"); printf(" 1d: only one parameter\n"); printf(" -s, --domainx=CHAR sets the first domain of the moments. CHAR can be one of:\n"); printf(" D: Dg; p: Dp; l: lambda; a: fa; b: fb; m: mua; n: mub\n"); printf(" -t, --logx=INT choose between linear and logarithmic scale of the domainx\n"); printf(" 0: linear; 1: logarithmic\n"); printf(" -u, --points=INT set the number of samples to generate between begin and end\n"); printf(" -v, --beginx=FLOAT set the starting value of the domainx to FLOAT\n"); printf(" -w, --endx=FLOAT set the end value of the domainx to FLOAT\n"); printf("\n"); } void parse_cla(int argc, char **argv) { float ftmp; int c, itmp; while( (c = getopt_long(argc, argv, "a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w", options, NULL)) != EOF) { switch (c) { case 'a': ftmp = atof(optarg); cudaMemcpyToSymbol(d_Dg, &ftmp, sizeof(float)); break; case 'b': ftmp = atof(optarg); cudaMemcpyToSymbol(d_Dp, &ftmp, sizeof(float)); break; case 'c': h_lambda = atof(optarg); cudaMemcpyToSymbol(d_lambda, &h_lambda, sizeof(float)); break; case 'd': h_fa = atof(optarg); cudaMemcpyToSymbol(d_fa, &h_fa, sizeof(float)); break; case 'e': h_fb = atof(optarg); cudaMemcpyToSymbol(d_fb, &h_fb, sizeof(float)); break; case 'f': h_mua = atof(optarg); cudaMemcpyToSymbol(d_mua, &h_mua, sizeof(float)); break; case 'g': h_mub = atof(optarg); cudaMemcpyToSymbol(d_mub, &h_mub, sizeof(float)); break; case 'h': h_comp = atoi(optarg); cudaMemcpyToSymbol(d_comp, &h_comp, sizeof(int)); break; case 'i': h_mean = atof(optarg); cudaMemcpyToSymbol(d_mean, &h_mean, sizeof(float)); break; case 'j': itmp = atoi(optarg); cudaSetDevice(itmp); break; case 'k': h_block = atoi(optarg); break; case 'l': h_paths = atol(optarg); cudaMemcpyToSymbol(d_paths, &h_paths, sizeof(long)); break; case 'm': h_periods = atol(optarg); break; case 'n': h_trans = atof(optarg); break; case 'o': h_spp = atoi(optarg); cudaMemcpyToSymbol(d_spp, &h_spp, sizeof(int)); break; case 'p': h_samples = atoi(optarg); cudaMemcpyToSymbol(d_samples, &h_samples, sizeof(int)); break; case 'q': if ( !strcmp(optarg, "moments") ) { h_moments = 1; } break; case 'r': h_domain = optarg; break; case 's': h_domainx = optarg[0]; cudaMemcpyToSymbol(d_domainx, &h_domainx, sizeof(char)); break; case 't': h_logx = atoi(optarg); break; case 'u': h_points = atoi(optarg); cudaMemcpyToSymbol(d_points, &h_points, sizeof(int)); break; case 'v': h_beginx = atof(optarg); break; case 'w': h_endx = atof(optarg); break; } } } __global__ void init_dev_rng(unsigned int *d_seeds, curandState *d_states) { long idx = blockIdx.x * blockDim.x + threadIdx.x; curand_init(d_seeds[idx], 0, 0, &d_states[idx]); } __device__ float drift(float l_x) { if (-sinf(PI*l_x) < 0.0f) { return -1.0f; } else { return 1.0f; } } __device__ float diffusion(float l_Dg, float l_dt, curandState *l_state) { if (l_Dg != 0.0f) { float r = curand_uniform(l_state); float g = sqrtf(2.0f*l_Dg); if ( r <= 1.0f/6.0f ) { return -g*sqrtf(3.0f*l_dt); } else if ( r > 1.0f/6.0f && r <= 1.0f/3.0f ) { return g*sqrtf(3.0f*l_dt); } else { return 0.0f; } } else { return 0.0f; } } __global__ void init_noise(float *d_dx, int *d_pcd, int *d_dcd, int *d_dst, curandState *d_states) //init noise { long idx = blockIdx.x * blockDim.x + threadIdx.x; float l_dx; curandState l_state; //cache model parameters in local variables l_state = d_states[idx]; float l_Dp, l_lambda, l_mean, l_fa, l_fb, l_mua, l_mub; int l_comp; l_Dp = d_Dp; l_lambda = d_lambda; l_comp = d_comp; l_mean = d_mean; l_fa = d_fa; l_fb = d_fb; l_mua = d_mua; l_mub = d_mub; long ridx = (idx/d_paths) % d_points; l_dx = d_dx[ridx]; switch(d_domainx) { case 'p': l_Dp = l_dx; if (l_mean != 0.0f) l_lambda = (l_mean*l_mean)/l_Dp; break; case 'l': l_lambda = l_dx; if (l_mean != 0.0f) l_Dp = (l_mean*l_mean)/l_lambda; break; case 'a': l_fa = l_dx; if (l_comp == 1) { l_fb = -l_fa*l_mub/l_mua; } else if (l_mean != 0.0f) { l_fb = (l_mean*(l_mua + l_mub) - l_fa*l_mub)/l_mua; } break; case 'b': l_fb = l_dx; if (l_comp == 1) { l_fa = -l_fb*l_mua/l_mub; } else if (l_mean != 0.0f) { l_fa = (l_mean*(l_mua + l_mub) - l_fb*l_mua)/l_mub; } break; case 'm': l_mua = l_dx; if (l_comp == 1) { l_mub = -l_fb*l_mua/l_fa; } else if (l_mean != 0.0f) { l_mub = (l_fb - l_mean)*l_mua/(l_mean - l_fa); } break; case 'n': l_mub = l_dx; if (l_comp == 1) { l_mua = -l_fa*l_mub/l_fb; } else if (l_mean != 0.0f) { l_mua = (l_fa - l_mean)*l_mub/(l_mean - l_fb); } break; } //step size float l_dt; int l_spp; l_spp = d_spp; if (l_lambda != 0.0f) { l_dt = 1.0f/l_lambda/l_spp; } if (l_mua != 0.0f) { float taua, taub; taua = 1.0f/l_mua; taub = 1.0f/l_mub; if (taua < taub) { l_dt = taua/l_spp; } else { l_dt = taub/l_spp; } } //jump countdowns int l_pcd, l_dcd, l_dst; if (l_lambda != 0.0f) l_pcd = (int) floorf( -logf( curand_uniform(&l_state) )/l_lambda/l_dt + 0.5f ); if (l_mua != 0.0f) { float rn; rn = curand_uniform(&l_state); if (rn < 0.5f) { l_dst = 0; l_dcd = (int) floorf( -logf( curand_uniform(&l_state) )/l_mua/l_dt + 0.5f); } else { l_dst = 1; l_dcd = (int) floorf( -logf( curand_uniform(&l_state) )/l_mub/l_dt + 0.5f); } } //write back noise states to the global memory d_pcd[idx] = l_pcd; d_dcd[idx] = l_dcd; d_dst[idx] = l_dst; d_states[idx] = l_state; } __device__ float adapted_jump_poisson(int &npcd, int pcd, float l_lambda, float l_Dp, int l_comp, float l_dt, curandState *l_state) { if (l_lambda != 0.0f) { if (pcd <= 0) { float ampmean = sqrtf(l_lambda/l_Dp); npcd = (int) floorf( -logf( curand_uniform(l_state) )/l_lambda/l_dt + 0.5f ); if (l_comp) { float comp = sqrtf(l_Dp*l_lambda)*l_dt; return -logf( curand_uniform(l_state) )/ampmean - comp; } else { return -logf( curand_uniform(l_state) )/ampmean; } } else { npcd = pcd - 1; if (l_comp) { float comp = sqrtf(l_Dp*l_lambda)*l_dt; return -comp; } else { return 0.0f; } } } else { return 0.0f; } } __device__ float adapted_jump_dich(int &ndcd, int dcd, int &ndst, int dst, float l_fa, float l_fb, float l_mua, float l_mub, float l_dt, curandState *l_state) { if (l_mua != 0.0f) { if (dcd <= 0) { if (dst == 0) { ndst = 1; ndcd = (int) floorf( -logf( curand_uniform(l_state) )/l_mub/l_dt + 0.5f ); return l_fb*l_dt; } else { ndst = 0; ndcd = (int) floorf( -logf( curand_uniform(l_state) )/l_mua/l_dt + 0.5f ); return l_fa*l_dt; } } else { ndcd = dcd - 1; if (dst == 0) { return l_fa*l_dt; } else { return l_fb*l_dt; } } } else { return 0.0f; } } __device__ void predcorr(float &corrl_x, float l_x, int &npcd, int pcd, curandState *l_state, \ float l_Dg, float l_Dp, float l_lambda, int l_comp, \ int &ndcd, int dcd, int &ndst, int dst, float l_fa, float l_fb, float l_mua, float l_mub, float l_dt) /* simplified weak order 2.0 adapted predictor-corrector scheme ( see E. Platen, N. Bruti-Liberati; Numerical Solution of Stochastic Differential Equations with Jumps in Finance; Springer 2010; p. 503, p. 532 ) */ { float l_xt, l_xtt, predl_x; l_xt = drift(l_x); predl_x = l_x + l_xt*l_dt + diffusion(l_Dg, l_dt, l_state); l_xtt = drift(predl_x); predl_x = l_x + 0.5f*(l_xt + l_xtt)*l_dt + diffusion(l_Dg, l_dt, l_state); l_xtt = drift(predl_x); corrl_x = l_x + 0.5f*(l_xt + l_xtt)*l_dt + adapted_jump_dich(ndcd, dcd, ndst, dst, l_fa, l_fb, l_mua, l_mub, l_dt, l_state) + diffusion(l_Dg, l_dt, l_state) + adapted_jump_poisson(npcd, pcd, l_lambda, l_Dp, l_comp, l_dt, l_state); } __global__ void fold(float *d_x, float *d_fx) { long idx = blockIdx.x * blockDim.x + threadIdx.x; float l_x, l_fx, f; l_x = d_x[idx]; l_fx = d_fx[idx]; f = floorf(l_x/2.0f)*2.0f; l_x = l_x - f; l_fx = l_fx + f; d_x[idx] = l_x; d_fx[idx] = l_fx; } void unfold(float *x, float *fx) { int i; for (i = 0; i < h_threads; i++) { x[i] = x[i] + fx[i]; } } __global__ void run_moments(float *d_x, float *d_dx, int *d_pcd, int *d_dcd, int *d_dst, curandState *d_states) //actual moments kernel { long idx = blockIdx.x * blockDim.x + threadIdx.x; float l_x, l_dx; curandState l_state; //cache path and model parameters in local variables l_x = d_x[idx]; l_state = d_states[idx]; float l_Dg, l_Dp, l_lambda, l_mean, l_fa, l_fb, l_mua, l_mub; int l_comp; l_Dg = d_Dg; l_Dp = d_Dp; l_lambda = d_lambda; l_comp = d_comp; l_mean = d_mean; l_fa = d_fa; l_fb = d_fb; l_mua = d_mua; l_mub = d_mub; //run simulation for multiple values of the system parameters long ridx = (idx/d_paths) % d_points; l_dx = d_dx[ridx]; switch(d_domainx) { case 'D': l_Dg = l_dx; break; case 'p': l_Dp = l_dx; if (l_mean != 0.0f) l_lambda = (l_mean*l_mean)/l_Dp; break; case 'l': l_lambda = l_dx; if (l_mean != 0.0f) l_Dp = (l_mean*l_mean)/l_lambda; break; case 'a': l_fa = l_dx; if (l_comp == 1) { l_fb = -l_fa*l_mub/l_mua; } else if (l_mean != 0.0f) { l_fb = (l_mean*(l_mua + l_mub) - l_fa*l_mub)/l_mua; } break; case 'b': l_fb = l_dx; if (l_comp == 1) { l_fa = -l_fb*l_mua/l_mub; } else if (l_mean != 0.0f) { l_fa = (l_mean*(l_mua + l_mub) - l_fb*l_mua)/l_mub; } break; case 'm': l_mua = l_dx; if (l_comp == 1) { l_mub = -l_fb*l_mua/l_fa; } else if (l_mean != 0.0f) { l_mub = (l_fb - l_mean)*l_mua/(l_mean - l_fa); } break; case 'n': l_mub = l_dx; if (l_comp == 1) { l_mua = -l_fa*l_mub/l_fb; } else if (l_mean != 0.0f) { l_mua = (l_fa - l_mean)*l_mub/(l_mean - l_fb); } break; } //step size & number of steps float l_dt; int i, l_spp, l_samples; l_spp = d_spp; if (l_lambda != 0.0f) { l_dt = 1.0f/l_lambda/l_spp; } if (l_mua != 0.0f) { float taua, taub; taua = 1.0f/l_mua; taub = 1.0f/l_mub; if (taua < taub) { l_dt = taua/l_spp; } else { l_dt = taub/l_spp; } } l_samples = d_samples; //jump countdowns int l_pcd, l_dcd, l_dst; l_pcd = d_pcd[idx]; l_dcd = d_dcd[idx]; l_dst = d_dst[idx]; for (i = 0; i < l_samples; i++) { predcorr(l_x, l_x, l_pcd, l_pcd, &l_state, l_Dg, l_Dp, l_lambda, l_comp, \ l_dcd, l_dcd, l_dst, l_dst, l_fa, l_fb, l_mua, l_mub, l_dt); } //write back path parameters to the global memory d_x[idx] = l_x; d_pcd[idx] = l_pcd; d_dcd[idx] = l_dcd; d_dst[idx] = l_dst; d_states[idx] = l_state; } void prepare() //prepare simulation { //grid size h_paths = (h_paths/h_block)*h_block; h_threads = h_paths; if (h_moments) h_threads *= h_points; h_grid = h_threads/h_block; //number of steps if (h_moments) h_steps = h_periods*h_spp; //host memory allocation size_f = h_threads*sizeof(float); size_i = h_threads*sizeof(int); size_ui = h_threads*sizeof(unsigned int); size_p = h_points*sizeof(float); h_x = (float*)malloc(size_f); h_fx = (float*)malloc(size_f); h_seeds = (unsigned int*)malloc(size_ui); //create & initialize host rng curandCreateGeneratorHost(&gen, CURAND_RNG_PSEUDO_DEFAULT); curandSetPseudoRandomGeneratorSeed(gen, time(NULL)); curandGenerate(gen, h_seeds, h_threads); //device memory allocation cudaMalloc((void**)&d_x, size_f); cudaMalloc((void**)&d_fx, size_f); cudaMalloc((void**)&d_seeds, size_ui); cudaMalloc((void**)&d_pcd, size_i); cudaMalloc((void**)&d_dcd, size_i); cudaMalloc((void**)&d_dst, size_i); cudaMalloc((void**)&d_states, h_threads*sizeof(curandState)); //copy seeds from host to device cudaMemcpy(d_seeds, h_seeds, size_ui, cudaMemcpyHostToDevice); //initialization of device rng init_dev_rng<<<h_grid, h_block>>>(d_seeds, d_states); free(h_seeds); cudaFree(d_seeds); //moments specific requirements if (h_moments) { h_trigger = h_steps*h_trans; h_xb = (float*)malloc(size_f); h_dx = (float*)malloc(size_p); float dxtmp = h_beginx; float dxstep = (h_endx - h_beginx)/h_points; int i; //set domainx for (i = 0; i < h_points; i++) { if (h_logx) { h_dx[i] = exp10f(dxtmp); } else { h_dx[i] = dxtmp; } dxtmp += dxstep; } cudaMalloc((void**)&d_dx, size_p); cudaMemcpy(d_dx, h_dx, size_p, cudaMemcpyHostToDevice); } } void copy_to_dev() { cudaMemcpy(d_x, h_x, size_f, cudaMemcpyHostToDevice); cudaMemcpy(d_fx, h_fx, size_f, cudaMemcpyHostToDevice); } void copy_from_dev() { cudaMemcpy(h_x, d_x, size_f, cudaMemcpyDeviceToHost); cudaMemcpy(h_fx, d_fx, size_f, cudaMemcpyDeviceToHost); } void initial_conditions() //set initial conditions for path parameters { int i; curandGenerateUniform(gen, h_x, h_threads); //x in (0,1] for (i = 0; i < h_threads; i++) { h_x[i] = 2.0f*h_x[i] - 1.0f; //x in (-1,1] } memset(h_fx, 0.0f, size_f); copy_to_dev(); } void moments(float *av) //calculate the first moment of v { float sx, sxb, tmp, taua, taub, dt; int i, j; copy_from_dev(); unfold(h_x, h_fx); for (j = 0; j < h_points; j++) { sx = 0.0f; sxb = 0.0f; for (i = 0; i < h_paths; i++) { sx += h_x[j*h_paths + i]; sxb += h_xb[j*h_paths + i]; } //Poissonian if (h_domainx == 'l') { dt = 1.0f/h_dx[j]/h_spp; } else if (h_domainx == 'p' && h_mean != 0.0f) { dt = 1.0f/(h_mean*h_mean/h_dx[j])/h_spp; } else if (h_lambda != 0.0f) { dt = 1.0f/h_lambda/h_spp; } //Dichotomous if (h_domainx == 'm') { taua = 1.0f/h_dx[j]; taub = 1.0f/h_mub; if (h_comp) { tmp = 1.0f/(-h_fb*h_dx[j]/h_fa); } else if (h_mean != 0.0f) { tmp = 1.0f/((h_fb - h_mean)*h_dx[j]/(h_mean - h_fa)); } else { tmp = taub; } if (taua <= tmp) { dt = taua/h_spp; } else { dt = tmp/h_spp; } } else if (h_domainx == 'n') { taua = 1.0f/h_mua; taub = 1.0f/h_dx[j]; if (h_comp) { tmp = 1.0f/(-h_fa*h_dx[j]/h_fb); } else if (h_mean != 0.0f) { tmp = 1.0f/((h_fa - h_mean)*h_dx[j]/(h_mean - h_fb)); } else { tmp = taua; } if (taub <= tmp) { dt = taub/h_spp; } else { dt = tmp/h_spp; } } else if (h_mua != 0.0f || h_mub != 0.0f) { taua = 1.0f/h_mua; taub = 1.0f/h_mub; if (taua < taub) { dt = taua/h_spp; } else { dt = taub/h_spp; } } av[j] = (sx - sxb)/( (1.0f - h_trans)*h_steps*dt )/h_paths; } } void finish() //free memory { free(h_x); free(h_fx); curandDestroyGenerator(gen); cudaFree(d_x); cudaFree(d_fx); cudaFree(d_pcd); cudaFree(d_dcd); cudaFree(d_dst); cudaFree(d_states); if (h_moments) { free(h_xb); free(h_dx); cudaFree(d_dx); } } int main(int argc, char **argv) { parse_cla(argc, argv); if (!h_moments) { usage(argv); return -1; } prepare(); initial_conditions(); //asymptotic long time average velocity <<v>> if (h_moments) { float *av; int i; av = (float*)malloc(size_p); if ( !strcmp(h_domain, "1d") ) { init_noise<<<h_grid, h_block>>>(d_dx, d_pcd, d_dcd, d_dst, d_states); for (i = 0; i < h_steps; i += h_samples) { run_moments<<<h_grid, h_block>>>(d_x, d_dx, d_pcd, d_dcd, d_dst, d_states); fold<<<h_grid, h_block>>>(d_x, d_fx); if (i == h_trigger) { cudaMemcpy(h_xb, d_x, size_f, cudaMemcpyDeviceToHost); cudaMemcpy(h_fx, d_fx, size_f, cudaMemcpyDeviceToHost); unfold(h_xb, h_fx); } } moments(av); printf("#%c <<v>>\n", h_domainx); for (i = 0; i < h_points; i++) { printf("%e %e\n", h_dx[i], av[i]); } } free(av); } finish(); return 0; }
7,066
#pragma once #include <algorithm> #include <cmath> #include "Vector3.cuh.cu" #include "Ray.cuh.cu" #include <iostream> namespace RayTracing { class aabb { private: Point3 m_min, m_max; public: aabb() {} aabb(const Point3& min, const Point3& max) : m_min(min), m_max(max) {} Point3 min() const { return m_min; } Point3 max() const { return m_max; } __host__ __device__ bool Hit(const Ray& r, double t_min, double t_max) const { for (int a = 0; a < 3; a++) { auto t0 = fminf((m_min[a] - r.origin[a]) / r.direction[a], (m_max[a] - r.origin[a]) / r.direction[a]); auto t1 = fmaxf((m_min[a] - r.origin[a]) / r.direction[a], (m_max[a] - r.origin[a]) / r.direction[a]); t_min = fmaxf(t0, t_min); t_max = fminf(t1, t_max); if (t_max < t_min) return false; } return true; } static aabb SurroundingBox(const aabb &a, const aabb &b) { return aabb{ Point3{ std::min(a.m_min.d.x, b.m_min.d.x), std::min(a.m_min.d.y, b.m_min.d.y), std::min(a.m_min.d.z, b.m_min.d.z), }, Point3{ std::max(a.m_max.d.x, b.m_max.d.x), std::max(a.m_max.d.y, b.m_max.d.y), std::max(a.m_max.d.z, b.m_max.d.z), } }; } static bool Compare(const aabb& left, const aabb& right, int axis) { return left.m_min[axis] < right.m_min[axis]; } }; } // RayTracing
7,067
#include "includes.h" __global__ void gpu_rBRIEF_Loop(int N, float4* patches, int4* pattern) { // // 1) Shared memory management // extern __shared__ float4 shared[]; // int4* sharedPattern = (int4*) shared; // float4* sharedPatches0 = (float4*) &shared[256]; // float4* sharedPatches1 = (float4*) &shared[N*blockDim.x*24 + 256]; // float4* thisPatches; // float4* nextPatches; // float4* tmp; // // // 2) Load pattern into shared memory (static part of kernel) // int id = threadIdx.x; // int stride = blockDim.x; // for (int i = id; i < 256; i+= stride) { // sharedPattern[i] = pattern[i]; // } // // // 3) Preload patches 0 into shared memory // int start = blockIdx.x * (N*24) + id; // int end = blockIdx.x * (N*24) + N*24; // for (int i = start; i < end; i+=stride) { // sharedPatches0[i] = patches[i]; // } // thisPatches = sharedPatches0; // Kernel Loop begin: //for (int i = blockIdx.x; i < (P - 1) * N * blockDim.x*24; i+= ) };
7,068
#include "math.h" #include "float.h" __device__ void normalize_vector(float *a, float *b, float *c) { float len; float ta, tb, tc; ta = *a; tb = *b; tc = *c; len = ta*ta + tb*tb + tc*tc; if(len == 0.0) return; len = sqrt(len); *a = ta/len; *b = tb/len; *c = tc/len; } __device__ void intersectGPU(float *ray_array, float *scene, float *output, int *hit_obj_index, int scene_size) { /* input: ray_array, scene, scene_size output: [hit_point v3, hit_normal v3] */ int i; int scene_index; int flag; int current_obj_i = -1; float l1, l2, l3; float t_ca; float d_squared; float radius_squared; float t_hc; float t; float hit_point1; float hit_point2; float hit_point3; float hit_normal1; float hit_normal2; float hit_normal3; float current_t = FLT_MAX; for(i = 0; i < scene_size; i++){ flag = 0; scene_index = i*16; if (scene[scene_index] < 0.5){ /* means sphere */ /* calculate intersect */ l1 = scene[scene_index+1] - ray_array[0]; l2 = scene[scene_index+2] - ray_array[1]; l3 = scene[scene_index+3] - ray_array[2]; t_ca = l1*ray_array[3] + l2*ray_array[4] + l3*ray_array[5]; if(t_ca < 0) flag = 1; d_squared = l1*l1 + l2*l2 +l3*l3 - t_ca*t_ca; radius_squared = scene[scene_index+4]*scene[scene_index+4]; if(d_squared > radius_squared) flag = 1; t_hc = sqrt(radius_squared - d_squared); t = t_ca - t_hc; if(t < 0) t = t_ca + t_hc; hit_point1 = ray_array[0] + t * ray_array[3]; hit_point2 = ray_array[1] + t * ray_array[4]; hit_point3 = ray_array[2] + t * ray_array[5]; hit_normal1 = hit_point1 - scene[scene_index+1]; hit_normal2 = hit_point2 - scene[scene_index+2]; hit_normal3 = hit_point3 - scene[scene_index+3]; normalize_vector(&hit_normal1, &hit_normal2, &hit_normal3); } if(flag == 0){ if(t < current_t){ current_t = t; current_obj_i = i; output[0] = hit_point1; output[1] = hit_point2; output[2] = hit_point3; output[3] = hit_normal1; output[4] = hit_normal2; output[5] = hit_normal3; } } } *hit_obj_index = current_obj_i; } __device__ void trace_non_diffuseGPU (float *ray, int hit_obj_index, float *hit_point, float *hit_normal, float *scene, int scene_size, int depth, int max_depth, float *output); __device__ void trace_diffuseGPU(int obj_index, float *hit_point, float *hit_normal, float *scene, int scene_size, float *output); __device__ void trace_recursivelyGPU(float *ray, float *scene, int scene_size, float *output, int depth, int max_depth){ /* hit_object, hit_point, hit_normal = self.__intersect(ray) if hit_object is None: return Vector3(0.3, 0.3, 0.3) # horizon traced_color = Vector3() if not hit_object.material.is_diffuse and depth < self.__max_recursion_depth: traced_color = self.__trace_non_diffuse(ray, hit_object, hit_point, hit_normal, depth) else: traced_color = self.__trace_diffuse(hit_object, hit_point, hit_normal) return traced_color + hit_object.material.emission_color */ int hit_obj_index; float output_intersect[6]; intersectGPU(ray, scene, output_intersect, &hit_obj_index, scene_size); if (hit_obj_index < 0) { output[0] = 0.3; output[1] = 0.3; output[2] = 0.3; return; } float traced_color[3]; if (depth < max_depth && scene[16*hit_obj_index+14] < 0.5) /* trace_non_diffuseGPU (ray, hit_obj_index, output_intersect, output_intersect + 3, scene, scene_size, depth, max_depth, traced_color);*/ trace_diffuseGPU (hit_obj_index, output_intersect, output_intersect + 3, scene, scene_size, traced_color); else trace_diffuseGPU (hit_obj_index, output_intersect, output_intersect + 3, scene, scene_size, traced_color); traced_color[0] += scene[16*hit_obj_index + 8]; traced_color[1] += scene[16*hit_obj_index + 9]; traced_color[2] += scene[16*hit_obj_index + 10]; output[0] = traced_color[0]; output[1] = traced_color[1]; output[2] = traced_color[2]; } __device__ void trace_diffuseGPU(int obj_index, float *hit_point, float *hit_normal, float *scene, int scene_size, float *output){ /* summed_color = Vector3() for light in filter(lambda obj: obj.is_light, self.__scene): transmission = Vector3(1, 1, 1) light_direction = (light.primitive.position - hit_point).normalize() for other in filter(lambda obj: obj != light, self.__scene): if other.primitive.intersect(Ray(hit_point + self.__bias * hit_normal, light_direction)): transmission = Vector3() break summed_color = summed_color + ( hit_object.material.surface_color .mul_comp(transmission) .mul_comp(light.material.emission_color) * max(0, hit_normal.dot(light_direction))) return summed_color */ int i; float summed_color[3] = {0, 0, 0}; float transmission[3] = {1, 1, 1}; int hit_obj_index; float output_intersect[6]; float current_ray[7]; float temp; for(i = 0; i < scene_size; i++){ if(scene[i*16 + 15] > 0.5){ /* is light */ current_ray[0] = hit_point[0] + 0.0001*hit_normal[0]; current_ray[1] = hit_point[1] + 0.0001*hit_normal[1]; current_ray[2] = hit_point[2] + 0.0001*hit_normal[2]; current_ray[3] = scene[i*16 + 1] - hit_point[0]; current_ray[4] = scene[i*16 + 2] - hit_point[1]; current_ray[5] = scene[i*16 + 3] - hit_point[2]; current_ray[6] = 1.0; normalize_vector(current_ray+3, current_ray+4, current_ray+5); for(i = 0; i < scene_size; i++){ if(scene[i*16 + 15] < 0.5) intersectGPU(current_ray, scene+i, output_intersect, &hit_obj_index, 1); if(hit_obj_index < 0){ transmission[0] = 0; transmission[1] = 0; transmission[2] = 0; break; } } temp = hit_normal[0]*current_ray[3] + hit_normal[1]*current_ray[4] + hit_normal[2]*current_ray[5]; temp = 0 > temp ? 0 : temp; summed_color[0] += scene[obj_index*16 + 5] * transmission[0] * scene[i*16 + 8] * temp; summed_color[1] += scene[obj_index*16 + 6] * transmission[1] * scene[i*16 + 9] * temp; summed_color[2] += scene[obj_index*16 + 7] * transmission[2] * scene[i*16 + 10] * temp; } } output[0] = summed_color[0]; output[1] = summed_color[1]; output[2] = summed_color[2]; } __device__ void trace_non_diffuseGPU (float *ray, int hit_obj_index, float *hit_point, float *hit_normal, float *scene, int scene_size, int depth, int max_depth, float *output) { /* inside = ray.direction.dot(hit_normal) > 0 if inside: hit_normal = -hit_normal facing_ratio = -ray.direction.dot(hit_normal) fresnel = self.__mix((1 - facing_ratio) ** 2, 1, 0.1) reflection_ray = Ray(hit_point + self.__bias * hit_normal, ray.direction.reflect(hit_normal).normalize()) reflection = self.__trace_recursively(reflection_ray, depth + 1) refraction = Vector3() # transparent? if hit_object.material.transparency > 0: from_ior = ray.current_ior if inside else hit_object.material.ior to_ior = hit_object.material.ior if inside else ray.current_ior refraction_ray = Ray(hit_point - self.__bias * hit_normal, ray.direction.refract(from_ior, to_ior, hit_normal) .normalize()) refraction = self.__trace_recursively(refraction_ray, depth + 1) # mix according to fresnel return ((reflection * fresnel + refraction * (1 - fresnel) * hit_object.material.transparency) .mul_comp(hit_object.material.surface_color)) */ if (ray[3]*hit_normal[0] + ray[4]*hit_normal[1] + ray[5]*hit_normal[2] > 0){ hit_normal[0] *= -1; hit_normal[1] *= -1; hit_normal[2] *= -1; } float facing_ratio = - (ray[3]*hit_normal[0] + ray[4]*hit_normal[1] + ray[5]*hit_normal[2]); float fresnel = (1 - facing_ratio) * (1 - facing_ratio) * 0.9 + 0.1; float reflection_ray[7]; reflection_ray[0] = hit_point[0] - 0.0001*hit_normal[0]; reflection_ray[1] = hit_point[1] - 0.0001*hit_normal[1]; reflection_ray[2] = hit_point[2] - 0.0001*hit_normal[2]; float temp; temp = ray[0]*hit_normal[0] + ray[1]*hit_normal[1] + ray[2]*hit_normal[2]; temp *= 2; reflection_ray[3] = ray[0] - temp * hit_normal[0]; reflection_ray[4] = ray[1] - temp * hit_normal[1]; reflection_ray[5] = ray[2] - temp * hit_normal[2]; normalize_vector(reflection_ray+3, reflection_ray+4, reflection_ray+5); reflection_ray[6] = 1.0; float reflection[3]; float refraction[3] = {0, 0, 0}; trace_recursivelyGPU(reflection_ray, scene, scene_size, reflection, depth+1, max_depth); /* def refract(self, from_ior, to_ior, normal): # Refracts the vector with regard to material change and normal eta = to_ior / from_ior cos_i = -normal.dot(self) k = 1 - eta ** 2 * (1 - cos_i ** 2) return self * eta + normal * (eta * cos_i - math.sqrt(k)) */ if (scene[hit_obj_index*16 + 12] > 0){ float from_ior, to_ior; if (ray[3]*hit_normal[0] + ray[4]*hit_normal[1] + ray[5]*hit_normal[2] > 0) { from_ior = ray[6]; to_ior = scene[hit_obj_index*16 + 13]; } else { from_ior = scene[hit_obj_index*16 + 13]; to_ior = ray[6]; } float refraction_ray[7]; refraction_ray[0] = hit_point[0] - 0.0001*hit_normal[0]; refraction_ray[1] = hit_point[1] - 0.0001*hit_normal[1]; refraction_ray[2] = hit_point[2] - 0.0001*hit_normal[2]; float eta = to_ior / from_ior; float cos_i = -(ray[3]*hit_normal[0] + ray[4]*hit_normal[1] + ray[5]*hit_normal[2]); float k = 1 - eta*eta * (1 - cos_i*cos_i); temp = eta*cos_i - sqrt(k); refraction_ray[3] = ray[3] * eta + hit_normal[0] * temp; refraction_ray[4] = ray[4] * eta + hit_normal[1] * temp; refraction_ray[5] = ray[5] * eta + hit_normal[2] * temp; normalize_vector(refraction_ray+3, refraction_ray+4, refraction_ray+5); refraction_ray[6] = 1; trace_recursivelyGPU(refraction_ray, scene, scene_size, refraction, depth+1, max_depth); } output[0] = (reflection[0] * fresnel + refraction[0] * (1-fresnel) * scene[hit_obj_index*16 + 12]) * scene[hit_obj_index*16 + 5]; output[1] = (reflection[1] * fresnel + refraction[1] * (1-fresnel) * scene[hit_obj_index*16 + 12]) * scene[hit_obj_index*16 + 6]; output[2] = (reflection[2] * fresnel + refraction[2] * (1-fresnel) * scene[hit_obj_index*16 + 12]) * scene[hit_obj_index*16 + 7]; } __global__ void traceGPU(float *ray_array, float *scene, int width, int scene_size, float *output, int max_depth){ int tx; int ray_array_index; tx = blockIdx.x*blockDim.x + threadIdx.x; if (tx >= width) return; ray_array_index = tx; int hit_obj_index; float output_c[3]; trace_recursivelyGPU(ray_array + ray_array_index*7, scene, scene_size, output_c, 0, max_depth); output[0] = output_c[0]; output[1] = output_c[1]; output[2] = output_c[2]; }
7,069
#include "random.hpp" namespace util { namespace random { std::random_device device; // Note this is a callable object. std::default_random_engine engine(device()); } // namespace random } // namespace util
7,070
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include "string.h" #include <sys/time.h> #include <time.h> #define DEFAULT_THRESHOLD 4000 #define DEFAULT_FILENAME "ansel3.ppm" unsigned int* read_ppm(char* filename, int* image_width, int* image_height, int* maxval); void write_ppm(char* filename, int image_width, int image_height, int maxval, int* pic); __global__ void sobel(int* input_image, int* output_image, int image_width, int image_height, int thresh); int main( int argc, char **argv ) { int thresh = DEFAULT_THRESHOLD; char *filename; filename = strdup( DEFAULT_FILENAME); if (argc > 1) { if (argc == 3) { // filename AND threshold filename = strdup( argv[1]); thresh = atoi( argv[2] ); } if (argc == 2) { // default file but specified threshhold thresh = atoi( argv[1] ); } fprintf(stderr, "file %s threshold %d\n", filename, thresh); } int image_width, image_height, maxval; unsigned int *host_input_image = read_ppm( filename, &image_width, &image_height, &maxval ); int numbytes = image_width * image_height * sizeof(int); int *host_result = (int *) malloc(numbytes); if (!host_result) { fprintf(stderr, "sobel() unable to malloc %d bytes\n", numbytes); exit(-1); // fail } int* device_input_image; int* device_result; cudaMalloc(&device_input_image, numbytes); cudaMalloc(&device_result, numbytes); cudaMemcpy(device_input_image, host_input_image, numbytes, cudaMemcpyHostToDevice); dim3 threads_per_block(32, 32); dim3 blocks_per_grid(ceil(image_width/32.0), ceil(image_height/32.0)); float elapsed_time; cudaEvent_t start_event, stop_event; cudaEventCreate(&start_event); cudaEventCreate(&stop_event); cudaEventRecord(start_event, 0); sobel<<<blocks_per_grid, threads_per_block>>>(device_input_image, device_result, image_width, image_height, thresh); cudaEventRecord(stop_event, 0); cudaEventSynchronize(stop_event); cudaEventElapsedTime(&elapsed_time, start_event, stop_event); cudaMemcpy(host_result, device_result, numbytes, cudaMemcpyDeviceToHost); cudaFree(device_input_image); cudaFree(device_result); write_ppm( "result.ppm", image_width, image_height, 255, host_result); printf("Elapsed time: %f milliseconds\n", elapsed_time); return 0; } unsigned int *read_ppm( char *filename, int * image_width, int * image_height, int *maxval ){ if ( !filename || filename[0] == '\0') { fprintf(stderr, "read_ppm but no file name\n"); return NULL; // fail } FILE *fp; fprintf(stderr, "read_ppm( %s )\n", filename); fp = fopen( filename, "rb"); if (!fp) { fprintf(stderr, "read_ppm() ERROR file '%s' cannot be opened for reading\n", filename); return NULL; // fail } char chars[1024]; //int num = read(fd, chars, 1000); int num = fread(chars, sizeof(char), 1000, fp); if (chars[0] != 'P' || chars[1] != '6') { fprintf(stderr, "Texture::Texture() ERROR file '%s' does not start with \"P6\" I am expecting a binary PPM file\n", filename); return NULL; } unsigned int width, height, maxvalue; char *ptr = chars+3; // P 6 newline if (*ptr == '#') // comment line! { ptr = 1 + strstr(ptr, "\n"); } num = sscanf(ptr, "%d\n%d\n%d", &width, &height, &maxvalue); fprintf(stderr, "read %d things width %d height %d maxval %d\n", num, width, height, maxvalue); *image_width = width; *image_height = height; *maxval = maxvalue; unsigned int *pic = (unsigned int *)malloc( width * height * sizeof(unsigned int)); if (!pic) { fprintf(stderr, "read_ppm() unable to allocate %d x %d unsigned ints for the picture\n", width, height); return NULL; // fail but return } // allocate buffer to read the rest of the file into int bufsize = 3 * width * height * sizeof(unsigned char); if ((*maxval) > 255) bufsize *= 2; unsigned char *buf = (unsigned char *)malloc( bufsize ); if (!buf) { fprintf(stderr, "read_ppm() unable to allocate %d bytes of read buffer\n", bufsize); return NULL; // fail but return } // TODO really read char duh[80]; char *line = chars; // find the start of the pixel data. no doubt stupid sprintf(duh, "%d\0", *image_width); line = strstr(line, duh); //fprintf(stderr, "%s found at offset %d\n", duh, line-chars); line += strlen(duh) + 1; sprintf(duh, "%d\0", *image_height); line = strstr(line, duh); //fprintf(stderr, "%s found at offset %d\n", duh, line-chars); line += strlen(duh) + 1; sprintf(duh, "%d\0", *maxval); line = strstr(line, duh); fprintf(stderr, "%s found at offset %d\n", duh, line - chars); line += strlen(duh) + 1; long offset = line - chars; //lseek(fd, offset, SEEK_SET); // move to the correct offset fseek(fp, offset, SEEK_SET); // move to the correct offset //long numread = read(fd, buf, bufsize); long numread = fread(buf, sizeof(char), bufsize, fp); fprintf(stderr, "Texture %s read %ld of %ld bytes\n", filename, numread, bufsize); fclose(fp); int pixels = (*image_width) * (*image_height); int i; for (i=0; i<pixels; i++) pic[i] = (int) buf[3*i]; // red channel return pic; // success } void write_ppm( char *filename, int image_width, int image_height, int maxval, int *pic) { FILE *fp; fp = fopen(filename, "w"); if (!fp) { fprintf(stderr, "FAILED TO OPEN FILE '%s' for writing\n"); exit(-1); } fprintf(fp, "P6\n"); fprintf(fp,"%d %d\n%d\n", image_width, image_height, maxval); int numpix = image_width * image_height; int i; for (i=0; i<numpix; i++) { unsigned char uc = (unsigned char) pic[i]; fprintf(fp, "%c%c%c", uc, uc, uc); } fclose(fp); } __global__ void sobel(int* input_image, int* output_image, int image_width, int image_height, int thresh) { int j = blockIdx.x * blockDim.x + threadIdx.x + 1; int i = blockIdx.y * blockDim.y + threadIdx.y + 1; if( (i < (image_height-1)) && (j < (image_width-1)) ) { int sum1, sum2, magnitude; int offset = i*image_width + j; sum1 = input_image[ image_width * (i-1) + j+1 ] - input_image[ image_width*(i-1) + j-1 ] + 2 * input_image[ image_width * (i) + j+1 ] - 2 * input_image[ image_width*(i) + j-1 ] + input_image[ image_width * (i+1) + j+1 ] - input_image[ image_width*(i+1) + j-1 ]; sum2 = input_image[ image_width * (i-1) + j-1 ] + 2 * input_image[ image_width * (i-1) + j ] + input_image[ image_width * (i-1) + j+1 ] - input_image[image_width * (i+1) + j-1 ] - 2 * input_image[ image_width * (i+1) + j ] - input_image[ image_width * (i+1) + j+1 ]; magnitude = sum1*sum1 + sum2*sum2; if (magnitude > thresh) output_image[offset] = 255; else output_image[offset] = 0; } }
7,071
__global__ void summup(double* h, double* e, int N) { int idx = blockIdx.x*blockDim.x + threadIdx.x; if (idx<N) h[idx] += e[idx]; // __syncthreads(); }
7,072
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <math.h> #include <float.h> #define IDX2C(i,j,rows) (((j)*(rows))+(i)) __global__ void matrixPlusVector(float* input, float* bias, float * output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = input[ij] + bias[i]; } } __global__ void matrixTanh(float* input, float* output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = tanh(input[ij]); } } __global__ void matrixIncorporateTanhDeriv(float* base, float* activation, float* output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = base[ij] * (1 + activation[ij])*(1 - activation[ij]); } } __global__ void matrixReLu(float* input, float* output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = fmaxf(input[ij], 0); } } __global__ void matrixIncorporateReLuDeriv(float* base, float* activation, float* output, int rows, int columns) { int j = blockDim.x * blockIdx.x + threadIdx.x; int i = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = activation[ij] <= 0 ? 0 : base[ij]; } } __global__ void matrixSigmoid(float* input, float* output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); // how to refactor the sigmoid calculation??? output[ij] = (tanhf((input[ij]) / 2) + 1) / 2.0f; } } __global__ void matrixIncorporateSigmoidDeriv(float* base, float* activation, float* output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = base[ij] * activation[ij] * (1 - activation[ij]); } } __global__ void matrixCrossEntropyError(float* sigmoidScores, float* trueLabels, float* output, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = trueLabels[ij] > 0 ? logf(sigmoidScores[ij] + FLT_EPSILON) : logf(1 - sigmoidScores[ij] + FLT_EPSILON); output[ij] *= -1; } } __global__ void matrixBellmanErrorAndDeriv(float* predictedQValues, float* maxQHatValues, float* chosenActionIndices, float* currentRewards, float* error, float* errorDerivative, float discount, float* isLastEpisode, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); float y = isLastEpisode[j] > 0 ? currentRewards[j] : currentRewards[j] + (discount*maxQHatValues[j]); errorDerivative[ij] = 0; // Calculating error and errorDerivative if (i == chosenActionIndices[j]) { float tmp = predictedQValues[i] - y; errorDerivative[ij] = tmp; error[j] = 0.5*tmp*tmp; } } } __global__ void DqnStanfordEvaluation(float* predictedactionIndices, float* chosenActionIndices, float* currentRewards, float* matchPredictRewards, float* nonMatchPredictRewards, int rows) { int i = blockDim.x * blockIdx.x + threadIdx.x; if (i < rows) { if (predictedactionIndices[i] == chosenActionIndices[i]) { matchPredictRewards[i] = currentRewards[i]; } else { nonMatchPredictRewards[i] = currentRewards[i]; } } } __global__ void matrixHadamard(float* input1, float* input2, float alpha, float* output, float beta, int rows, int columns) { int i = blockDim.x * blockIdx.x + threadIdx.x; int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < rows && j < columns) { int ij = IDX2C(i, j, rows); output[ij] = alpha*input1[ij] * input2[ij] + beta*output[ij]; } } __global__ void columnwiseMax(float* input, float* output, int rows, int columns) { int j = blockDim.x * blockIdx.x + threadIdx.x; if (j < columns) { float maxInColumn = input[IDX2C(0, j, rows)]; for (int i = 0; i < rows; i++) { int ij = IDX2C(i, j, rows); if (input[ij] > maxInColumn) { maxInColumn = input[ij]; } } output[j] = maxInColumn; } } __global__ void columnwiseMaxIndex(float* input, float* output, int rows, int columns) { int j = blockDim.x * blockIdx.x + threadIdx.x; if (j < columns) { int maxInColumnIndex = 0; float maxInColumn = input[IDX2C(maxInColumnIndex, j, rows)]; for (int i = 0; i < rows; i++) { int ij = IDX2C(i, j, rows); if (input[ij] > maxInColumn) { maxInColumn = input[ij]; maxInColumnIndex = i; } } output[j] = (float)maxInColumnIndex; } } int main() { return 0; }
7,073
#include "includes.h" __global__ void update(float* original, float* newTE, float* current, int nhalf) { int i = threadIdx.x + blockDim.x*blockIdx.x; if (i < nhalf) { current[i] /= nhalf; newTE[i] = (original[i] < current[i]) ? current[i] : original[i]; // LIKELY, THERE IS A PERFORMANCE LOSS HERE } }
7,074
#include<stdio.h> __global__ void serial() { printf("%d\n",threadIdx.x); } int main() { serial<<<1,10>>>(); cudaDeviceSynchronize(); }
7,075
/* * This program uses the host CURAND API to generate 100 * pseudorandom floats. */ #include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <curand.h> #define CUDA_CALL(x) do { if((x)!=cudaSuccess) { \ printf("Error at %s:%d\n",__FILE__,__LINE__);\ return EXIT_FAILURE;}} while(0) #define CURAND_CALL(x) do { if((x)!=CURAND_STATUS_SUCCESS) { \ printf("Error at %s:%d\n",__FILE__,__LINE__);\ return EXIT_FAILURE;}} while(0) int main(int argc, char *argv[]) { size_t n = 100; size_t i; curandGenerator_t gen; float *devData, *hostData; /* Allocate n floats on host */ hostData = (float *)calloc(n, sizeof(float)); /* Allocate n floats on device */ CUDA_CALL(cudaMalloc((void **)&devData, n*sizeof(float))); /* Create pseudo-random number generator */ CURAND_CALL(curandCreateGenerator(&gen, CURAND_RNG_PSEUDO_DEFAULT)); /* Set seed */ CURAND_CALL(curandSetPseudoRandomGeneratorSeed(gen, 1234ULL)); /* Generate n floats on device */ CURAND_CALL(curandGenerateUniform(gen, devData, n)); /* Copy device memory to host */ CUDA_CALL(cudaMemcpy(hostData, devData, n * sizeof(float), cudaMemcpyDeviceToHost)); /* Show result */ for(i = 0; i < n; i++) { printf("%1.4f ", hostData[i]); } printf("\n"); /* Cleanup */ CURAND_CALL(curandDestroyGenerator(gen)); CUDA_CALL(cudaFree(devData)); free(hostData); return EXIT_SUCCESS; }
7,076
// ///** // * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. // * // * Please refer to the NVIDIA end user license agreement (EULA) associated // * with this source code for terms and conditions that govern your use of // * this software. Any use, reproduction, disclosure, or distribution of // * this software and related documentation outside the terms of the EULA // * is strictly prohibited. // */ //#include <stdio.h> //#include <stdlib.h> // //#include <cuda.h> // //static const int WORK_SIZE = 256; // ///** // * This macro checks return value of the CUDA runtime call and exits // * the application if the call failed. // * // * See cuda.h for error code descriptions. // */ //#define CHECK_CUDA_RESULT(N) { \ // CUresult result = N; \ // if (result != 0) { \ // printf("CUDA call on line %d returned error %d\n", __LINE__, \ // result); \ // exit(1); \ // } } // //int main(int argc, char **argv) //{ // CUmodule module; // CUcontext context; // CUdevice device; // CUdeviceptr deviceArray; // CUfunction process; // // void *kernelArguments[] = { &deviceArray }; // int deviceCount; // unsigned int idata[WORK_SIZE], odata[WORK_SIZE]; // // for (int i = 0; i < WORK_SIZE; ++i) { // idata[i] = i; // } // // CHECK_CUDA_RESULT(cuInit(0)); // CHECK_CUDA_RESULT(cuDeviceGetCount(&deviceCount)); // if (deviceCount == 0) { // printf("No CUDA-compatible devices found\n"); // exit(1); // } // CHECK_CUDA_RESULT(cuDeviceGet(&device, 0)); // CHECK_CUDA_RESULT(cuCtxCreate(&context, 0, device)); // // CHECK_CUDA_RESULT(cuModuleLoad(&module, "bitreverse.fatbin")); // CHECK_CUDA_RESULT(cuModuleGetFunction(&process, module, "bitreverse")); // // CHECK_CUDA_RESULT(cuMemAlloc(&deviceArray, sizeof(int) * WORK_SIZE)); // CHECK_CUDA_RESULT( // cuMemcpyHtoD(deviceArray, idata, sizeof(int) * WORK_SIZE)); // // CHECK_CUDA_RESULT( // cuLaunchKernel(process, 1, 1, 1, WORK_SIZE, 1, 1, 0, NULL, kernelArguments, NULL)); // // CHECK_CUDA_RESULT( // cuMemcpyDtoH(odata, deviceArray, sizeof(int) * WORK_SIZE)); // // for (int i = 0; i < WORK_SIZE; ++i) { // printf("Input value: %u, output value: %u\n", idata[i], odata[i]); // } // // CHECK_CUDA_RESULT(cuMemFree(deviceArray)); // CHECK_CUDA_RESULT(cuCtxDestroy(context)); // // return 0; //}
7,077
/* $Id: print.c,v 1.1 2019/12/12 15:03:38 gbarbd Exp gbarbd $ */ #include <stdio.h> #include <inttypes.h> static int is_little_endian(void) { int num = 1; return (*((char *)&num) == 1); } void print_binary(char *fname, int num, double *u) { FILE *f_ptr; size_t written; size_t items = num*num*num; if ( (f_ptr = fopen(fname, "w")) == NULL ) { perror("No output! fopen()"); return; } written = fwrite(u, sizeof(double), items, f_ptr); if ( written != items ) { fprintf(stderr, "Writing failed: only %lu of %lu items saved!\n", written, items); } fclose(f_ptr); } void print_vtk(const char *fname, int n, double *u) { FILE *f_ptr; size_t written; size_t items = n * n * n; size_t i; int b; unsigned char tmp; if ( (f_ptr = fopen(fname, "w")) == NULL ) { perror("No output! fopen()"); return; } // Write VTK file header fprintf(f_ptr, "# vtk DataFile Version 3.0\n"); fprintf(f_ptr, "saved from function print_vtk.\n"); fprintf(f_ptr, "BINARY\n"); fprintf(f_ptr, "DATASET STRUCTURED_POINTS\n"); fprintf(f_ptr, "DIMENSIONS %d %d %d\n", n, n, n); fprintf(f_ptr, "ORIGIN %d %d %d\n", 0, 0, 0); fprintf(f_ptr, "SPACING %d %d %d\n", 1, 1, 1); fprintf(f_ptr, "POINT_DATA %lu\n", items); fprintf(f_ptr, "SCALARS %s %s 1\n", "gray", "double"); fprintf(f_ptr, "LOOKUP_TABLE default\n"); if ( is_little_endian() ) { // System is little endian, so we need to reverse the byte order. written = 0; for (i = 0; i < items; ++i) { uint64_t crnt = *(uint64_t *)(u + i); // Get double as int // Reverse byte order and write to file crnt = (crnt & 0x00000000FFFFFFFF) << 32 | (crnt & 0xFFFFFFFF00000000) >> 32; crnt = (crnt & 0x0000FFFF0000FFFF) << 16 | (crnt & 0xFFFF0000FFFF0000) >> 16; crnt = (crnt & 0x00FF00FF00FF00FF) << 8 | (crnt & 0xFF00FF00FF00FF00) >> 8; written += fwrite(&crnt, sizeof(uint64_t), 1, f_ptr); } } else { // System is big endian, so just dump the data. written = fwrite(u, sizeof(double), items, f_ptr); } if ( written != items ) { fprintf(stderr, "Writing failed: only %lu of %lu items saved!\n", written, items); } fclose(f_ptr); }
7,078
#include <iostream> #include <fstream> #include <chrono> __global__ void sumOne(int n,int *m,int *partialSum,int *sum){ int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; int threadSum =0; for (int i = index; i < n; i += stride){ if(m[i]==1){ threadSum++; } } // Block Sum atomicAdd(&partialSum[blockIdx.x],threadSum); __syncthreads(); if(threadIdx.x==0){ // Global Sum; atomicAdd(&sum[0],partialSum[blockIdx.x]); } } int main(int argc,char **argv){ //Read input matrix std::ifstream infile; infile.open(argv[1]); if (!infile.is_open()){ std::cerr << "Couldn't read " << argv[1] << std::endl; return 0; } int w,h; infile >> w >> h; int N = w*h; int *m; //Unified memory allocation cudaMallocManaged(&m, N*sizeof(int)); for(int i=0;i<N;i++){ infile >> m[i]; } infile.close(); auto start = std::chrono::system_clock::now(); //Block,Grid parameters int blockSize = 256; int numBlocks = (N + blockSize - 1) / blockSize; int *partialSum; int *sum; cudaMallocManaged(&partialSum,numBlocks*sizeof(int)); cudaMallocManaged(&sum, sizeof(int)); //prefetch input matrix int device = -1; cudaGetDevice(&device); cudaMemPrefetchAsync(m, N*sizeof(int), device, NULL); cudaMemPrefetchAsync(partialSum, numBlocks*sizeof(int), device, NULL); cudaMemPrefetchAsync(sum, sizeof(int), device, NULL); //Sum ones sumOne<<<numBlocks, blockSize>>>(N, m, partialSum,sum); cudaDeviceSynchronize(); std::cout << sum[0] << std::endl; cudaFree(m); cudaFree(partialSum); cudaFree(sum); return 0; }
7,079
#include <stdio.h> #define MAX_THREADS 1024 __global__ void Reduce(double *srcImage, double *smpImage, int srcwidth, int srcheight, int smpwidth, int smpheight, double *sigmaST) { unsigned int srcx = blockIdx.x; unsigned int srcy = threadIdx.x; for(unsigned int next = 0; srcy + next < srcwidth - smpwidth; next += MAX_THREADS) { double sigmast = 0.0; for(unsigned int i = 0; i < smpheight; ++ i) { for(unsigned int j = 0; j < smpwidth; ++ j) { sigmast += srcImage[(srcx + i) * srcwidth + srcy + next + j] * smpImage[i * smpwidth + j]; } } sigmaST[srcx * srcwidth + srcy + next] = sigmast; } } void kernel2(double *srcImage, double *smpImage, int srcwidth, int srcheight, int smpwidth, int smpheight, double *sigmaST) { dim3 blockD(srcheight - smpheight, 1, 1); dim3 threadD(MAX_THREADS, 1, 1); Reduce<<<blockD, threadD>>>(srcImage, smpImage, srcwidth, srcheight, smpwidth, smpheight, sigmaST); cudaThreadSynchronize(); }
7,080
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include "string.h" // #include<time.h> #include<float.h> __constant__ int FIL[32*5*5]; __global__ void conv1(unsigned int *picd, int *resultd){ int i,j,k,l; int sum, offset; i = threadIdx.y; j = threadIdx.x; l = blockIdx.x; offset = l*25; int xsize = 28; int filterdim = 5; k=0; sum =0; if(i<(xsize -filterdim +1)&& j<(xsize -filterdim +1)){ sum = FIL[offset + k]*picd[ xsize * (i) + j ] + FIL[offset+ k+1]*picd[ xsize*(i) + (j+1) ] + FIL[offset+ k+2]*picd[ xsize * (i)+(j+2)] + FIL[offset+k+3]*picd[xsize * (i)+(j+3)] + FIL[offset+k+4]*picd[ xsize * (i)+(j+4)]+ FIL[offset+ k+5]*picd[ xsize*(i+1)+(j) ] + FIL[offset+k+6]*picd[ xsize * (i+1) + (j+1) ] + FIL[offset+ k+7]*picd[ xsize*(i+1) + (j+2) ] + FIL[offset+k+8]*picd[ xsize*(i+1) + (j+3) ] + FIL[offset+k+9]*picd[ xsize*(i+1) + (j+4) ] + FIL[offset+k+10]*picd[ xsize*(i+2) + (j) ] + FIL[offset+k+11]*picd[ xsize * (i+2) + (j+1) ] + FIL[offset+k+12]*picd[ xsize*(i+2) + (j+2)] + FIL[offset+k+13]*picd[ xsize*(i+2) + (j+3)] +FIL[offset+k+14]*picd[ xsize*(i+2) + (j+4)] + FIL[offset +k+15]*picd[ xsize*(i+3) + (j)] + FIL[offset+k+16]*picd[ xsize*(i+3) + (j+1)] + FIL[offset+k+17]*picd[ xsize*(i+3) + (j+2)] + FIL[offset+k+18]*picd[ xsize*(i+3) + (j+3)] + FIL[offset+k+19]*picd[ xsize*(i+3) + (j+4)] + FIL[offset+k+20]*picd[ xsize*(i+4) + (j)] +FIL[offset+k+21]*picd[ xsize*(i+3) + (j+1)] + FIL[offset+k+22]*picd[ xsize*(i+4) + (j+2)] + FIL[offset+k+23]*picd[ xsize*(i+4) + (j+3)] + FIL[offset+ k+24]*picd[ xsize*(i+4) + (j+4)]; resultd[l*(xsize -filterdim +1)*(xsize -filterdim +1) + i*(xsize - filterdim +1)+j] = sum; //printf("resultgpu[%d][%d]=%d\n",l,i*(xsize - filterdim +1)+j,resulth[l*(xsize -filterdim +1)*(xsize -filterdim +1) + i*(xsize - filterdim +1)+j]); } } __global__ void maxpooling(int *maxip1d, int *maxop1d){ int i,j,l; i = threadIdx.y; j = threadIdx.x; l = blockIdx.x; int xsize = 28; int filterdim = 5; if(i<((xsize-filterdim+1)/2)&&(j<((xsize-filterdim+1)/2))){ int a,b,c,d,index, max1, max2; index = l*((xsize -filterdim +1)*(xsize -filterdim +1))+ threadIdx.x*2 + threadIdx.y*2*(xsize -filterdim +1); a = maxip1d[index]; b = maxip1d[index +1]; c = maxip1d[index+(xsize-filterdim+1)]; d = maxip1d[index + (xsize-filterdim+2)]; if(a>b){ max1 = a; } else{ max1 = b; } if(c>d){ max2 = c; } else{ max2 = d; } if(max1>max2){ maxop1d[l*(xsize -filterdim +1)*(xsize -filterdim +1)/4 + i*(xsize - filterdim +1)/2+j]=max1; } else{ maxop1d[l*(xsize -filterdim +1)*(xsize -filterdim +1)/4 + i*(xsize - filterdim +1)/2+j] = max2; } } } __global__ void conv2(int *cip2d, int *filter2d, int *cop2d){ int i,j,l,sum; i = threadIdx.y; j = threadIdx.x; l = blockIdx.x; int lstar; lstar = l*800; sum = 0; int k =0; int di = 12; int disquare = di*di; int m; if(i<8 && j<8){ for(m = 0; m<32; m++){ sum = sum + filter2d[lstar + k]*cip2d[(m*disquare)+ (di*i) + j] + filter2d[lstar + k+1]*cip2d[(m*disquare)+ di*(i) + (j+1)] + filter2d[lstar+ k+2]*cip2d[(m*disquare)+ di*(i)+(j+2)] + filter2d[lstar +k+3]*cip2d[(m*disquare)+ di*(i)+(j+3)] + filter2d[lstar+k+4]*cip2d[(m*disquare)+ di*(i)+(j+4)]+ filter2d[lstar+ k+5]*cip2d[(m*disquare)+ di*(i+1)+(j)] + filter2d[lstar +k+6]*cip2d[(m*disquare)+ di* (i+1) + (j+1) ] + filter2d[lstar+ k+7]*cip2d[(m*disquare)+ di*(i+1)+(j+2)] + filter2d[lstar+k+8]*cip2d[(m*disquare)+ di*(i+1) + (j+3) ] + filter2d[lstar +k+9]*cip2d[(m*disquare)+ di*(i+1) +(j+4)] + filter2d[lstar+k+10]*cip2d[(m*disquare)+ di*(i+2) +(j)] + filter2d[lstar+k+11]*cip2d[(m*disquare)+ di* (i+2) + (j+1)] + filter2d[lstar+k+12]*cip2d[(m*disquare)+ di*(i+2) + (j+2)] +filter2d[lstar+k+13]*cip2d[(m*disquare)+ di*(i+2)+(j+3)] + filter2d[lstar+k+14]*cip2d[(m*disquare)+ di*(i+2)+(j+4)]+filter2d[lstar+k+15]*cip2d[(m*disquare)+ di*(i+3)+(j)] + filter2d[lstar+k+16]*cip2d[(m*disquare)+ di*(i+3)+(j+1)]+filter2d[lstar+k+17]*cip2d[(m*disquare)+ di*(i+3)+(j+2)] + filter2d[lstar+k+18]*cip2d[(m*disquare)+ di*(i+3)+(j+3)] + filter2d[lstar+k+19]*cip2d[(m*disquare)+di*(i+3)+(j+4)] + filter2d[lstar+k+20]*cip2d[(m*disquare)+ di*(i+4)+(j)] +filter2d[lstar+k+21]*cip2d[(m*disquare)+ di*(i+3)+(j+1)] + filter2d[lstar +k+22]*cip2d[(m*disquare)+ di*(i+4)+(j+2)] + filter2d[lstar+k+23]*cip2d[(m*disquare)+ di*(i+4)+(j+3)] + filter2d[lstar+ k+24]*cip2d[(m*disquare)+ di*(i+4) + (j+4)]; k+=25; } cop2d[l*64+i*8+j] = sum; // printf("resultdevice[%d][%d]:%d\n",l,i*8+j,cop2d[l*64+i*8+j]); } } __global__ void maxpool(int *maxip2d, int *maxop2d){ int i,j,l; i = threadIdx.y; j = threadIdx.x; l = blockIdx.x; int xsize = 12; int filterdim = 5; if(i<((xsize-filterdim+1)/2)&&(j<((xsize-filterdim+1)/2))){ int a,b,c,d,index, max1, max2; index = l*((xsize -filterdim +1)*(xsize -filterdim +1))+ threadIdx.x*2 + threadIdx.y*2*(xsize -filterdim +1); a = maxip2d[index]; b = maxip2d[index +1]; c = maxip2d[index+(xsize-filterdim+1)]; d = maxip2d[index + (xsize-filterdim+2)]; if(a>b){ max1 = a; } else{ max1 = b; } if(c>d){ max2 = c; } else{ max2 = d; } if(max1>max2){ maxop2d[l*(xsize -filterdim +1)*(xsize -filterdim +1)/4 + i*(xsize - filterdim +1)/2+j]=max1; } else{ maxop2d[l*(xsize -filterdim +1)*(xsize -filterdim +1)/4 + i*(xsize - filterdim +1)/2+j] = max2; } } } int main(int argc, char **argv){ int xsize; int filterdim; int numfilters; int numfilters1; xsize = 28; filterdim = 5; numfilters = 32; numfilters1 = 64; /*Numbytes required for initial image*/ int numbytes = xsize*xsize*sizeof(int); /*Numbytes require for the output of first convolution layer*/ int numbytes2 = (xsize-filterdim+1)*(xsize-filterdim+1)*sizeof(int); //24x24 /**Numbytes required for output of first maxpool layer**/ int numbytes3 = ((xsize-filterdim+1)*(xsize-filterdim+1)/4)*sizeof(int); //12x12 /*Numbytes required for the output of second convolution layer*/ int numbytes4 = ((xsize-filterdim+1)/2 - filterdim + 1)*((xsize-filterdim+1)/2 - filterdim + 1)*sizeof(int);//8x8 /*Numbytes required for the output of second maxpool layer*/ int numbytes5 = (numbytes4/4)*sizeof(int);//4x4 /*Image on host side*/ /*Ip and op to first conv layer*/ unsigned int *pic = (unsigned int *)malloc(numbytes); int *result; int filter[numfilters*filterdim*filterdim]; /*Ip and op to first maxpool layer*/ int *maxip1; int *maxop1; /*Ip and op of second conv layer*/ int *cip2; int *cop2; int *filter2; /*ip and op to second maxpool layer*/ int *maxip2; int *maxop2; /*Device side variables*/ unsigned int *picd; int *resultd; /*Ip and op to first maxpool layer*/ int *maxip1d; int *maxop1d; /*Ip and op of second conv layer*/ int *cip2d; int *cop2d; int *filter2d; /*ip and op to second maxpool layer*/ int *maxip2d; int *maxop2d; result = (int *)malloc(numfilters*numbytes2); maxip1 = (int *)malloc(numfilters*numbytes2); maxop1 = (int *)malloc(numfilters*numbytes3); cip2 = (int *)malloc(numfilters*numbytes3); cop2 = (int *)malloc(numfilters1*numbytes4); filter2 = (int *)malloc(numfilters1*numfilters*filterdim*filterdim*sizeof(int)); maxip2 = (int *)malloc(numfilters1*numbytes4); maxop2 = (int *)malloc(numfilters1*numbytes5); cudaMalloc(&picd, numbytes); cudaMalloc(&resultd, numfilters*numbytes2); cudaMalloc(&maxip1d, numfilters*numbytes2); cudaMalloc(&maxop1d, numfilters*numbytes3); cudaMalloc(&cip2d, numfilters*numbytes3); cudaMalloc(&cop2d, numfilters1*numbytes4); cudaMalloc(&filter2d, numfilters1*numfilters*filterdim*filterdim*sizeof(int)); cudaMalloc(&maxip2d, numfilters1*numbytes4); cudaMalloc(&maxop2d, numfilters1*numbytes5); /*Initializing the image on host side*/ /*Should modify to later on read in image*/ int i,j,k,l,count,dimx; for (i=0; i<xsize; i++) { for (j=0; j<xsize; j++) { pic[i*xsize + j] = 1; //printf("pic[%d][%d] : %d\t",i,j,pic[i*xsize + j]); } // printf("\n"); } /*Initializing the filter for first conv layer to a value*/ /*TO DO : Read in filter from a file */ for(int k=0;k<numfilters;k++){ for (int i=0; i<filterdim; i++) { for (int j=0; j<filterdim; j++){ filter[k*(filterdim*filterdim) + i*filterdim + j] = 1; // printf("filter[%d][%d]: %d\n",k, i*filterdim + j, filter[k*(filterdim*filterdim) + i*filterdim + j]); } } } /*Initializing the filter for second conv layer to a value*/ /*TO DO : Read in filter from a file */ for(int k=0;k<numfilters1;k++){ for(int m= 0; m<numfilters;m++){ for (int i=0; i<filterdim; i++) { for (int j=0; j<filterdim; j++){ filter2[k*(numfilters*filterdim*filterdim)+ m*filterdim*filterdim + i*filterdim + j] = 1; // printf("filter2[%d][%d]: %d\t",k, m*filterdim*filterdim+i*filterdim + j, filter2[k*(numfilters*filterdim*filterdim)+ m*filterdim*filterdim + i*filterdim + j]); } } } // printf("\n"); } dim3 dimGrid (32); dim3 dimBlock (32,32); cudaMemcpy(picd,pic,numbytes, cudaMemcpyHostToDevice); cudaMemcpyToSymbol(FIL, filter, numfilters*filterdim*filterdim*sizeof(int)); conv1<<<dimGrid, dimBlock>>>(picd,resultd); cudaMemcpy(result,resultd,numfilters*numbytes2,cudaMemcpyDeviceToHost); dim3 dimBlock1 (16,16); cudaMemcpy(maxip1d, result,numfilters*numbytes2, cudaMemcpyHostToDevice); maxpooling<<<dimGrid, dimBlock1>>>(maxip1d, maxop1d); cudaMemcpy(maxop1, maxop1d, numfilters*numbytes3, cudaMemcpyDeviceToHost); cudaMemcpy(cip2d, maxop1,numfilters*numbytes3,cudaMemcpyHostToDevice); cudaMemcpy(filter2d, filter2,numfilters1*numfilters*filterdim*filterdim*sizeof(int), cudaMemcpyHostToDevice); dim3 dimGrid2(64); dim3 dimBlock2(8,8); conv2<<<dimGrid2, dimBlock2>>>(cip2d, filter2d, cop2d); cudaMemcpy(cop2, cop2d,numfilters1*numbytes4,cudaMemcpyDeviceToHost); cudaMemcpy(maxip2d, cop2,numfilters1*numbytes4,cudaMemcpyHostToDevice); maxpool<<<dimGrid2, dimBlock2>>>(maxip2d, maxop2d); cudaMemcpy(maxop2, maxop2d, numfilters*numbytes5, cudaMemcpyDeviceToHost); for(k=0;k<numfilters1;k++){ for(i=0;i<4;i++){ for(j=0;j<4;j++){ printf("maxpool[%d][%d]:%d\t",k,i*4+j, maxop2[k*16+i*4+j]); } printf("\n"); } printf("\n\n"); } }
7,081
#include <stdio.h> #include <numeric> #include <stdlib.h> #include <cuda.h> #include <iostream> #include <fstream> using namespace std; #define BLOCK_SIZE 32 __global__ void reduceKernel(float *device_output, float *device_input, float *final_output); //function to call reduce kernel for array size string reduceInvoker(int arraySize) { int N = arraySize; printf("%i\n", N); //Create variables for input and output array sizes size_t size = N * sizeof(float); size_t size_output = size / BLOCK_SIZE; size_t size_final_output = sizeof(float); //initialising host input and output arrays float host_input[N]; float host_output[1]; //initialising pointers for device arrays float *device_input, *device_output, *final_output; //initialising variables and events for cuda timer cudaEvent_t start, stop; cudaEventCreate(&start); cudaEventCreate(&stop); cudaError_t err; //filling host input array with values for (int i = 0; i < N; i++) { host_input[i] = 1.0f; } //allocating space for device input array cudaMalloc((void**) &device_input, size); //copying host input array to device cudaMemcpy(device_input, host_input, size, cudaMemcpyHostToDevice); //allocating space for device and final output arrays cudaMalloc((void**) &device_output, size_output); cudaMalloc((void**) &final_output, size_final_output); //calculating grid size int grid_size = N / BLOCK_SIZE; printf("Grid Size is: %d\n", grid_size); printf("Block Size is: %d\n", BLOCK_SIZE); dim3 threadsPerBlock(BLOCK_SIZE); dim3 blocks(grid_size); //start timer cudaEventRecord(start); //call kernel reduceKernel<<<blocks, threadsPerBlock>>>(device_output, device_input, final_output); //stop timer cudaEventRecord(stop); // Wait for GPU to finish before accessing on host err = cudaDeviceSynchronize(); printf("Run kernel: %s\n", cudaGetErrorString(err)); printf("\n"); //copy final output array to host err = cudaMemcpy(host_output, final_output, size_final_output, cudaMemcpyDeviceToHost); printf("Copy host_output off device: %s\n", cudaGetErrorString(err)); printf("\n"); //calculate elapsed time float milliseconds = 0; cudaEventElapsedTime(&milliseconds, start, stop); printf("Elapsed time was: %f\n", milliseconds); printf("And the final reduction is: %f\n", host_output[0]); //free device memory cudaFree(device_input); cudaFree(device_output); cudaFree(final_output); //format string for csv file string csv = to_string(arraySize) + "," + to_string(milliseconds) + "," + to_string(BLOCK_SIZE) + "," + to_string(grid_size) + "\n"; return csv; } int main(void) { //Open file std::ofstream myFile; myFile.open("times.csv", std::ofstream::trunc); //Write headers myFile << "Array Size,Elapsed Time,Block Size,Grid Size\n"; //Call reduce function invoker for different array sizes and write result to file for (unsigned int i = 1; i <= (1 << 20); i <<= 1) { printf("%i\n", i); string csv = reduceInvoker(i); myFile << csv; } //close file myFile.close(); } __global__ void reduceKernel(float* device_output, float* device_input, float *final_output) { //work out global thread id int myId = threadIdx.x + blockDim.x * blockIdx.x; // ID relative //work out local thread id int tid = threadIdx.x; // Local ID //initialise static shared memory __shared__ float temp[BLOCK_SIZE]; //set value in shared memory temp[tid] = device_input[myId]; //make sure threads are synced before adding values __syncthreads(); // do reduction in shared memory for (unsigned int s = blockDim.x / 2; s >= 1; s >>= 1) { if (tid < s) { temp[tid] += temp[tid + s]; } __syncthreads(); // make sure all adds at one stage are } // only thread 0 writes result for this block back to global memory if (tid == 0) { device_output[blockIdx.x] = temp[tid]; //add partial reductions to get final reduction atomicAdd(&final_output[0], device_output[blockIdx.x]); } }
7,082
#include <iostream> #include <numeric> #include <cstdlib> // Kolaylık olsun using namespace std; // Tipik bir C++ fonksiyonu void carp(int n, float *x, float *y, float *z) { for (int i = 0; i < n; i++) { z[i] = x[i] * y[i]; } } // Ustteki fonksiyonun CUDA versiyonu __global__ void carp_cuda(int n, float *x, float *y, float *z) { for (int i = threadIdx.x; i < n; i += blockDim.x) { z[i] = x[i] * y[i]; } } int main(int argc, char *argv[]) { // Çok büyük bir sayı belirleyelim int N = 10000; float *x_gpu, *y_gpu, *z_gpu, *x_cpu, *y_cpu, *z_cpu; // GPU ve CPU tarafindan ulasilabilen memory ayirtalim cudaMallocManaged(&x_gpu, N * sizeof(float)); cudaMallocManaged(&y_gpu, N * sizeof(float)); cudaMallocManaged(&z_gpu, N * sizeof(float)); // Sadece CPU tarafindan ulasilabilen memory ayirtalim x_cpu = new float[N]; y_cpu = new float[N]; z_cpu = new float[N]; // for (int i = 0; i < N; ++i) { x_gpu[i] = 1.0f; y_gpu[i] = 2.0f; x_cpu[i] = 1.0f; y_cpu[i] = 2.0f; } // Fonksiyonu GPU'da argv[1] blokta ve her blokta argv[2] thread // olacak sekilde çagiralım int blok_sayisi = atoi(argv[1]); int thread_sayisi = atoi(argv[2]); carp_cuda<<<blok_sayisi, thread_sayisi>>>(N, x_gpu, y_gpu, z_gpu); // GPU'yu bekleyelim de isini bitirsin, yoksa ortam karisir. cudaDeviceSynchronize(); // Normal CPU fonlsiyonunu çagiralım carp(N, x_cpu, y_cpu, z_cpu); // Bakalim dogru mu yaptik? // z_gpu ve z_cpu ayni degerlere sahip olması lazim for(int i = 0; i < N; ++i) cout << z_cpu[i] << " " << z_gpu[i] << endl; // Release the Kraken - Kraken'i saliverin gelsin. cudaFree(x_gpu); cudaFree(y_gpu); cudaFree(z_gpu); delete [] x_cpu; delete [] y_cpu; delete [] z_cpu; return 0; }
7,083
#include "includes.h" #define BLOCK_SIZE 16 __global__ void Evolve(bool* field, float* scores, double b, int size, bool* next_field) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int memberIndex; // Score if (col >= size || row >= size) return; //printf("(%i, %i)\n", col, row); float score = 0; for (int i = -1; i <= 1; i++) //Row { for (int j = -1; j <= 1; j++) //Col { memberIndex = (col + i + size) % size + size * ((row + j + size) % size); if (field[memberIndex] == true) score++; } } if (!field[row*size + col]) scores[row*size + col] = score * b; else scores[row*size + col] = score; __syncthreads(); // Strategy int bestStrategyIndex = row*size + col; for (int i = -1; i <= 1; i++) //Row { for (int j = -1; j <= 1; j++) //Col { memberIndex = (col + i + size) % size + size * ((row + j + size) % size); if (scores[bestStrategyIndex] < scores[memberIndex]) { bestStrategyIndex = memberIndex; } } } next_field[row*size + col] = field[bestStrategyIndex]; __syncthreads(); }
7,084
// Berat Postalcioglu /* OUTPUT minimum element of the array (minCPU): -9649.35 minimum element of the array (minGPU): -9649.35 */ #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <cmath> #include <cstdio> #include <ctime> const int ArrSize = 60000; const int ThreadsPerBlock = 512; const int BlocksPerGrid = 32; // generates a random array void generateArray(double *data, int count) { //generate a random data set for (int i = 0; i < count; i++) { data[i] = rand() / (rand() + 1.1) * (rand() % 2 ? 1 : -1); } } double minCPU(double *data, int count) { int minIndex = 0; for (int i = 0; i < count; i++) { if (std::isgreater(data[minIndex], data[i])) { minIndex = i; } } return data[minIndex]; } __global__ void minGPU(double *data, int count, double *res) { __shared__ double cache[ThreadsPerBlock]; int tid = threadIdx.x + blockIdx.x * blockDim.x; int cacheIndex = threadIdx.x; double temp = 0; while (tid < count) { temp += data[tid]; //cache[cacheIndex] = data[tid]; tid += blockDim.x * gridDim.x; } cache[cacheIndex] = temp; __syncthreads(); int i = blockDim.x / 2; while (i != 0) { if (cacheIndex < i) { if (cache[cacheIndex] > cache[cacheIndex + i]) { cache[cacheIndex] = cache[cacheIndex + i]; } } __syncthreads(); i /= 2; } if (cacheIndex == 0) res[blockIdx.x] = cache[0]; } int main() { srand(time(NULL)); // cpu double data[ArrSize]; generateArray(data, ArrSize); double minElementCpu = minCPU(data, ArrSize); printf("minimum element of the array (minCPU): %.2f\n", minElementCpu); // gpu double *gpuData, *gpuRes; cudaMalloc((void**)&gpuData, ArrSize * sizeof(double)); cudaMalloc((void**)&gpuRes, BlocksPerGrid * sizeof(double)); cudaMemcpy((void*)gpuData, (const void*) data, ArrSize * sizeof(double), cudaMemcpyHostToDevice); minGPU <<<BlocksPerGrid, ThreadsPerBlock>>> (gpuData, ArrSize, gpuRes); double blockResults[BlocksPerGrid]; cudaMemcpy((void*)blockResults, (const void *)gpuRes, BlocksPerGrid * sizeof(double), cudaMemcpyDeviceToHost); double minElementGpu = minCPU(blockResults, BlocksPerGrid); printf("minimum element of the array (minGPU): %.2f\n", minElementGpu); return 0; }
7,085
#include "includes.h" __global__ void vectFill( int * data1, int * data2, int * restult, unsigned long sizeOfArray ) { unsigned long i = blockDim.x * blockIdx.x + threadIdx.x; if( i < sizeOfArray ) { restult[ i ] = data1[i] + data2[i]; } }
7,086
# include <stdio.h> # include <stdlib.h> // To use the exit function and malloc # include <string.h> /* * ============================================ * Find a word in a given string (CUDA version) * ============================================ * * Usage: find_word <word> <input_file> * * Given a word, load the first line of the input file and * search the word in it. This version uses a CUDA-enabled * graphics card. */ // Global constant # define NOT_FOUND (-1) # define THREADS_PER_BLOCK (128) // Function declaration int find_word_in_gpu(char *word, char *search_here); // ---------------------------------------------------------------------------- // Kernel definition void __global__ find_word_kernel(char *word, char *search_here, int *found_here, int ref_length) { /* * Search for the given word in the search_here string. * At first occurrence, returns the starting position. * If the word was not found, return -1. */ // The starting position of each thread int start = (blockDim.x * blockIdx.x) + threadIdx.x; if (start < ref_length-1) { // Check for a valid position int found = 1; // Pretend you found it int letters_coincide; // ---> Check if the word is found from here for (int j=0; word[j] != '\0'; j++) { // Check if the letters coincide letters_coincide = (search_here[start+j] == word[j]); found = (found && letters_coincide); } // Place your mark found_here[start] = found; } return; } // --- find_word_kernel // ---------------------------------------------------------------------------- /* --- << Main function >> --- */ int main(int argc, char *argv[]) { // 1. ---> Find the input file and the word to search char *search_here = argv[1]; char *word = argv[2]; // 2. ---> Search the word in the reference string int found_here = find_word_in_gpu(word, search_here); // 3. ---> Display the results if( found_here == NOT_FOUND ) { // The word was not found printf("Sorry, the word was not found in the reference string\n"); printf("Word: %s\nReference string: %s\n\n", word, search_here); } else { // The word was found printf("The word was found at position: %d\n", found_here); // Signal the position printf("Word: %s\nReference string: %s\n", word, search_here); printf(" "); for (int i=0; i < found_here-1; i++) printf(" "); printf("^\n\n"); } // 4. ---> Finish! return 0; } // --- main // ---------------------------------------------------------------------------- /* --- << Functions >> --- */ // --- --- - --- --- - --- --- - --- --- - --- --- - --- --- - --- -- int find_word_in_gpu(char *word, char *search_here) { /* * Search for the given word in the search_here string. * * At first occurrence, returns the starting position. If the word was not * found, return NOT_FOUND. Uses a CUDA-enabled graphics card. */ // 1. --- > Prepare the data in the CPU // Lookup the lengths of the words int word_length = strlen(word); int str_length = strlen(search_here); int found_here = NOT_FOUND; // Copy the word to the GPU char *word_tmp; cudaMallocManaged(&word_tmp, word_length * sizeof(char)); strcpy(word_tmp, word); // Copy the search_string to the GPU char *str_tmp; cudaMallocManaged(&str_tmp, str_length * sizeof(char)); strcpy(str_tmp, search_here); // Prepare for the arrival of the result int *found_here_tmp; cudaMallocManaged(&found_here_tmp, str_length * sizeof(int)); for (int i=0; i < str_length; i++) { found_here_tmp[i] = 0; } // 2. --- > Prepare and launch the Kernel // Calculate the total threads to use (one per window) int total_threads = (str_length - word_length) + 1; // Calculate the blocks needed for that int blocks = (total_threads + THREADS_PER_BLOCK-1) / THREADS_PER_BLOCK; printf("Launching %d threads in %d blocks\n", THREADS_PER_BLOCK, blocks); // Launch the kernel find_word_kernel<<<blocks, THREADS_PER_BLOCK>>>(word_tmp, str_tmp, found_here_tmp, str_length); cudaDeviceSynchronize(); // 3. --- > Analyze the result for (int i=0; i<str_length; i++) { if ( found_here_tmp[i] ) { found_here = i; break; } } // 4. ---> Cleanup and return // Free unneeded memory cudaFree(found_here_tmp); cudaFree(word_tmp); cudaFree(str_tmp); return found_here; } // --- find_word_in_gpu
7,087
#include <stdio.h> #define N 64 // Specify a constant value for array length. #define TPB 32 // A scaling function to convert integers 0,1,...,N-1 // to evenly spaced floats ranging from 0 to 1. __device__ float scale(int i, int n) { return ((float)i) / (n - 1); } // Compute the distance between 2 points on a line. __device__ float distance(float x1, float x2) { return sqrt((x2 - x1)*(x2 - x1)); } __global__ void distanceKernel(float *d_out, float ref, int len){ const int i = blockIdx.x * blockDim.x + threadIdx.x; const float x = scale(i, N); d_out[i] = distance(x, ref); printf("i = %2d: dist from %f to %f is %f.\n", i, ref, x, d_out[i]); } int main() { // Create an array of N floats (initialized to 0.0). // We will overwrite these values to store our results. float *d_out; cudaMalloc(&d_out, N*sizeof(float)); // Choose a reference value from which distances are measured. const float ref = 0.5f; /* for loop to scale the index to obtain coordinate value, *compute the distance from the reference point, *and store the result in the corresponding entry in out. */ distanceKernel<<<N/TPB, TPB>>>(d_out, ref, N); cudaFree(d_out); return 0; }
7,088
#include<stdio.h> #include<cuda.h> __global__ void update(int *matrix,int *query,int *row,int *row_ele,int *no_query,int *prev_array,int n,int m,int q) { int id=blockIdx.x*blockDim.x+threadIdx.x; if(id<(m*q)) { int query_no = id/m; int row_no = id%m; if(matrix[row_no*n+row[query_no]-1]==row_ele[query_no]) // Updating if the row element matches { for(int i=0;i<no_query[query_no];i++) { if(query[prev_array[query_no]+i*3+2]==0) { atomicSub(&matrix[row_no*n+query[prev_array[query_no]+i*3]-1] , query[prev_array[query_no]+i*3+1]); } else { atomicAdd(&matrix[row_no*n+query[prev_array[query_no]+i*3]-1] , query[prev_array[query_no]+i*3+1]); } } } } } int main(int argc,char **argv) { int M,N,q; FILE *fpi,*fpo; fpi=fopen(argv[1],"r"); fpo=fopen(argv[2],"w"); fscanf(fpi,"%d %d", &M,&N); int *matrix, *hmatrix; char character;int *row,*row_ele,*drow,*drow_ele; int *query,*no_query,*prev_array,*dquery,*dno_query,*dprev_array; cudaMalloc(&matrix, (M) * (N) * sizeof(int)); hmatrix = (int *)malloc(M * N * sizeof(int)); for (int ii = 0; ii < M; ++ii) { for (int jj = 0; jj < N; ++jj) { fscanf(fpi,"%d",&hmatrix[ii*N+jj]); } } cudaMemcpy(matrix, hmatrix, M * N * sizeof(int), cudaMemcpyHostToDevice); fscanf(fpi,"%d", &q); cudaMalloc(&dquery, 90 * q * sizeof(int)); cudaMalloc(&drow, q * sizeof(int)); cudaMalloc(&drow_ele, q * sizeof(int)); cudaMalloc(&dno_query, q * sizeof(int)); cudaMalloc(&dprev_array, q * sizeof(int)); query = (int *)malloc(90 * q * sizeof(int)); row = (int *)malloc(q * sizeof(int)); row_ele = (int *)malloc(q * sizeof(int)); no_query = (int *)malloc(q * sizeof(int)); prev_array = (int *)malloc(q * sizeof(int)); int prev=0;char c1[50]; // Parsing Queries for (int i = 0; i < q; i++) { fscanf(fpi,"%[^U]s",c1); fscanf(fpi,"%c",&character); fscanf(fpi," %c",&character); fscanf(fpi,"%d %d %d",&row[i],&row_ele[i],&no_query[i]); for(int j=0;j<no_query[i];j++) { fscanf(fpi," %c %d %d %c",&character,&query[prev+(j*3)],&query[prev+(j*3)+1],&character); if(character=='+') query[prev+(j*3)+2]=1; else query[prev+(j*3)+2]=0; } prev_array[i]=prev; prev += no_query[i]*3; } cudaMemcpy(dquery, query, 90 * q * sizeof(int), cudaMemcpyHostToDevice); cudaMemcpy(drow, row, q * sizeof(int), cudaMemcpyHostToDevice); cudaMemcpy(drow_ele, row_ele, q * sizeof(int), cudaMemcpyHostToDevice); cudaMemcpy(dno_query, no_query, q * sizeof(int), cudaMemcpyHostToDevice); cudaMemcpy(dprev_array, prev_array, q * sizeof(int), cudaMemcpyHostToDevice); update<<<3000,1024>>>(matrix,dquery,drow,drow_ele,dno_query,dprev_array,N,M,q); cudaMemcpy(hmatrix, matrix, M * N * sizeof(int), cudaMemcpyDeviceToHost); cudaDeviceSynchronize(); for (int ii = 0; ii < M; ++ii) { for (int jj = 0; jj < N; ++jj) { if(jj==N-1) fprintf(fpo,"%d ",hmatrix[ii*N+jj]); else fprintf(fpo,"%d ",hmatrix[ii*N+jj]); } fprintf(fpo,"\n"); } return 0; }
7,089
#include <iostream> #include <sys/time.h> #define min(a, b) (a < b ? a : b) __device__ unsigned int getIdx(dim3* threads, dim3* blocks) { int x; return threadIdx.x + threadIdx.y * (x = threads->x) + threadIdx.z * (x *= threads->y) + blockIdx.x * (x *= threads->z) + blockIdx.y * (x *= blocks->z) + blockIdx.z * (x *= blocks->y); } __device__ void gpu_bottomUpMerge(double* source, double* dest, long start, long middle, long end) { long i = start; long j = middle; for (long k = start; k < end; k++) { if (i < middle && (j >= end || source[i] < source[j])) { dest[k] = source[i]; i++; } else { dest[k] = source[j]; j++; } } } __global__ void gpu_mergesort(double* source, double* dest, long size, long width, long slices, dim3* threads, dim3* blocks) { unsigned int idx = getIdx(threads, blocks); long start = width*idx*slices, middle, end; for (long slice = 0; slice < slices; slice++) { if (start >= size) break; middle = min(start + (width >> 1), size); end = min(start + width, size); gpu_bottomUpMerge(source, dest, start, middle, end); start += width; } } void mergesort_gpu(double* data, long size, int xThreadPerBlock, int xBlocksPerGrid) { dim3 threadsPerBlock; dim3 blocksPerGrid; threadsPerBlock.x = xThreadPerBlock; threadsPerBlock.y = 1; threadsPerBlock.z = 1; blocksPerGrid.x = xBlocksPerGrid; blocksPerGrid.y = 1; blocksPerGrid.z = 1; double* D_data; double* D_swp; dim3* D_threads; dim3* D_blocks; cudaMalloc((void**) &D_data, size * sizeof(double)); cudaMalloc((void**) &D_swp, size * sizeof(double)); cudaMemcpy(D_data, data, size * sizeof(long), cudaMemcpyHostToDevice); cudaMalloc((void**) &D_threads, sizeof(dim3)); cudaMalloc((void**) &D_blocks, sizeof(dim3)); cudaMemcpy(D_threads, &threadsPerBlock, sizeof(dim3), cudaMemcpyHostToDevice); cudaMemcpy(D_blocks, &blocksPerGrid, sizeof(dim3), cudaMemcpyHostToDevice); double* A = D_data; double* B = D_swp; long nThreads = threadsPerBlock.x * threadsPerBlock.y * threadsPerBlock.z * blocksPerGrid.x * blocksPerGrid.y * blocksPerGrid.z; for (int width = 2; width < (size << 1); width <<= 1) { long slices = size / ((nThreads) * width) + 1; gpu_mergesort<<<blocksPerGrid, threadsPerBlock>>>(A, B, size, width, slices, D_threads, D_blocks); A = A == D_data ? D_swp : D_data; B = B == D_data ? D_swp : D_data; } cudaMemcpy(data, A, size * sizeof(double), cudaMemcpyDeviceToHost); cudaFree(A); cudaFree(B); }
7,090
#include <iostream> #include <cmath> #include <cstdio> __constant__ int device_n; __global__ void add(int n, float* x, float* y) { int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; // if (threadIdx.x == 0) { // printf("%d %d %d\n", blockIdx.x, gridDim.x, blockDim.x); // } for (int i = index; i < n; i += stride) { y[i] = x[i] + y[i]; } } int main() { int N = 1 << 28; size_t size = N * sizeof(float); float *h_x = (float*)malloc(size); float *h_y = (float*)malloc(size); float *d_x, *d_y; cudaMalloc(&d_x, size); cudaMalloc(&d_y, size); for (int i = 0; i < N; ++i) { h_x[i] = 1.0f; h_y[i] = 2.0f; } cudaMemcpy(d_x, h_x, size, cudaMemcpyHostToDevice); cudaMemcpy(d_y, h_y, size, cudaMemcpyHostToDevice); int blockSize = 256; int numBlocks = (N + blockSize - 1) / blockSize; add<<<numBlocks, blockSize>>>(N, d_x, d_y); // cudaDeviceSynchronize(); cudaMemcpy(h_y, d_y, size, cudaMemcpyDeviceToHost); float maxError = 0.0f; for (int i = 0; i < N; i++) { maxError = fmax(maxError, fabs(h_y[i]-3.0f)); } std::cout << "Max error: " << maxError << std::endl; cudaFree(d_x); cudaFree(d_y); free(h_x); free(h_y); return 0; }
7,091
#include "includes.h" __global__ void mult2Matrix(float *M, float *N, float *P) { __shared__ int shared_m_tile[TILE_WIDTH][TILE_WIDTH]; __shared__ int shared_n_tile[TILE_WIDTH][TILE_WIDTH]; int tx = threadIdx.x; int ty = threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int row = blockIdx.y * blockDim.y + threadIdx.y; //check if thread directly maps to the dimensions of the resulting matrix if (row < WIDTH && col < WIDTH) { float result = 0; int k; int phase; //calculate P matrix indexes in phases. Each phase shares //TILE_SIZE * TILE_SIZE data copied to the shared matrix M //and matrix N. for (phase = 0; phase <= WIDTH / TILE_WIDTH; phase++) { shared_m_tile[ty][tx] = M[row * WIDTH + phase * TILE_WIDTH + tx]; shared_n_tile[ty][tx] = N[(phase * TILE_WIDTH + ty) * WIDTH + col]; __syncthreads(); for (k = 0; k < TILE_WIDTH; k++) { if (k + (phase * TILE_WIDTH) < WIDTH) { result += (shared_m_tile[ty][k] * shared_n_tile[k][tx]); } } __syncthreads(); } P[row * WIDTH + col] = result; } }
7,092
// example of using CUDA streams #include <stdio.h> #include <stdlib.h> #include <iostream> #include <chrono> #include <math.h> #include <fstream> using namespace std::chrono; #define BLOCK_SIZE 256 void initWithNoStream(float num, float *a, int N) { for(int i = 0; i < N; ++i) { a[i] = num; } } __global__ void reduceVector(float *g_data, int N) { __shared__ float sdata[2*BLOCK_SIZE]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x * 2 * blockDim.x + threadIdx.x; unsigned int gridStride = 2 * blockDim.x * gridDim.x; sdata[tid] = 0; while (i < N) { sdata[tid] += g_data[i] + g_data[i + blockDim.x]; i += gridStride; } for(unsigned j = blockDim.x / 2; j > 32; j >>= 1) { __syncthreads(); if (tid < j) { sdata[tid] += sdata[tid + j]; } } //printf("tid %d i %d blockIdx.x %d sdata[%d] %f\n", tid, i, blockIdx.x, tid, sdata[tid]); __syncthreads(); // if(tid < 32) { sdata[tid] += sdata[tid + 32]; sdata[tid] += sdata[tid + 16]; sdata[tid] += sdata[tid + 8]; sdata[tid] += sdata[tid + 4]; sdata[tid] += sdata[tid + 2]; sdata[tid] += sdata[tid + 1]; } if (tid == 0) g_data[blockIdx.x] = sdata[0]; } __global__ void reduceVector_naive(float *g_data, int N) { __shared__ float sdata[2*BLOCK_SIZE]; unsigned int tid = threadIdx.x; unsigned int i = blockIdx.x * 2 * blockDim.x + threadIdx.x; sdata[tid] = g_data[i]; sdata[blockDim.x+tid] = g_data[i + blockDim.x]; for(unsigned int j = 1; j <= blockDim.x; j *= 2) { __syncthreads(); if (tid % j == 0) { sdata[2*tid] += sdata[2*tid + j]; } } __syncthreads(); if (tid == 0) g_data[blockIdx.x] = sdata[tid]; } int main(int argc, char** argv) { int in_s = 14; char* pEnd; if (!in_s && argc < 2) { printf("Podaj liczbe która będzie przesunięciem 2 które jest rozmiarem\n"); return 1; } else if(!in_s) { in_s = strtol(argv[1], &pEnd, 10); } int deviceId; int numberOfSMs; cudaGetDevice(&deviceId); cudaDeviceGetAttribute(&numberOfSMs, cudaDevAttrMultiProcessorCount, deviceId); std::ofstream host_file, device_file, device_naive_file; host_file.open ("reduction_host.txt"); device_file.open ("reduction_device.txt"); device_naive_file.open ("reduction__device_naive.txt"); for(int in_s = 14; in_s < 27; in_s++) { const int N = 2<<in_s; host_file << N; device_file << N; device_naive_file << N; size_t size = N * sizeof(float); size_t threads; size_t blocks; threads = BLOCK_SIZE; blocks = N / threads / 2; printf("threads %d blocks %d\n", threads, blocks); cudaError_t addVectorsErr; cudaError_t asyncErr; for(int k = 0; k < 10; k++) { float *a; float *b; float *c; cudaMallocManaged(&b, size); cudaMallocManaged(&a, size); cudaMallocManaged(&c, size); initWithNoStream(1, a, N); initWithNoStream(1, b, N); initWithNoStream(1, c, N); cudaMemPrefetchAsync(a, size, deviceId); cudaMemPrefetchAsync(b, size, deviceId); asyncErr = cudaDeviceSynchronize(); if(asyncErr != cudaSuccess) printf("Device sync Error: %s\n", cudaGetErrorString(asyncErr)); auto start = high_resolution_clock::now(); reduceVector<<<32 * numberOfSMs, threads>>>(a, N); cudaMemPrefetchAsync(a, size, cudaCpuDeviceId); asyncErr = cudaDeviceSynchronize(); if(asyncErr != cudaSuccess) printf("Device sync Error: %s\n", cudaGetErrorString(asyncErr)); for(int i = 1; i < 32 * numberOfSMs; i++) { a[0] += a[i]; } auto stop = high_resolution_clock::now(); auto duration = duration_cast<microseconds>(stop - start); std::cout<< "Reduction time in us: " << duration.count()<< std::endl; device_file << "\t" << duration.count(); addVectorsErr = cudaGetLastError(); if(addVectorsErr != cudaSuccess) printf("Reduction Error: %s\n", cudaGetErrorString(addVectorsErr)); start = high_resolution_clock::now(); reduceVector_naive<<<blocks, threads>>>(b, N); cudaMemPrefetchAsync(b, size, cudaCpuDeviceId); asyncErr = cudaDeviceSynchronize(); if(asyncErr != cudaSuccess) printf("Device sync Error: %s\n", cudaGetErrorString(asyncErr)); for(int i = 1; i < blocks; i++) { b[0] += b[i]; } stop = high_resolution_clock::now(); duration = duration_cast<microseconds>(stop - start); std::cout<< "Reduction (naive) time in us: " << duration.count()<< std::endl; device_naive_file << "\t" << duration.count(); addVectorsErr = cudaGetLastError(); if(addVectorsErr != cudaSuccess) printf("Reduction Error: %s\n", cudaGetErrorString(addVectorsErr)); asyncErr = cudaDeviceSynchronize(); if(asyncErr != cudaSuccess) printf("Device sync Error: %s\n", cudaGetErrorString(asyncErr)); double result = 0; start = high_resolution_clock::now(); for(long i = 0; i < N; i++) { result += c[i]; } stop = high_resolution_clock::now(); duration = duration_cast<microseconds>(stop - start); std::cout<< "Cpu add rest time in us: " << duration.count() << std::endl; host_file << "\t" << duration.count(); printf("%f %f %f %d\n", a[0], b[0], result, N); cudaFree(a); cudaFree(b); cudaFree(c); } } }
7,093
#include "includes.h" namespace ann { // CUDA2 } __global__ void kernel(int n, float *arr){ volatile int idx = threadIdx.x + blockDim.x*blockIdx.x; if(idx >= n) return; arr[idx] *= 2.0f; }
7,094
// Template file for the OpenCL Assignment 4 #include <stdio.h> #include <stdlib.h> #include <CL/cl.h> #include <math.h> #include <sys/time.h> #define NUM_PARTICLES 10000 #define NUM_ITERATIONS 1000 #define BLOCK_SIZE 64 #define error 1e-6 // This is a macro for checking the error variable:>. #define CHK_ERROR(err) if (err != CL_SUCCESS) fprintf(stderr,"Error: %s\n",clGetErrorString(err)); // A errorCode to string converter (forward declaration) const char* clGetErrorString(int); const char *mykernel = "typedef struct{ \n" "float position[3]; \n" "float velocity[3]; \n" "}particle; \n" "__kernel \n" "void kernel_upload( \n" " const int iter, \n" " const int nump, \n" " __global particle* X) \n" "{int index = get_global_id(0); \n" "if(index < nump) { \n" " X[index].velocity[0] = (3*index + iter) % nump; \n" " X[index].velocity[1] = (4*index + iter) % nump; \n" " X[index].velocity[2] = (5*index + iter) % nump; \n" " X[index].position[0] = X[index].position[0] + X[index].velocity[0]; \n" " X[index].position[1] = X[index].position[1] + X[index].velocity[1]; \n" " X[index].position[2] = X[index].position[2] + X[index].velocity[2]; \n" "} \n" "} \n"; typedef struct{ float position[3]; float velocity[3]; }particle; double cpuSecond() { struct timeval tp; gettimeofday(&tp,NULL); return ((double)tp.tv_sec + (double)tp.tv_usec*1.e-6); } void init_Array(particle *particulas){ for(int i = 0; i < NUM_PARTICLES; i++){ particulas[i].position[0] = rand() % 1000; particulas[i].position[1] = rand() % 1000; particulas[i].position[2] = rand() % 1000; particulas[i].velocity[0] = rand() % 1000; particulas[i].velocity[1] = rand() % 1000; particulas[i].velocity[2] = rand() % 1000; } } int main(int argc, char **argv) { //All the variables used particle X[NUM_PARTICLES], results[NUM_PARTICLES]; float array = NUM_PARTICLES * sizeof(particle); int count = NUM_PARTICLES; bool correct = true; int i, j; cl_platform_id * platforms; cl_uint n_platform; // Find OpenCL Platforms cl_int err = clGetPlatformIDs(0, NULL, &n_platform); CHK_ERROR(err); platforms = (cl_platform_id *) malloc(sizeof(cl_platform_id)*n_platform); err = clGetPlatformIDs(n_platform, platforms, NULL); CHK_ERROR(err); // Find and sort devices cl_device_id *device_list; cl_uint n_devices; err = clGetDeviceIDs( platforms[0], CL_DEVICE_TYPE_GPU, 0,NULL, &n_devices);CHK_ERROR(err); device_list = (cl_device_id *) malloc(sizeof(cl_device_id)*n_devices); err = clGetDeviceIDs( platforms[0],CL_DEVICE_TYPE_GPU, n_devices, device_list, NULL);CHK_ERROR(err); // Create and initialize an OpenCL context cl_context context = clCreateContext( NULL, n_devices, device_list, NULL, NULL, &err);CHK_ERROR(err); if (!context) { printf("Error: Failed to create a compute context!\n"); return EXIT_FAILURE; } // Create a command queue cl_command_queue cmd_queue = clCreateCommandQueue(context, device_list[0], 0, &err);CHK_ERROR(err); if (!cmd_queue) { printf("Error: Failed to create a command queue!\n"); return EXIT_FAILURE; } /* Insert your own code here */ //program cl_program program = clCreateProgramWithSource(context, 1, (const char **)&mykernel, NULL, &err);CHK_ERROR(err); //Initialize values of the arrays init_Array(X); //Array on GPU part cl_mem dx = clCreateBuffer(context, CL_MEM_READ_WRITE, array, NULL, &err);CHK_ERROR(err); //Copy the values of X in dx err = clEnqueueWriteBuffer(cmd_queue, dx, CL_TRUE, 0, array, X, 0, NULL, NULL);CHK_ERROR(err); //Cpu part double start = cpuSecond(); for(j = 0; j < NUM_ITERATIONS; j++) { for(i = 0; i < NUM_PARTICLES; i++){ X[i].velocity[0] = (3*i + j) % NUM_PARTICLES; X[i].velocity[1] = (4*i + j) % NUM_PARTICLES; X[i].velocity[2] = (5*i + j) % NUM_PARTICLES; X[i].position[0] = X[i].position[0] + X[i].velocity[0]; X[i].position[1] = X[i].position[1] + X[i].velocity[1]; X[i].position[2] = X[i].position[2] + X[i].velocity[2]; } } double totalCpu = cpuSecond() - start; printf("Computing SAXPY on the CPU... Done\n"); //build the program err = clBuildProgram(program, 1, device_list, NULL, NULL, NULL); if (err != CL_SUCCESS){ size_t len; char buffer[2048]; clGetProgramBuildInfo(program, device_list[0], CL_PROGRAM_BUILD_LOG, sizeof(buffer), buffer, &len); fprintf(stderr, "Build error: %s\n", buffer); return 0; } //Create the kernel function cl_kernel kernel = clCreateKernel(program, "kernel_upload", &err);CHK_ERROR(err); //More argument, number of workitems we are going to use unsigned int mult = BLOCK_SIZE; unsigned int size = BLOCK_SIZE; while(mult < NUM_PARTICLES){ mult = mult * 2; } size_t n_workitem[1] = {mult}; size_t workgroup_size[1] = {size}; err = clSetKernelArg(kernel, 1, sizeof(int), (void*) &count);CHK_ERROR(err); err = clSetKernelArg(kernel, 2, sizeof(cl_mem), (void*) &dx);CHK_ERROR(err); double st = cpuSecond(); for(i = 0; i < NUM_ITERATIONS; i++){ //Arguments for the Kernel function err = clSetKernelArg(kernel, 0, sizeof(int), (void*) &i);CHK_ERROR(err); //Launch kernel err = clEnqueueNDRangeKernel(cmd_queue, kernel, 1, NULL, n_workitem, workgroup_size, 0, NULL, NULL);CHK_ERROR(err); //Wait for everything to finish err = clFlush(cmd_queue); err = clFinish(cmd_queue); } err = clEnqueueReadBuffer(cmd_queue, dx, CL_TRUE, 0, array, results, 0, NULL, NULL);CHK_ERROR(err); double timeGpu = cpuSecond() - st; printf("Computing SACY on the GPU... Done\n"); for(int i = 0; i < NUM_PARTICLES; i++){ for(int dim = 0; dim < 3; dim++){ if(abs(results[i].position[dim] - X[i].position[dim]) > error ){ correct = false; printf("Error en %d i en dim %d, resultado %f i %f\n",i,dim,results[i].position[1],X[i].position[1]); break; } } if(!correct) {break;} } if (correct) { printf("Comparing the output for each implementation... Correct!\n"); } else { printf("Comparing the output for each implementation... Incorrect!\n"); } printf("NUM_PARTICLES: %d\n", NUM_PARTICLES); printf("BLOCK_SIZE: %d\n", BLOCK_SIZE); printf("NUM_ITERATIONS: %d\n", NUM_ITERATIONS); printf("Execution time on CPU: %f\n", totalCpu); printf("Execution time on GPU: %f\n", timeGpu); // Finally, release all that we have allocated. clReleaseMemObject(dx);CHK_ERROR(err); clReleaseProgram(program);CHK_ERROR(err); clReleaseKernel(kernel);CHK_ERROR(err); err = clReleaseCommandQueue(cmd_queue);CHK_ERROR(err); err = clReleaseContext(context);CHK_ERROR(err); free(platforms); free(device_list); return 0; } // The source for this particular version is from: https://stackoverflow.com/questions/24326432/convenient-way-to-show-opencl-error-codes const char* clGetErrorString(int errorCode) { switch (errorCode) { case 0: return "CL_SUCCESS"; case -1: return "CL_DEVICE_NOT_FOUND"; case -2: return "CL_DEVICE_NOT_AVAILABLE"; case -3: return "CL_COMPILER_NOT_AVAILABLE"; case -4: return "CL_MEM_OBJECT_ALLOCATION_FAILURE"; case -5: return "CL_OUT_OF_RESOURCES"; case -6: return "CL_OUT_OF_HOST_MEMORY"; case -7: return "CL_PROFILING_INFO_NOT_AVAILABLE"; case -8: return "CL_MEM_COPY_OVERLAP"; case -9: return "CL_IMAGE_FORMAT_MISMATCH"; case -10: return "CL_IMAGE_FORMAT_NOT_SUPPORTED"; case -12: return "CL_MAP_FAILURE"; case -13: return "CL_MISALIGNED_SUB_BUFFER_OFFSET"; case -14: return "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST"; case -15: return "CL_COMPILE_PROGRAM_FAILURE"; case -16: return "CL_LINKER_NOT_AVAILABLE"; case -17: return "CL_LINK_PROGRAM_FAILURE"; case -18: return "CL_DEVICE_PARTITION_FAILED"; case -19: return "CL_KERNEL_ARG_INFO_NOT_AVAILABLE"; case -30: return "CL_INVALID_VALUE"; case -31: return "CL_INVALID_DEVICE_TYPE"; case -32: return "CL_INVALID_PLATFORM"; case -33: return "CL_INVALID_DEVICE"; case -34: return "CL_INVALID_CONTEXT"; case -35: return "CL_INVALID_QUEUE_PROPERTIES"; case -36: return "CL_INVALID_COMMAND_QUEUE"; case -37: return "CL_INVALID_HOST_PTR"; case -38: return "CL_INVALID_MEM_OBJECT"; case -39: return "CL_INVALID_IMAGE_FORMAT_DESCRIPTOR"; case -40: return "CL_INVALID_IMAGE_SIZE"; case -41: return "CL_INVALID_SAMPLER"; case -42: return "CL_INVALID_BINARY"; case -43: return "CL_INVALID_BUILD_OPTIONS"; case -44: return "CL_INVALID_PROGRAM"; case -45: return "CL_INVALID_PROGRAM_EXECUTABLE"; case -46: return "CL_INVALID_KERNEL_NAME"; case -47: return "CL_INVALID_KERNEL_DEFINITION"; case -48: return "CL_INVALID_KERNEL"; case -49: return "CL_INVALID_ARG_INDEX"; case -50: return "CL_INVALID_ARG_VALUE"; case -51: return "CL_INVALID_ARG_SIZE"; case -52: return "CL_INVALID_KERNEL_ARGS"; case -53: return "CL_INVALID_WORK_DIMENSION"; case -54: return "CL_INVALID_WORK_GROUP_SIZE"; case -55: return "CL_INVALID_WORK_ITEM_SIZE"; case -56: return "CL_INVALID_GLOBAL_OFFSET"; case -57: return "CL_INVALID_EVENT_WAIT_LIST"; case -58: return "CL_INVALID_EVENT"; case -59: return "CL_INVALID_OPERATION"; case -60: return "CL_INVALID_GL_OBJECT"; case -61: return "CL_INVALID_BUFFER_SIZE"; case -62: return "CL_INVALID_MIP_LEVEL"; case -63: return "CL_INVALID_GLOBAL_WORK_SIZE"; case -64: return "CL_INVALID_PROPERTY"; case -65: return "CL_INVALID_IMAGE_DESCRIPTOR"; case -66: return "CL_INVALID_COMPILER_OPTIONS"; case -67: return "CL_INVALID_LINKER_OPTIONS"; case -68: return "CL_INVALID_DEVICE_PARTITION_COUNT"; case -69: return "CL_INVALID_PIPE_SIZE"; case -70: return "CL_INVALID_DEVICE_QUEUE"; case -71: return "CL_INVALID_SPEC_ID"; case -72: return "CL_MAX_SIZE_RESTRICTION_EXCEEDED"; case -1002: return "CL_INVALID_D3D10_DEVICE_KHR"; case -1003: return "CL_INVALID_D3D10_RESOURCE_KHR"; case -1004: return "CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR"; case -1005: return "CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR"; case -1006: return "CL_INVALID_D3D11_DEVICE_KHR"; case -1007: return "CL_INVALID_D3D11_RESOURCE_KHR"; case -1008: return "CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR"; case -1009: return "CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR"; case -1010: return "CL_INVALID_DX9_MEDIA_ADAPTER_KHR"; case -1011: return "CL_INVALID_DX9_MEDIA_SURFACE_KHR"; case -1012: return "CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR"; case -1013: return "CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR"; case -1093: return "CL_INVALID_EGL_OBJECT_KHR"; case -1092: return "CL_EGL_RESOURCE_NOT_ACQUIRED_KHR"; case -1001: return "CL_PLATFORM_NOT_FOUND_KHR"; case -1057: return "CL_DEVICE_PARTITION_FAILED_EXT"; case -1058: return "CL_INVALID_PARTITION_COUNT_EXT"; case -1059: return "CL_INVALID_PARTITION_NAME_EXT"; case -1094: return "CL_INVALID_ACCELERATOR_INTEL"; case -1095: return "CL_INVALID_ACCELERATOR_TYPE_INTEL"; case -1096: return "CL_INVALID_ACCELERATOR_DESCRIPTOR_INTEL"; case -1097: return "CL_ACCELERATOR_TYPE_NOT_SUPPORTED_INTEL"; case -1000: return "CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR"; case -1098: return "CL_INVALID_VA_API_MEDIA_ADAPTER_INTEL"; case -1099: return "CL_INVALID_VA_API_MEDIA_SURFACE_INTEL"; case -1100: return "CL_VA_API_MEDIA_SURFACE_ALREADY_ACQUIRED_INTEL"; case -1101: return "CL_VA_API_MEDIA_SURFACE_NOT_ACQUIRED_INTEL"; default: return "CL_UNKNOWN_ERROR"; } }
7,095
#include <cstdlib> #include <cstdio> #include <cmath> #include <fstream> #include <vector> #include <iostream> #include <cassert> #define size 6 #define MAX_RAY_DEPTH 3 const unsigned int window_width = 512; const unsigned int window_height = 512; struct Sphere{ float3 color; float radius; float3 center; float3 emissionColor; float transparency; float reflection; __device__ bool hit(float3 origin, float3 direct, float *t0, float *t1) { float3 l = make_float3(center.x - origin.x, center.y-origin.y, center.z-origin.z); float tca = l.x*direct.x + l.y*direct.y+ l.z*direct.z; if(tca <0) return false; float d2 = l.x*l.x + l.y*l.y + l.z*l.z - tca*tca; if(d2 > radius*radius) return false; float thc = sqrtf(radius*radius - d2); *t0 = tca -thc; *t1 = tca +thc; return true; } }; __constant__ Sphere s[size]; __device__ void normalize(float3 &f) { float temp = sqrtf(f.x*f.x + f.y*f.y + f.z*f.z); f.x = f.x/temp; f.y = f.y/temp; f.z = f.z/temp; } __device__ float mix(float a, float b, float mix) { return b * mix + a * (1 - mix); } __device__ float3 trace(float3 origin, float3 direct, int depth) { float dist = INFINITY; int intersect_object = -1; for(unsigned i=0; i<size; i++){ float t0 = INFINITY, t1 = INFINITY; if(s[i].hit(origin, direct, &t0, &t1)) { if(t0<0) t0 = t1; if(t0< dist){ dist = t0; intersect_object = i; } } } if(intersect_object == -1){ float3 result = make_float3(2, 2, 2); return result; } float3 surfaceColor = make_float3(0,0,0); float3 phit = make_float3(origin.x + direct.x*dist,origin.y + direct.y*dist,origin.z + direct.z*dist); float3 nhit = make_float3(phit.x-s[intersect_object].center.x, phit.y-s[intersect_object].center.y, phit.z-s[intersect_object].center.z); normalize(nhit); float bias = 1e-4; bool inside = false; if( (direct.x*nhit.x+direct.y*nhit.y+direct.z*nhit.z) > 0){ nhit.x = (-1)*nhit.x; nhit.y = (-1)*nhit.y; nhit.z = (-1)*nhit.z; inside = true; } if((s[intersect_object].transparency > 0 || s[intersect_object].reflection > 0 ) && depth < MAX_RAY_DEPTH) { float tmp = direct.x*nhit.x + direct.y*nhit.y + direct.z*nhit.z; float facingratio = (-1)*tmp; float fresneleffect = mix(pow(1-facingratio, 3), 1, 0.1); float3 refldir = make_float3(direct.x - 2*tmp*nhit.x, direct.y - 2*tmp*nhit.y, direct.z - 2*tmp*nhit.z); normalize(refldir); float3 newReflRay = make_float3(phit.x + nhit.x*bias, phit.y + nhit.y*bias, phit.z + nhit.z*bias); float3 reflection = trace(newReflRay, refldir, depth+1); float3 refraction = make_float3(0,0,0); if(s[intersect_object].transparency){ float ior = 1.1, eta; if(inside) eta = ior; else eta = 1/ior; float cosi = (-1)*(nhit.x*direct.x + nhit.y*direct.y + nhit.z*direct.z); float k = 1 -eta*eta*(1-cosi*cosi); float3 refrdir = make_float3(direct.x*eta+nhit.x*(eta*cosi-sqrt(k)), direct.y*eta+nhit.y*(eta*cosi-sqrt(k)), direct.z*eta+nhit.z*(eta*cosi-sqrt(k))); normalize(refrdir); float3 newRefrRay = make_float3(phit.x-bias*nhit.x, phit.y-bias*nhit.y, phit.z-bias*nhit.z); refraction = trace(newRefrRay, refrdir, depth+1); } surfaceColor.x = (reflection.x * fresneleffect + refraction.x * (1 - fresneleffect) * s[intersect_object].transparency )*s[intersect_object].color.x; surfaceColor.y = (reflection.y * fresneleffect + refraction.y * (1 - fresneleffect) * s[intersect_object].transparency )*s[intersect_object].color.y; surfaceColor.z = (reflection.z * fresneleffect + refraction.z * (1 - fresneleffect) * s[intersect_object].transparency )*s[intersect_object].color.z; } else{ // diffuse for(unsigned i=0; i<size; i++){ if(s[i].emissionColor.x>0){ float3 transmission = make_float3(1,1,1); float3 lightDirection = make_float3(s[i].center.x-phit.x, s[i].center.y-phit.y, s[i].center.z-phit.z); normalize(lightDirection); for(unsigned j=0; j< size; j++){ if(i!=j){ float t0, t1; float3 newRay = make_float3(phit.x+bias*nhit.x, phit.y+bias*nhit.y, phit.z+bias*nhit.z); if(s[j].hit(newRay, lightDirection, &t0, &t1)){ transmission.x = 0; transmission.y=0; transmission.z=0; break; } } } float tmp = nhit.x*lightDirection.x+nhit.y*lightDirection.y+nhit.z*lightDirection.z; if(tmp<0) tmp = 0; surfaceColor.x = surfaceColor.x+ s[intersect_object].color.x*transmission.x*tmp*s[i].emissionColor.x; surfaceColor.y = surfaceColor.y+ s[intersect_object].color.y*transmission.y*tmp*s[i].emissionColor.y; surfaceColor.z = surfaceColor.z+ s[intersect_object].color.z*transmission.z*tmp*s[i].emissionColor.z; } } } float3 result2 = make_float3(surfaceColor.x+s[intersect_object].emissionColor.x, surfaceColor.y+s[intersect_object].emissionColor.y, surfaceColor.z+s[intersect_object].emissionColor.z); return result2; } __global__ void tracer_kernel(float3 *image) { int x = blockIdx.x*blockDim.x + threadIdx.x; int y = blockIdx.y*blockDim.y + threadIdx.y; if(x < window_width && y < window_height) { //----------compute ray----------------/ float window_ratio = window_width / float(window_height); float fov = 90; float angle = tan(fov * 0.5 * M_PI / 180.0); float u = (2.0 * (x+0.5)/(float)window_width -1) * angle * window_ratio; float v = (1 - 2.0 * (y+0.5) / (float) window_height) * angle; float3 origin = make_float3(0,0,0); float3 direct = make_float3(u,v,-1); normalize(direct); //----------compute ray--------------// image[x+y*window_height] = trace(origin, direct, 0); } } void init_kernel() { Sphere *temp_s = (Sphere*)malloc(sizeof(Sphere)*size); temp_s[0].center = make_float3(0, 0, -20); temp_s[0].radius = 4; temp_s[0].color = make_float3(1.00, 0.32, 0.36); temp_s[0].emissionColor = make_float3(0,0,0); temp_s[0].transparency = 0.5; temp_s[0].reflection = 1; temp_s[1].center = make_float3(0, 20, -30); temp_s[1].radius = 3; temp_s[1].color = make_float3(0, 0, 0); temp_s[1].emissionColor = make_float3(3, 3, 3); temp_s[1].transparency = 0; temp_s[1].reflection = 0; temp_s[2].center = make_float3(0, -10004, -20); temp_s[2].radius = 10000; temp_s[2].color = make_float3(0.2, 0.2, 0.2); temp_s[2].emissionColor = make_float3(0, 0, 0); temp_s[2].transparency = 0; temp_s[2].reflection = 0; temp_s[3].center = make_float3(5, -1, -15); temp_s[3].radius = 2; temp_s[3].color = make_float3(0.9, 0.76, 0.46); temp_s[3].emissionColor = make_float3(0, 0, 0); temp_s[3].transparency = 0; temp_s[3].reflection = 1; temp_s[4].center = make_float3(5, 0, -25); temp_s[4].radius = 3; temp_s[4].color = make_float3(0.65, 0.77, 0.97); temp_s[4].emissionColor = make_float3(0, 0, 0); temp_s[4].transparency = 0; temp_s[4].reflection = 1; temp_s[5].center = make_float3(-5.5, -0, -15); temp_s[5].radius = 3; temp_s[5].color = make_float3(0.9, 0.9, 0.9); temp_s[5].emissionColor = make_float3(0, 0, 0); temp_s[5].transparency = 0; temp_s[5].reflection = 1; for(int i=0; i<size; i++){ printf("x,y,z: %f, %f, %f, radius: %f\n", temp_s[i].center.x, temp_s[i].center.y,temp_s[i].center.z,temp_s[i].radius); } size_t sz = size*sizeof(Sphere); cudaMemcpyToSymbol(s, temp_s, sz, size_t(0), cudaMemcpyHostToDevice); free(temp_s); } int main(void) { init_kernel(); float3 *image; cudaMalloc((void **)&image, sizeof(float3)*window_width*window_height); dim3 block(8,8,1); dim3 grid(window_width / block.x, window_height / block.y, 1); tracer_kernel<<<grid, block>>>(image); cudaDeviceSynchronize(); float3 h_image[window_width*window_height]; cudaMemcpy(&h_image[0], image, sizeof(float3)*window_width*window_height, cudaMemcpyDeviceToHost); std::ofstream ofs("./yuxin.ppm", std::ios::out | std::ios::binary); ofs << "P6\n" << window_width << " " << window_height << "\n255\n"; for (unsigned i = 0; i < window_width * window_height; ++i) { ofs << (unsigned char)(std::min(float(1), h_image[i].x) *255) << (unsigned char)(std::min(float(1), h_image[i].y) *255) << (unsigned char)(std::min(float(1), h_image[i].z) *255); } ofs.close(); }
7,096
#include "test.cuh" template <class T> Test<T>::Test() { this->a = 1; this->b = 1; } template <class T> int Test<T>::sum(int a, int b) { return a + b; }
7,097
#include "device_launch_parameters.h" #include <iostream> #include <stdio.h> #include <cuda_runtime.h> #include <time.h> using namespace std; #define eps 1e-4 __global__ void accumulate(float *da, float* ans_device, int N){ int bx = blockIdx.x; int tx = threadIdx.x; int idx = bx * blockDim.x + tx; //printf("%d\n", idx); for(int stride = N / 2; stride > 0; stride >>= 1){ if(idx < stride){ da[idx] = da[idx] + da[idx + stride]; } __syncthreads(); } if(idx == 0){ ans_device[0] = da[idx]; //printf("ans 0: %f\n", ans_device[0]); } } float accumulate_cpu(float *da, int size){ if(size == 1) return da[0]; int newsize = size / 2; int stride = newsize; for(int i = 0; i < newsize; i++){ da[i] = da[i] + da[i + stride]; } if(size % 2 == 1){ da[0] = da[0] + da[size - 1]; } else{ ; } return accumulate_cpu(da, newsize); } void check(float *ha, float *ans_host, int N){ float sum = 0; //cout<<sum<<' '<<ans_host[0]<<endl; for(int i = 0; i < N; i++){ sum += ha[i]; } if(sum == ans_host[0]){ cout<<"Nice ! Equal !!!"<<endl; } else{ cout<<"Bad ! Not Equal !"<<endl; } } int main(){ int N = 1<<8; size_t size = N * sizeof(float); float *ha = (float*)malloc(size); float *ans_host = (float*)malloc(1*sizeof(float)); for(int i = 0; i < N; i++) ha[i] = 1; //float ans = accumulate_cpu(ha, N); //cout<<ans<<endl; float *da = NULL; float *ans_device = NULL; cudaMalloc((void**)&da, size); cudaMalloc((void**)&ans_device, 1*sizeof(float)); cudaMemcpy(da, ha, size, cudaMemcpyHostToDevice); //dim3 threadPerBlock(N); //dim3 blockPerGrid(1); dim3 threadPerBlock(32); dim3 blockPerGrid((N + threadPerBlock.x - 1) / threadPerBlock.x); accumulate<<<blockPerGrid, threadPerBlock>>> (da, ans_device, N); cudaDeviceSynchronize(); cudaMemcpy(ans_host, ans_device, 1*sizeof(float), cudaMemcpyDeviceToHost); check(ha, ans_host, N); free(ans_host); free(ha); cudaFree(ans_device); cudaFree(da); return 0; }
7,098
#ifdef _INTELLISENSE_ void __syncthreads(); #endif #include <stdio.h> #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <device_functions.h> #define DIMBLOCKX 32 template<class T> void print_vector(T* v, unsigned s) { for (unsigned i = 0; i < s; i++) { std::cout << v[i] << " "; } std::cout << "\n"; } __global__ void SumaColMatrizKernel(int M, float* Md, float* Nd) { __shared__ float Nds[DIMBLOCKX]; float Pvalue = 0; int columna = blockIdx.x; int pasos = M / blockDim.x; int posIni = columna * M + threadIdx.x * pasos; for (int k = 0; k < pasos; ++k) { Pvalue = Pvalue + Md[posIni + k]; } Nds[threadIdx.x] = Pvalue; __syncthreads(); if (threadIdx.x == 0) { for (int i = 1; i < blockDim.x; ++i) { Nds[0] = Nds[0] + Nds[i]; } Nd[blockIdx.x] = Nds[0]; } } void SumaColMatriz(int M, int N, int* Mh, int* Nh) { int size = M * N * sizeof(float), size2 = N * sizeof(float); float* Md, * Nd; // Allocate en device cudaMalloc(&Md, size); cudaMalloc(&Nd, size2); // Inicializo matrices en el device // Inicializo matrices en el device cudaMemcpy(Md, Mh, size, cudaMemcpyHostToDevice); cudaMemset(Nd, 0, size2); // Invocar el kernel que suma en GPU // configuracin de la ejecucin int chunk = 32; dim3 tamGrid(N, 1); //Grid dimensin dim3 tamBlock(M / chunk,1, 1); //Block dimensin // lanzamiento del kernel SumaColMatrizKernel <<<tamGrid, tamBlock >>> (M, Md, Nd); // Traer resultado; cudaMemcpy(Nh, Nd, size2, cudaMemcpyDeviceToHost); // Free matrices en device } int main() { int M = 32; int N = 64; int* Mh = new int[M * N]; int* Rh = new int[N]; for (int i = 0; i < M; i++) { for (int j = 0; j < N; j++) { Mh[(i * N) + j] = j; } } SumaColMatriz(M, N, Mh, Rh); print_vector(Rh, N); delete[] Mh; delete[] Rh; return 0; }
7,099
#include <stdio.h> #ifndef UNABLE_LOG #define elog(...) fprintf(stderr, __VA_ARGS__) #else #define elog(...) ; #endif #define exit_failure(...) \ do \ { \ printf(__VA_ARGS__); \ exit(EXIT_FAILURE); \ } while (0) #define CUDA_CHECK(call) \ do \ { \ const cudaError_t e = call; \ if (e != cudaSuccess) \ exit_failure("Error: %s:%d code:%d, reason: %s\n", __FILE__, \ __LINE__, e, cudaGetErrorString(e)); \ } while (0) __global__ void kernel(int *ptr, int *plan) { plan[threadIdx.x] = ptr[threadIdx.x] * 10; } __host__ static void * cudaPalloc(size_t size) { void *ptr; elog("palloc size=%zu\n", size); CUDA_CHECK(cudaMalloc(&ptr, size)); return ptr; } __host__ static void cudaPfree(void *ptr) { CUDA_CHECK(cudaFree(ptr)); } #define SIZE (n * sizeof(int)) int main(void) { int n = 16; int ar[123456]; int plan[124356]; for (int i = 0; i < 123456; ++i) ar[i] = i; int * d_ptr = (int *) cudaPalloc(SIZE); int * d_plan = (int *) cudaPalloc(SIZE); for (int i = 0; i < 10; ++i) { CUDA_CHECK(cudaMemset(d_ptr, 0, SIZE)); CUDA_CHECK(cudaMemcpy(d_ptr, ar, SIZE, cudaMemcpyHostToDevice)); kernel<<<1, 1>>>(d_ptr, d_plan); CUDA_CHECK(cudaMemcpy(plan, d_plan, SIZE, cudaMemcpyDeviceToHost)); n *= 2; cudaPfree(d_ptr); d_ptr = (int *) cudaPalloc(SIZE); cudaPfree(d_plan); d_plan = (int *) cudaPalloc(SIZE); } cudaPfree(d_ptr); cudaPfree(d_plan); return 0; }
7,100
#include <stdio.h> extern "C" __global__ void matSum(int *a, int i) { int tid = blockIdx.x; if (threadIdx.x == 0) printf("my block id is %d, a is %d\n", tid, *a); clock_t start = clock(); clock_t now; printf("i is %d\n", i); return; for (;;) { now = clock(); clock_t cycles = now > start ? now - start : now + (0xffffffff - start); if (cycles >= 100000) { printf("A is %d\n", *a); start = clock(); //break; } } }