通过函数与欧拉距离公式实现Knn算法,再调用我们的py文件实现模拟
1.首先设置好欧拉距离公式计算个点之间距离的函数,收集它们的距离。
import numpy as np
import math
from collections import Counter
class Knn:
def __init__(self,k):
self.k=k
self.x_train=None
self.y_train=None
def fit(self,x_train,y_train):
self.x_train=x_train
self.y_train=y_train
return self
def predict(self,X):
return np.array([self._predict(x) for x in X])
def _predict(self,x):
distance = [math.sqrt(np.sum((x3 - x) ** 2)) for x3 in self.x_train]
knn_ = np.argsort(distance)
knn__ = knn_[:self.k]
knn__1 = [i for i in knn__]
vnest = self.y_train[knn__1]
y_sco = [i for i in vnest]
votos=Counter(y_sco)
fin_predict=votos.most_common()[0][0] #获取投票数最多的选择
return fin_predict
第一步这里的文件夹名称设置为:Knn_neighbor,此py文件名为:Knn_return
这是为了第二步导入第一步的py文件模块
?
2.设置训练集和测试集函数并打乱。
from Knn_neighbor import Knn_return as Knn
import numpy as np
class Knn_neighbor:
def __init__(self,X,Y):
self.x_ = X
self.y = Y
self.x_1 = np.array(X)
self.y_1 = np.array(Y)
assert len(self.x_1)>=5
assert len(self.x_1)==len(self.y_1)
def Knn_train(self,test_sor,k):
a_sor=np.random.permutation(len(self.x_)) #随机打乱所有集长度的下标
test_sor_size=int(len(self.x_)*test_sor)
train_=a_sor[test_sor_size:]
test_=a_sor[:test_sor_size]
X_train=self.x_1[train_]
Y_train=self.y_1[train_]
X_test=self.x_1[test_]
Y_test=self.y_1[test_]
knn=Knn.Knn(k)
knn.fit(x_train=X_train,y_train=Y_train) #传入训练集
predict_=knn.predict(X=X_test) #传入测试集
return Knn_neighbor.Knn_Run(self,predict_,Y_test,X_test)
def Knn_Run(self,predict_,Y_test,X_test):
finnally=np.sum(np.array(predict_==Y_test),dtype='int')/len(X_test)
return f"机器学习(Knn算法) 正确判断:{np.sum(np.array(predict_==Y_test),dtype='int')}",f"错误判断:{len(Y_test)-np.sum(np.array(predict_==Y_test),dtype='int')}",f'准确率:',finnally
def Knn_Print(self,test_sor,k): #test_sor:测试占总数的比例
print(Knn_neighbor.Knn_train(self,test_sor,k)) #k:Knn算法考虑个数设置
第二步的py文件名为:Knn_train,为了第三步导入第二步的py文件模块
3.调用我们自己写好的Knn算法,并传入参数(X,Y数据集 + test_sor:测试集占的比例?+ k值:算法考虑的点个数)
此处的数据集是随机生成的1000个
from Knn_neighbor import Knn_train
knn=Knn_train.Knn_neighbor(X=[[0.8658851593524342, 1.3008071123615783],
[1.1191479114066571, 6.711049510980138],
[2.4603235088363884, 0.5209909397075674],
[4.923422062208561, 0.5509096018206827],
[5.98433791114897, 6.620140676055923],
[5.5064573818254345, 4.511000601156851],
[4.287828101255311, 6.372596982784051],
[7.238778437637823, 1.7393226638886916],
[3.824348052031911, 5.777450851610036],
[2.8004911290799237, 9.001560844429415],
[4.872548947808035, 6.706923949363636],
[1.4043656941060378, 4.31507410947945],
[8.976326008388824, 7.086568909062122],
[7.124475876849164, 3.507684361376792],
[4.957028622673205, 4.8471692286513965],
[1.3423176076713095, 7.7781329606732195],
[4.329874244736862, 6.816326228159521],
[4.606105004610125, 8.350473869147075],
[8.114195201068837, 8.42607294216927],
[9.314268080411033, 0.30347152857599147],
[4.948498126452096, 5.146922199304833],
[9.234998936228743, 7.888274726370189],
[8.154331031514909, 7.988017953344197],
[8.919677233015728, 7.43194661011664],
[0.6069722419407508, 8.047638652557113],
[5.730630352692378, 7.214881458670785],
[2.015683957526011, 6.122105495728983],
[5.743483681049373, 2.792799771487781],
[5.377248938656253, 9.482936599568115],
[6.674956763710039, 1.6701003064161468],
[7.459856583579311, 5.158363520314895],
[4.222102049444997, 8.622777144531495],
[3.2671681137954645, 0.34466286120081513],
[2.5404378420767437, 1.5708052726132726],
[9.101444680806356, 5.039260532838482],
[8.510783784330565, 9.288756382735064],
[8.828703822418296, 6.465458689648587],
[6.169476614617679, 5.9903777761416075],
[6.478149723691269, 4.974925102349798],
[0.6400790149410407, 4.709776540362112],
[1.5676990912801658, 2.629935803680201],
[7.21609254909842, 6.779141541544329],
[9.448044034939175, 9.554672193922599],
[8.160716633873738, 0.4054498030339171],
[4.1382332971549864, 2.4347300200934106],
[5.19732581659782, 2.4303144007508726],
[8.926682503923844, 1.9259820422808283],
[7.997062954998279, 9.601689710329435],
[1.4510380954215019, 2.881774408258535],
[4.277818457749411, 1.678280532735491],
[2.1730411343389577, 6.154624297864412],
[0.8391759616325278, 9.132874053979851],
[6.393201283524858, 2.258211666421289],
[4.326858835755829, 5.00722654285687],
[6.770471728413304, 1.4186352187024065],
[8.593796545147972, 1.348713650347162],
[0.3923396433228221, 5.8951809979295975],
[6.053889120490908, 1.9032404693747784],
[5.442359561024564, 7.254818610413771e-05],
[2.0481614873726195, 8.911904883715446],
[3.5923127825504473, 2.5606800390693385],
[5.465262150805565, 3.9696137383807315],
[7.313728061887289, 3.821064172530245],
[5.267545019269595, 4.771096736570247],
[1.6622591232423345, 1.9812396564596757],
[8.978282313329288, 1.9847529903012695],
[4.309645043193985, 3.8518756917464203],
[1.1071399060295883, 9.852770738683134],
[0.6619825077146058, 0.23270968975591444],
[5.5038852940787875, 0.8740136137506194],
[9.125149756105817, 6.528971198543642],
[0.08468097510209827, 3.0463798333072347],
[2.675374605154517, 9.34790673606178],
[8.899572393724233, 6.59734744459886],
[6.597921108197156, 6.1591522161378105],
[3.1821572471381474, 1.657841082230268],
[4.856941034647599, 5.778704970490008],
[9.855183953513382, 2.270022637722784],
[5.570131384590193, 6.180077614271764],
[0.2429361525491469, 0.7946281684749323],
[4.041292217781188, 3.2098341506594554],
[0.2433594161145869, 7.479287952173301],
[4.369847041218856, 9.349686935936909],
[5.953217058268093, 3.3075927826953078],
[8.110835671169985, 0.18656745616397075],
[9.921301262000796, 6.480230608117875],
[3.24569047375989, 4.516259772281243],
[4.5907509107764195, 9.913116098195903],
[1.673460055654712, 6.01641239046764],
[8.120073259134143, 0.5846918052152372],
[1.8168619431831468, 2.1357412753323146],
[9.248808039372529, 4.552480524526413],
[7.620050769585728, 2.6874701281315794],
[0.6592075475843051, 8.478610587994748],
[9.51955744230062, 9.698125463962821],
[8.801444261864319, 4.743498652833397],
[4.86303721084949, 1.0466525681649474],
[2.066234456157451, 9.559536386404009],
[6.718468401430139, 9.593346574285178],
[4.09627184253921, 4.344698114786469],
[7.164106063437733, 1.9025788457701487],
[3.7470083728852464, 6.766900068958456],
[6.492608667908818, 8.30950551642705],
[5.703044410907855, 1.6376935154067562],
[9.49033725573125, 3.08274246845024],
[0.237257765344413, 2.153959482767215],
[7.251233349030887, 1.3869910123963602],
[8.248847505399077, 5.477405302346052],
[5.975791193810602, 6.187518384516099],
[1.4341953933609042, 1.8918543628445017],
[6.957122985924977, 3.685009530735095],
[8.980946572124044, 6.882221574139328],
[1.944960051050627, 0.6942059679143187],
[6.08363534957612, 6.825068094458374],
[8.035168920444551, 0.2711279004306111],
[4.424786695947622, 2.281149246354831],
[7.627588305974577, 9.367713591525131],
[0.20573384261188488, 2.974305618936066],
[4.937757524148358, 4.921227592738418],
[1.1305406284225583, 6.93209472773119],
[3.388552862704767, 6.329142249835624],
[0.6143078116574041, 0.06291030662285313],
[0.2288984062352062, 3.7180276473215446],
[3.1321115165382207, 8.74475973406],
[6.399528213941975, 0.13005397228224802],
[2.571523719177773, 9.387676019598647],
[2.241000864773177, 0.11086445639789333],
[1.2271572218859017, 8.405243970350224],
[7.478869967446685, 3.576820377993722],
[2.785539596231531, 6.393461615625842],
[4.08223577939553, 6.533200067896897],
[8.805145443793963, 5.533550600748817],
[0.035206101514927424, 3.000351220333971],
[5.758294988440039, 4.023650146653321],
[3.727673709538626, 7.502468634575732],
[5.889839202548898, 3.1346605934057417],
[5.089699514780799, 3.0004346246997593],
[4.530826605962936, 0.8399533567995665],
[5.1669677547098125, 8.558258498139258],
[8.431217100420728, 3.3509712992192195],
[5.360127012286428, 3.492440682088721],
[6.179215724188449, 4.649593796128295],
[6.723673849720852, 2.4330175899089337],
[2.026012809558164, 9.135576056713669],
[5.861674149524749, 0.4280781201737138],
[4.655883536464892, 5.214453110915667],
[3.3006842536609007, 3.7584659515722785],
[4.936544213301113, 4.6739091348321296],
[0.8646393587120915, 4.770594685436657],
[6.250378848037281, 2.1134326215062202],
[6.899868269858906, 3.9067887794355096],
[5.100576805318773, 9.513660020789422],
[1.928827101049836, 3.461069303528428],
[7.6213961180289, 5.388003911022798],
[8.771139265697272, 4.314626357665167],
[1.81598949538876, 5.185575196762265],
[7.820672767468045, 8.290871330687985],
[0.7715990549870022, 6.3797635194195434],
[5.466575511868962, 7.176037305229057],
[5.612137623515473, 5.247260711828665],
[3.1040226589239683, 3.485473804114194],
[2.703148328928464, 6.8695336592524034],
[6.753464963471684, 9.412571160855137],
[3.7512753448136027, 6.853048755883186],
[0.7882682413445374, 1.1287439150463996],
[0.7882659017459037, 1.660410825987766],
[0.7687261665043987, 3.1351244288886404],
[1.226276569379331, 3.9016867287336665],
[0.7558958544667094, 6.524106022519463],
[6.1994265405885365, 9.11145823996588],
[2.1472257767269087, 3.690838442486528],
[9.18826636226802, 3.007919063440312],
[4.115516910268351, 4.186129066572865],
[9.339480905572712, 3.990275472347821],
[4.119287411279292, 3.1799141434709655],
[2.390297526569416, 4.812839034524849],
[9.9971128415671, 8.624288819783958],
[7.697257403840276, 3.1791910995723427],
[8.549026493896095, 7.141858604104543],
[1.5027723272620908, 1.5914600191612938],
[1.54191858243644, 2.6352525438344343],
[8.781026898368541, 9.304924714569605],
[8.593995538571694, 4.931504805971895],
[0.5023561788475872, 5.071623390120222],
[9.702304359020303, 0.15077865457622686],
[0.22082261116997848, 3.167040869831955],
[6.139940125625833, 5.437389042500186],
[2.24404217543577, 3.7736423154599708],
[1.7239942777801376, 9.379686342188613],
[6.251392253888866, 9.874115698637253],
[6.171405833392547, 3.611675001081922],
[3.268049392301353, 1.810105811124415],
[9.723469199380554, 6.693563175105729],
[3.20079613964693, 3.400947633123945],
[3.7299130972635908, 5.085666270784589],
[3.022715858678647, 2.550060662675792],
[1.159626489798914, 7.69344744895222],
[8.631483671437634, 8.042729698895505],
[7.290288749993295, 6.3584835795877535],
[9.310047174988293, 8.334656143628973],
[0.32963257065714013, 7.349066490841551],
[5.940618191447867, 0.23112373048942758],
[4.4884755500025175, 4.688469975916872],
[7.747863225231133, 5.880740249524489],
[6.81822899357858, 8.554616851154675],
[7.068010012419011, 0.6822875740904732],
[4.850589669057711, 7.09449464698978],
[3.80811152583402, 9.444829903470236],
[2.224013868292122, 8.994571998744105],
[1.9983341935663235, 2.7075503454060246],
[6.713803801029704, 4.1366709813327205],
[9.658632721019599, 5.856379073344565],
[8.87081966552379, 1.674405222119102],
[1.7352714592143614, 0.6245103159829113],
[0.2728056576509097, 9.003364728013583],
[6.994435450870558, 1.7987111043136728],
[8.708104595617264, 7.3420959857148285],
[9.449165982907065, 2.3865957956573425],
[3.88625551477889, 0.173634839488217],
[7.7633802992929475, 5.605123066299368],
[6.475565778798887, 4.110559286426179],
[3.2835491146648934, 9.34428236299864],
[6.3344987220105295, 8.741792434601981],
[4.524026350067889, 5.445256501493063],
[0.5345474832719821, 3.1856154538888326],
[0.7564947110503273, 8.315235266969701],
[9.986796128635538, 9.415858007846458],
[9.478942282702437, 3.1901943999770275],
[8.473022179048552, 4.006404452272058],
[0.8180081621130997, 1.0257807588720536],
[7.45363359489747, 0.4671387103999236],
[4.502536585694368, 3.443205267371562],
[3.5897927085670056, 3.372755793467377],
[6.486631854502982, 7.321535938182535],
[7.313491235474977, 9.781062151950232],
[4.865103540779893, 5.797888402785507],
[0.904747810034443, 3.2713196906040096],
[2.4870024467597895, 3.518057516103256],
[3.709471452253678, 8.410139071791312],
[9.1813971270116, 6.736602174632884],
[8.375804687613822, 7.923216174110685],
[8.652874262617216, 2.0887894333133836],
[0.458516623683044, 5.248806649875223],
[9.823385729514667, 7.030136391912302],
[1.1983865579964537, 2.2652747353631995],
[3.1592987475309844, 8.364656999093786],
[9.092199156301199, 1.1667612990964393],
[0.29187648914252073, 1.390072465166421],
[7.041699655964653, 6.523777023683569],
[9.220046558724963, 4.798677752715338],
[0.6398882848516629, 1.8435000875201024],
[7.89578803077911, 0.9200209720110863],
[0.2544342040109726, 2.919800475443206],
[9.757364625711212, 3.15937155619186],
[3.824756959345593, 7.519312722421704],
[0.8711482441950957, 0.31463872334836607],
[1.2703496546614623, 5.467756467918557],
[3.061556201389225, 6.3990204725068445],
[4.137663866131749, 2.6645779301609016],
[3.38628879820988, 8.982446372699762],
[1.9618820288274108, 5.895272602674732],
[5.324226263363481, 7.968966437665809],
[3.663574779291751, 5.654860419925395],
[6.014222134103591, 8.072497335387164],
[3.9653205719288573, 5.986734987245129],
[9.079923065591895, 4.260050613444008],
[6.751006732463782, 3.7016308377052622],
[8.870771607434747, 2.0116151484914537],
[9.671268596480928, 8.805148841790034],
[0.5240210770105946, 6.774469636939626],
[3.1549980583334056, 2.8400979793821532],
[4.578827795952449, 8.887049586595442],
[3.795429067064368, 1.2505151102459566],
[4.126720186336065, 6.5224844690797745],
[3.9718054675017953, 2.165314057872542],
[1.7084454465870258, 0.06654772021776112],
[9.713398842090744, 2.4732907555408246],
[2.720328751998143, 5.191843055955349],
[3.741087096383051, 5.444198480699029],
[0.759462403128387, 4.545629421856658],
[2.160975737614076, 9.303243561374174],
[2.5475750244489017, 4.592670938994591],
[1.774134737080899, 7.219525783696116],
[1.0331604648792403, 3.5909667597218062],
[7.215575184452342, 2.7218552855962583],
[5.903035902984259, 6.481728323334348],
[0.4440368903758063, 5.8862914466775855],
[9.774393462028053, 2.9917338437720034],
[6.997237220142857, 4.898020035461083],
[5.2413530912115505, 1.8157429627373312],
[1.3671893116620149, 0.06755442148819846],
[3.010287993928512, 6.879275384799294],
[0.69024231643661, 9.897943056717459],
[0.4431718959543618, 2.0443403979165655],
[3.2457668227893075, 5.647665421002114],
[1.1587717948652732, 8.15748019361512],
[5.840259865223578, 8.836214528748322],
[4.426705853152582, 7.719182675414222],
[1.6324364622400556, 1.7352128395660626],
[6.842504652832421, 2.492312181888099],
[0.8606434377788175, 9.426826519013131],
[6.563537792357446, 2.9447428658128407],
[7.375674008449585, 2.4361951918253775],
[5.664677343981275, 5.715123174139873],
[5.821312590850184, 8.64077891993454],
[7.135016359380192, 6.08076575319072],
[1.2680474228655148, 3.4062989055081383],
[4.5359047746340355, 2.2574435349195654],
[5.830903031879227, 7.221449507465509],
[4.4780341084737705, 4.485314748604861],
[7.4746298354892495, 8.444128548734163],
[2.460319548830956, 4.225494361604128],
[1.7639758579419829, 8.956764151922739],
[6.595020992887244, 2.0049621714128287],
[8.613778877013086, 6.143524813336324],
[5.466461544745037, 4.410636527970847],
[3.5038681001872254, 8.19730957247717],
[3.8760590343685197, 9.377148682423735],
[5.154272775123266, 7.3861274636035725],
[8.685487150141169, 8.277930935184502],
[4.967085339468604, 9.938696978160383],
[4.948004580438648, 3.4601825708888665],
[2.37838614727231, 8.139382571990058],
[6.54389566903215, 8.575255994690723],
[4.381632860810827, 2.9071913655807413],
[5.385469224907058, 3.9363732503056426],
[2.074160211544822, 5.500927613059416],
[7.1206405826488375, 8.65538505550842],
[7.200760274333104, 4.195850179432493],
[3.4575632949007917, 9.554549538161469],
[8.035299881023276, 8.570080294328847],
[6.476722990059715, 6.8736713797743745],
[8.256523539648676, 6.850176801256315],
[3.5872093932585383, 7.244277097861826],
[5.186510708684521, 5.745244613823393],
[3.585182080006276, 0.11231692979797425],
[2.329420538970713, 5.93690717823117],
[9.096151081816016, 4.005552455529423],
[2.1540533923386684, 6.598961571920421],
[2.0535959269164206, 2.5513101411118155],
[6.263743783815945, 2.8178655375395123],
[6.016117668674763, 0.7529081441769847],
[5.072072283253278, 2.091726396125276],
[4.834221032892023, 1.9254298442535223],
[7.221484630249442, 0.881164247477878],
[0.7099753728980918, 5.226694940867596],
[3.2702496503351597, 0.8111161427769831],
[6.634188589729529, 5.67757184241053],
[5.797913443710678, 0.6786637898969428],
[7.114675816731281, 5.485111896111135],
[7.510408253337194, 1.3895766971479029],
[3.976521933084337, 0.11686390165175475],
[9.572577886616799, 0.5464662615286486],
[0.897399358404376, 4.892768068237766],
[9.686434651491108, 6.163937112089062],
[6.8572814479504975, 3.7084830656267265],
[9.406635468141356, 5.5174806062950745],
[7.106698241940281, 0.4913482121356272],
[8.924768887220402, 3.704130706275058],
[0.49855924548110275, 6.136095810517625],
[2.869419782211804, 9.690652753447205],
[4.1140074304422924, 6.656708448234136],
[1.804677945931733, 7.305234575279654],
[7.644080533426583, 5.978850225550269],
[0.11975308751833391, 0.47345858464870383],
[6.610197323180557, 1.6814524749948545],
[6.851511332030251, 4.961161844994763],
[2.034092767973598, 9.861761354267884],
[1.8375428489095103, 1.4766812277308128],
[3.12524337981153, 0.06498205406055502],
[5.929014858882763, 0.2887029789595863],
[2.570669859614494, 7.087568228509545],
[7.0499806647202234, 2.2770636196875262],
[5.932854404418922, 9.154058292332843],
[0.9445674165551454, 6.892862820795633],
[8.084389666878565, 1.430966109564451],
[9.3939865540145, 4.350963896258735],
[5.0503383596160525, 5.7852609793909435],
[5.005009406426555, 4.683940584785152],
[1.224465639401493, 3.2485292492395814],
[6.882514521055322, 6.501483960206338],
[3.373854594549468, 5.097969224813882],
[8.308279364464827, 4.792227064679842],
[1.709809453478237, 7.377852099818085],
[9.505419759860839, 4.639709897357394],
[5.663857085068637, 8.943150446217743],
[7.563511538444479, 1.468158175612071],
[6.354893793988921, 4.225863300570005],
[9.75420024537666, 1.8559008567567703],
[9.183140158899862, 9.272835916435774],
[5.4137375473433345, 7.9225253635111645],
[5.966410782213844, 4.9303126632197145],
[0.2610416245021996, 8.261514398496141],
[0.1667220201210784, 4.760650474281707],
[9.784385294057632, 1.361901748204375],
[7.180417625089635, 4.641938933465059],
[0.17150625863026403, 1.3224319902176407],
[6.15182595075037, 3.4855568207731134],
[1.061260386336107, 1.520260158496426],
[5.863726059207643, 9.238650438428985],
[7.020528145535031, 8.737911478206438],
[4.88765755235561, 4.4811641744475486],
[2.7994696230108804, 2.079277018070107],
[2.5389849462912615, 2.0860644128289927],
[1.2270806194518036, 7.609271332462525],
[6.0023590359611125, 9.056848425727413],
[3.030161083333888, 5.892358062558227],
[9.625870869981345, 7.483565047114034],
[2.7097921784369694, 6.499834536665988],
[1.3967793362545056, 1.8774521578333192],
[9.994045763247447, 0.5262096479338718],
[4.892367823789789, 7.932984676771044],
[1.2940771961165654, 4.577885111250196],
[9.48808563893094, 9.123268752209468],
[4.5877214288514505, 4.8394322672360355],
[8.291229197620343, 7.492078215316589],
[2.947892906745102, 7.687400679182966],
[2.417383998138324, 2.0063425739476815],
[6.842239323734907, 5.147319299057159],
[7.920686684841983, 1.916645121621533],
[6.240358475087465, 0.5351646055969206],
[2.9532188362988974, 8.352507173960742],
[8.845175403642216, 5.907737813932847],
[6.388605162284104, 7.712967709169474],
[4.569736101336086, 4.285786540554674],
[3.6718014657338047, 3.6489088922896364],
[6.364160926515131, 9.693790051205944],
[6.338715352555121, 6.951959683785046],
[8.065369670944458, 9.095935398429676],
[7.304341517346869, 6.7287971612612365],
[3.0105119299673433, 5.411394985991328],
[8.857203247256502, 6.493724205073108],
[4.766158787554779, 2.822211893456105],
[8.887737047512118, 3.231398568347692],
[3.6983638637655227, 5.808970201951902],
[2.2649536170377593, 1.0492098636023217],
[8.232009501834833, 0.5746484363536131],
[9.959044842618779, 1.1150779130581512],
[5.449951620642219, 0.054178652273980665],
[7.825608791570708, 3.680430918371119],
[5.354903212051698, 6.69773417659504],
[6.287376924065434, 2.218642743168516],
[8.685298858425053, 7.570509060992581],
[0.8867138696920274, 3.936597660966573],
[0.1949391622283092, 9.625956815788186],
[8.99353501917308, 5.721550864884487],
[2.5303982844847717, 5.429300696487652],
[4.076684191295348, 8.484188900775543],
[8.962995476680948, 8.039730360890601],
[6.688086191346648, 0.89275523669191],
[7.330934502939451, 8.543815028074738],
[4.034876177298883, 3.5482483044764312],
[2.261596817586132, 7.931760943294293],
[2.8320150227788607, 7.178052029742959],
[3.2592275481698465, 7.487839313533326],
[5.372699101637735, 3.4321422299828788],
[6.126820108633498, 8.016905142514211],
[6.348580525849096, 2.215059388202686],
[5.68629699274411, 0.620365515867709],
[2.2954825473134655, 2.558251661432931],
[0.8105168950670538, 2.6406399267116063],
[1.870043219630071, 1.0061844529776043],
[0.5709244007621717, 5.839991235007771],
[3.0899024976776914, 0.9434762464348045],
[5.818000648675966, 3.646680175821401],
[1.1975239086548273, 9.60288392957395],
[0.2532717447964039, 9.886678995243535],
[6.777622566792885, 4.361809366653011],
[3.866240747304923, 9.589397273306302],
[1.2893528774445173, 9.276877456743605],
[7.157384524892748, 0.2590018214146539],
[4.4941779099945585, 0.7303737136379151],
[5.098428145657527, 0.6395107741903261],
[6.4774419232651255, 1.4087121289242588],
[9.051926829376885, 0.35177120588190225],
[3.2824447885582186, 2.259877131330871],
[2.9558055304339392, 6.80284178625821],
[0.8407931634660493, 0.42617071206284773],
[9.468328483525667, 4.867186275907054],
[7.809130082370864, 9.172078967972952],
[8.374648584059004, 4.351125335026879],
[1.3273728278981434, 8.155271917971804],
[5.4041244915937625, 7.1286665224628445],
[5.186004947248093, 5.2088069825863945],
[0.22789058494536052, 7.83922078643227],
[1.6724494874278584, 4.576706733035923],
[8.674304282643172, 7.827581205075337],
[3.958506905314655, 9.059485090536949],
[5.73219750426924, 3.1554892826388903],
[1.4619385089755388, 6.236008679312227],
[8.283653114960313, 1.6370239125003216],
[5.655971431062352, 6.065911957299371],
[6.466463292240374, 3.5370073375606257],
[6.563455639488234, 7.659091481210552],
[6.548710242280658, 4.72251401721079],
[3.4794102916954452, 9.970267189838754],
[9.81188774540315, 6.5522782331429],
[0.7096024825881886, 0.5959587156740864],
[0.8158627941660013, 2.426357477063771],
[8.09469647709827, 8.925653730269314],
[5.619116184028412, 7.877759832762839],
[3.156366379421308, 5.739076213032938],
[2.81906353258453, 7.845381253894962],
[9.887659702252503, 0.9913488862629716],
[2.929843191392254, 9.54126137394226],
[8.582330184741657, 7.469519591762461],
[3.5061410960604644, 0.2688673430600952],
[7.404984280376263, 0.49223141521655966],
[1.0792899509815579, 5.3118163216052725],
[9.481034192610279, 4.603583237476602],
[8.887311341124706, 6.409811840461047],
[0.23073504384140686, 9.539445802098095],
[8.138916516631719, 4.87022297120728],
[5.067880164943369, 6.881447578813878],
[4.365796955738135, 5.433184521039949],
[4.123423093490151, 9.411636464872963],
[3.1026471840958636, 8.830361002804318],
[9.512495272558269, 6.885916358793396],
[8.697130451829056, 7.00198087287054],
[4.896352177938079, 3.5611697441464463],
[6.580745475046448, 2.118718278723674],
[7.028588426488213, 2.9372202236465137],
[8.963866747269027, 9.485965434802793],
[3.6829519284150223, 3.7787975315218834],
[5.387718342770472, 5.417466947841395],
[3.733720047795627, 4.571561990238356],
[5.56519382441153, 5.317483399712991],
[8.723997911393433, 5.915753104971141],
[6.755646898569449, 9.092085366537502],
[2.3973200109450463, 8.260807607250522],
[8.471038715146426, 5.656775989007744],
[4.132215641600575, 8.666156430332348],
[0.5682579990444447, 7.277415301145504],
[7.31710558426598, 6.0929790317250445],
[7.6032892317890655, 5.292814548529993],
[8.372529597537309, 6.126015890254287],
[0.6336354746948814, 9.649265003580595],
[5.483594159411648, 3.940502171989958],
[3.5791269177078435, 2.251796144796824],
[1.1151709623518413, 9.038512238764135],
[2.668200226505657, 2.501829157645734],
[4.452950804564254, 7.379606547747546],
[8.320626381226086, 6.283242561267393],
[3.65783213677234, 9.028832176290713],
[6.628150174588917, 1.5346292347520318],
[3.742774488977375, 7.051147525575705],
[0.2864704441178356, 3.851492277193632],
[6.404989210139708, 9.21442226791246],
[2.1624600994963163, 2.8328557111182118],
[1.4455689374873915, 8.458841300972653],
[9.731151440707146, 1.7685210392398687],
[4.3302346315307485, 2.4824177312909534],
[2.3955048738097826, 8.534582319903805],
[8.472356565680638, 3.1349056517122795],
[6.978361465095315, 4.507863271877907],
[1.8901352083199274, 5.78342845781099],
[7.2961714907680895, 0.31293201438435725],
[3.5195262398646374, 8.548410024132275],
[4.1011843388605795, 4.141101716122772],
[5.993993378863125, 2.8579669255409113],
[9.869533641914224, 6.976481484471119],
[0.7937929206521055, 9.032828632424124],
[5.672202939660712, 6.26017712966708],
[5.6441790544173855, 5.659079804594742],
[9.138935262668781, 1.2456926691608772],
[4.310729716063109, 9.87687585710201],
[4.4475225999096, 4.870815711535345],
[4.177807357236654, 6.021776638531491],
[2.46065171442045, 7.621272384228264],
[0.8252896011787747, 0.6960618806714225],
[1.1130657070551186, 7.4989329150920145],
[6.808721508514484, 7.10661479465635],
[8.163491495157267, 9.151369782406192],
[6.7894699099919995, 6.778653213196809],
[1.4582460701775735, 2.584973289478625],
[0.9673704484516699, 7.964738121147836],
[7.410252075765042, 5.62851013443716],
[8.140408841941904, 3.3998052606089155],
[5.419017375096637, 2.401282855616569],
[6.265736481577363, 9.984642397253307],
[5.882925837800367, 8.62489061859774],
[7.264553407297405, 4.809944758410149],
[2.6256327564506554, 0.19303679568930088],
[0.2911154785313641, 9.369127841999473],
[9.213999727592725, 0.8390011258423757],
[9.034057382677407, 0.8630041307530989],
[6.397455669002717, 3.385809094344415],
[2.714827564451141, 0.3304227390119818],
[7.895053144390092, 6.829850946891465],
[7.51665750830429, 1.0715967428291606],
[1.4096416663851308, 5.934919077713449],
[0.21989922620059832, 6.817199117558297],
[5.982515041288476, 8.635331473770002],
[5.8516715297285495, 6.837300210260504],
[2.100735804685879, 0.7812364869799815],
[3.640705397938441, 0.0869701518543542],
[9.723559434972513, 7.845666923618552],
[3.2232600770228084, 1.0647302884288312],
[2.374914502426906, 4.35669936106741],
[4.396907602753226, 8.755910628713226],
[4.997725211847035, 1.0064856996699156],
[2.697930420972213, 4.7495895327466275],
[6.6632845803022995, 0.8351811289415834],
[3.8871710158855857, 9.299583778976393],
[6.529085143347341, 1.2717598031354493],
[0.3083943307869641, 1.8154885388163344],
[5.949689372216691, 3.1209061400353666],
[6.981769537034363, 1.7657010014849883],
[4.645459493080139, 3.963677526665008],
[9.439226592466495, 3.1999280489532254],
[7.333779441327324, 2.7969711183761703],
[1.6239189310125868, 8.204786779292743],
[8.850630164333797, 8.798530521169285],
[7.91539175053381, 9.501297142486255],
[0.45885353103761295, 4.49300687239934],
[5.171273591430618, 8.072871633958208],
[8.489680545681278, 1.9752810519004205],
[8.378065732727556, 2.4458101661826728],
[6.034908814988167, 9.338195449510252],
[1.826257401784298, 9.863696403758631],
[6.6952801217447195, 2.080000296014939],
[8.629132225323017, 8.159317619407492],
[2.218013243028969, 1.3040116182135864],
[1.8301534244566586, 7.626289574444664],
[6.766625136504363, 9.8410928145638],
[5.4431960868481895, 4.316804531858343],
[8.865970903820715, 1.5375426912436307],
[2.732827301886971, 6.640761463042213],
[8.592395499226711, 9.734266663859513],
[9.779642730786717, 1.9316233515713355],
[5.922245602786308, 7.248617703598157],
[6.747869646481902, 9.910282383284146],
[5.628508909936288, 2.0988034497071872],
[1.0517146217967521, 6.011380276431],
[6.676186136412616, 3.5032965123738693],
[3.0693747800950044, 0.9518030836118108],
[9.677019081313862, 0.08663785494805731],
[0.8371182743739902, 2.3966644063044784],
[0.9381353990709629, 5.047078518159359],
[1.648105164470307, 9.608449852239868],
[1.5202182718634027, 0.5558340556702879],
[4.053904763033619, 0.9741809507642729],
[2.6110042057718683, 0.5376777135185873],
[1.60929631006538, 0.12215641524306875],
[8.330179133508373, 7.4871965322250675],
[6.330872081361724, 0.7710992199863953],
[6.35034412342736, 8.83313223879787],
[7.201257360104302, 9.830735872029075],
[6.913208594501988, 2.165104580100942],
[6.020674012147423, 3.0155096456018837],
[6.812035953497473, 2.653716384029745],
[4.804179149057381, 6.000870057283452],
[5.907780698383882, 6.296937703023065],
[1.357641346798839, 0.8274600036246382],
[3.9402199050209052, 5.186131778153181],
[8.413957239871445, 8.624984928513129],
[3.506559714055444, 4.296887556538152],
[5.497769352220121, 8.210886389389048],
[9.197750010951193, 5.643882682333898],
[1.533876921524493, 8.26596973235506],
[6.641454872386385, 1.7950704157925712],
[3.8414072654165823, 4.538722619069108],
[3.8302378634440237, 8.383123833007394],
[2.941300599512985, 7.974800443439696],
[1.3212397632568917, 9.478395919685031],
[4.40469650609915, 6.9128937684344836],
[4.779846688109642, 6.067440515499033],
[4.668620531659377, 0.6536275267363145],
[9.701926250418229, 6.287360362150474],
[6.614164673862101, 6.037930332301459],
[9.865254657547982, 3.0058433785781515],
[7.3175320651534195, 5.753736853305128],
[5.319914127085784, 5.877426142109893],
[3.5189757382307354, 7.387068033142837],
[9.015159011445453, 0.5530060206390797],
[6.680547662613874, 9.41775912308944],
[5.254189164835509, 8.756181085084926],
[3.3593840415179956, 9.987447614705303],
[5.260953731695839, 1.907455806765379],
[2.8071557634741486, 2.3478198826479546],
[4.200295477472614, 1.9043041804978322],
[0.95360449848374, 5.211798128197782],
[2.614897771940371, 7.224843195473478],
[6.500099864778921, 2.970876390915449],
[0.9362035324217977, 3.4970286632520686],
[6.379921547266056, 7.4040763297353465],
[4.945571719397909, 1.4005985885923056],
[4.758610121323402, 8.224549701401727],
[5.348329888378532, 4.885049616502113],
[0.35722596843832166, 7.17981455341592],
[0.9899987059347304, 5.635721340606774],
[5.966136535293645, 4.371982385129708],
[1.1107698246322317, 1.1954788613721634],
[0.3302593394347175, 6.352010594686087],
[9.521955542177189, 5.238298595318849],
[6.49437786014699, 4.236021752760885],
[5.423826570328028, 2.639412815872153],
[5.042036798230301, 6.159523128800278],
[1.5531693042012373, 4.824247109521265],
[4.619597458080778, 0.44032160913776264],
[8.43103779466263, 2.850191065114993],
[1.0368685042449421, 7.028478484176502],
[1.7625786741379201, 3.0663745537021967],
[2.554361843159035, 3.2468578917671795],
[2.573375675621433, 8.660925366307172],
[3.346155518780767, 1.403548287368046],
[4.840316468233352, 9.666814130842262],
[6.179840487472964, 7.431512464769919],
[4.876765335078775, 8.80922371135799],
[3.5164025137884867, 0.9431031730088169],
[0.4406268989692208, 0.03525903820323695],
[8.317065206573774, 4.885334604776428],
[6.893095212032899, 2.321545670207782],
[6.66085819807856, 7.53133189951919],
[7.948241322435211, 8.39180784242387],
[7.417539524003897, 4.199080063922594],
[4.857504210887299, 6.249289499058511],
[3.7538265164905926, 3.7523115855764013],
[5.112636071127596, 8.545104239239778],
[9.041913926673503, 2.0586224401822273],
[3.5932087575411673, 9.280525141279895],
[9.74347369437608, 8.581447911280843],
[2.3733051964548757, 1.3474154055683696],
[5.064136420724495, 6.573685878020195],
[5.699651195069796, 2.6789207459485564],
[2.175529672286042, 7.933559890913786],
[5.170998672089811, 5.267154941663121],
[4.468432153123701, 0.13201774021819435],
[8.151816867940298, 2.3552576622245147],
[8.28139452275035, 2.3736265489187236],
[9.54460165251271, 8.82803415160702],
[1.607281954862163, 9.280448629672748],
[3.7525434663620025, 0.5177071979224135],
[8.088130168494613, 5.068906740293839],
[1.6751188118365212, 9.769612246053512],
[8.444988380486777, 7.807707661124562],
[8.067973366899402, 1.8749543271763502],
[5.087109764128714, 7.935650652783568],
[8.26180112017382, 1.1769366013168558],
[1.7178767976496756, 5.4106949687722485],
[9.084627969611264, 0.6311325094479747],
[9.071132699940232, 2.2290810244750414],
[7.402067051267754, 4.041766159978399],
[0.9097716376479537, 2.599790739097785],
[3.9766029553188464, 7.22708991392291],
[2.8083273240153286, 0.7745958507127026],
[3.0876980432104686, 2.38696993893706],
[1.9804846458233627, 6.474391985398137],
[1.822508264898356, 8.092535609280842],
[9.197034882237599, 1.4431785650696283],
[3.871624680682756, 6.875762140679635],
[1.8044802529688209, 6.070850556731],
[7.397097006228735, 0.7303906022012074],
[4.304975442346166, 4.876912401499033],
[7.072071992570804, 2.7881476677044468],
[2.9397218489547807, 7.717586098646644],
[4.473852327003405, 1.6128051967208712],
[9.970566388623963, 3.55439436719452],
[9.771886230403972, 0.7393778678492247],
[6.315982285485379, 3.9211807750133243],
[2.0412333765375026, 8.12212624959622],
[8.532500360094627, 6.77065188542945],
[3.81015833994629, 1.8951522931036335],
[3.059545452620369, 8.115220561086089],
[7.473167911097378, 1.4515017845290734],
[4.708553746739557, 8.276217273629033],
[2.3517581685143174, 8.104274303511279],
[7.196778047279768, 9.047500979307099],
[4.910828780231674, 4.408609798173375],
[1.33005390195449, 4.171469916167596],
[5.410811463031175, 5.683340970865244],
[8.473312704125664, 3.957227288768135],
[2.2622175805407974, 2.6216616595729194],
[3.9884807024083946, 0.3144751192721795],
[0.33482650640505596, 3.7163397747275195],
[4.074230515476659, 6.7283382075085],
[4.399371477981916, 3.6485439797311905],
[4.705972491663241, 7.99974560803861],
[4.485280644507493, 5.539214224168506],
[3.07084553243694, 6.129642333933749],
[1.903523163729729, 2.4722941684693733],
[7.35290981831044, 9.097553906552413],
[3.806291072005501, 6.618354275685125],
[9.27620757835091, 5.828398086910883],
[0.520402122680671, 5.868800334261346],
[6.445306874591003, 8.940310776782612],
[4.366790572657557, 3.878791067410594],
[6.308432862740564, 4.813552951504602],
[5.8519919267086316, 5.129988424229443],
[5.557533070407579, 2.5328979936370235],
[4.5403713049958885, 2.116529320219059],
[1.3139035002645183, 5.549948720716163],
[5.979943910334997, 9.320566272417093],
[6.567323686760878, 4.437796549508387],
[3.4220151503262617, 6.124363307395214],
[9.919481691720476, 0.6959979322332033],
[3.8251211259779505, 4.717183444023716],
[9.47874619460552, 5.789956436975851],
[6.768408922359367, 1.59600641157441],
[7.592859457998387, 0.37498141327418466],
[5.912615974717484, 2.4905765844787897],
[5.084253230121839, 8.571039623866737],
[5.398453229470349, 3.338125879225733],
[5.293742949141783, 1.9518530931554978],
[5.300226531204894, 5.282694968836203],
[0.7307588803849385, 6.450594905410352],
[1.2317497466265603, 3.1940613283213515],
[4.319381434115662, 1.4790299880694602],
[9.065588153198348, 2.676071452590314],
[6.160728211321897, 7.569182244251332],
[0.9242175521995777, 5.1491762167340305],
[8.544059905067172, 9.567249296450965],
[9.592849416920842, 9.386812810338988],
[0.5715976381447063, 5.256595883185305],
[1.1275135712067808, 6.489403073615776],
[6.15211319158099, 7.192084547158525],
[2.524251691080984, 8.76551207117534],
[7.2641677650758005, 0.7637984337164383],
[6.64882149925341, 1.1156984993803987],
[1.146193990313601, 3.686589591823836],
[3.0239796181691494, 1.8982644478131805],
[7.748091884874601, 1.789092696648893],
[2.3798157575597623, 2.237780160561076],
[2.390484463063973, 7.044642811570377],
[1.0467994550149817, 3.2482838514523396],
[7.537565496937397, 9.858382992492459],
[0.8767084559778981, 1.116978892008721],
[6.188669316591881, 1.4036275048967284],
[9.033964334778798, 9.143222873491233],
[8.222052684385043, 9.353973114018366],
[1.2012754905841205, 8.271600797525245],
[5.604442073100435, 7.453009424759348],
[0.08394009749538078, 5.984448161886615],
[5.616427048186812, 1.035846695285787],
[2.1726550865175467, 3.332564710437045],
[8.587358167753866, 3.8308070360547464],
[9.712327990594074, 1.874637880478195],
[7.479298246324818, 2.2361137569879306],
[1.2075035420790237, 6.258018809266401],
[8.146773513144714, 0.988305838457102],
[2.9034438595012055, 7.330510970215318],
[5.040910530886792, 1.26636298824652],
[0.905874665055959, 0.3336991417747015],
[0.5282149542564507, 6.772929877130876],
[4.91181762469708, 4.984460682804342],
[2.6569542629487355, 9.165370156388047],
[2.5671691759508164, 1.8036903795486303],
[5.3047306680456074, 7.495232282779445],
[8.560317563234355, 7.7556352727361855],
[8.110364809577154, 4.68184161133626],
[6.206439032669328, 9.942689606081215],
[2.8041558195286442, 9.600490226405702],
[9.079037205443644, 9.938405027902732],
[3.2492544157585757, 7.294011531098875],
[8.101902215776528, 6.591441713216728],
[9.406878840278605, 2.079127636351558],
[1.9981933272932584, 6.95039079903558],
[5.252878668735741, 7.933537215190128],
[9.735068952177805, 1.056686015002286],
[0.11837710933294887, 2.563845557795268],
[9.218382183859786, 0.06400855431686225],
[2.4237953215654304, 3.7653259429917654],
[7.570102848432237, 3.8962548315913628],
[4.536577939027562, 0.3347895000763379],
[7.918771841257222, 6.10678939997404],
[1.2355725223634861, 9.402675625112025],
[7.750237606891172, 7.213688135462416],
[3.723417483526179, 2.379296015426575],
[4.755189803107034, 9.457711165081811],
[0.5974944198940502, 4.9519989951998165],
[9.695561839905384, 3.0354535222522983],
[5.850810562255812, 1.9533713770892214],
[1.3800069150242578, 3.4880202681701555],
[5.5713774717696705, 2.5976840208157026],
[2.465463169119688, 1.8889796878355147],
[5.932835103623608, 1.4246360315645723],
[6.9541192009855965, 6.745463852398007],
[0.2873290521107097, 4.216201153345568],
[0.7848526617451013, 2.2165720014697863],
[1.8835417931438647, 2.4091248336884186],
[6.864436236925885, 5.264961693790481],
[8.391307230324717, 9.33026281843939],
[2.3189251152001567, 1.1282417252209143],
[1.8531595162004733, 3.913905831221469],
[3.873442562011192, 9.935024973667371],
[1.5967021514979507, 0.7483732422263378],
[4.112420165543026, 7.004543593338203],
[0.6781533770345449, 9.064115093736529],
[2.8481532267303713, 7.8068865788891495],
[1.1667650550016073, 6.021591720945764],
[5.7382579224201375, 9.097619557804107],
[3.617900374265327, 0.0670608287818053],
[7.6493523815286615, 2.964344991357273],
[8.07887056417919, 1.1184264732981775],
[1.9375526020166856, 5.91315903182244],
[1.4606092878570787, 7.287734409833516],
[6.628204898437524, 5.014381195274815],
[5.749786346810842, 2.822884797212668],
[6.468972175026232, 4.113419124799299],
[5.106573960889155, 7.757390956265535],
[0.7848065564148066, 5.406561971711422],
[7.766087660515666, 5.7855018363528234],
[6.206430739950405, 1.6069347302824466],
[4.871334734350668, 6.051281379268309],
[6.111818991890351, 0.20174968138930827],
[3.3826328156561623, 2.31579590067851],
[7.265080691659646, 3.612185398008786],
[5.312709096147115, 1.7901622521818494],
[8.856187489175547, 0.5557415523099174],
[9.461839221498582, 9.676152852687522],
[5.990890439792596, 8.599903813790963],
[7.351440186393148, 5.89545291928494],
[7.725814397908801, 2.6568057694357217],
[8.60369225051701, 9.659081646211815],
[8.037424105197152, 1.0745183599226105],
[3.8283742221337134, 5.434703666667799],
[4.163285353374302, 3.824711053464135],
[8.990129415804143, 3.8381287479280313],
[0.3477136039360462, 9.109092676821065],
[9.99239453770762, 9.769799829266773],
[2.346043116850195, 3.4011261091081746],
[1.5832518241325544, 7.871331660840792],
[5.481572376416787, 2.1868028883673496],
[6.968004651520748, 9.825904835466732],
[6.909865251429461, 2.8268026341252317],
[5.277218825389802, 3.4228175188445817],
[4.221042304291234, 3.4835149185790435],
[5.730157510183894, 1.8349353003696056],
[2.1770237331497433, 8.88788901110276],
[9.976521783714945, 4.471396828256779],
[7.975931557231881, 1.758786135735666],
[0.8437367592462297, 6.472387335353982],
[0.9133580832147381, 3.129974032574033],
[4.0920419448414345, 6.397693862575578],
[3.825395825104466, 2.8751829074691724],
[1.8215329886881415, 6.270029503063196],
[1.2712853945098124, 1.909822603366974],
[1.752179175796823, 0.9856816535969071],
[1.4680779043755499, 2.2817988881981446],
[2.2577586960168383, 8.128732578638257],
[9.370537912102494, 4.589861445575018],
[9.766611768211467, 2.2354895174878675],
[7.635369196535564, 1.3978675972676413],
[8.908798447310724, 2.7142091647275968],
[6.690176313695129, 9.109137290675257],
[8.38205302177652, 2.670558322764384],
[0.17784868908063745, 0.5329507149924706],
[7.063416761860192, 6.3330854271112464],
[4.442160150677078, 9.644093214769763],
[2.337946153941931, 7.467908639807233],
[5.438913216008281, 7.5921739640357755],
[3.9874475971614176, 9.27535305338556],
[9.7670184646786, 4.956431577923926],
[6.197142639059773, 6.741429144072217],
[2.2465379730509074, 5.498226005435907],
[5.979678702949559, 3.7736196067691177],
[2.45104722796041, 8.476183594966841],
[5.848358896033953, 1.0953843232253857],
[5.528103556111541, 3.31960279150345],
[4.770412545374498, 7.653771295233248],
[3.679881540567954, 2.4794980118742105],
[9.870012474809783, 1.3301197171477963],
[0.5059328119832507, 2.7409524534982443],
[0.8735958321915527, 3.304092221746057],
[3.79931998097897, 3.7871608485819577],
[2.111676294291093, 3.0603771180479877],
[1.5631222524885569, 5.049869809457305],
[6.7864165157116405, 8.850152698841178],
[0.17468625583073272, 8.178044425908592],
[7.911454959324948, 7.1423566932295515],
[9.227973312808562, 2.4585968482813536],
[1.750509196771819, 3.6886756246629373],
[8.824139370268306, 5.1892738525819375],
[5.86264054398023, 9.703129290175024],
[1.7863114391247426, 2.103394715509567],
[3.7142586251447063, 5.267427637877535],
[3.131955726374671, 2.6749227420530497],
[8.142733521484361, 0.9254560525694011],
[2.8749790645171713, 8.044566230616791],
[8.845809654862455, 8.376582660998098],
[3.9368814844502618, 1.1380362280087286],
[8.943610575815885, 6.207934150300223],
[0.6635113819867, 5.192685764855343],
[9.713550979300766, 1.2503953845198434],
[5.37545795106304, 5.0658383052096365],
[9.869925125526722, 7.525992217239804],
[1.1393903265994354, 9.483550634274033],
[2.482375539178636, 2.062507457075365],
[9.706513554542456, 1.8913022047926364],
[3.07056834794826, 2.6139059318274938],
[6.968190102437603, 5.2872268279746795],
[3.9903216703990796, 2.992951377679037],
[8.23214625211237, 6.094116329128532],
[4.767035641736563, 4.906393850599066],
[2.9835371552497048, 0.32019478824965697],
[9.115281984609831, 1.0483040038089952],
[5.741536820795602, 2.335183500320923],
[9.715171257420677, 0.7113540870352741],
[5.281502833057866, 8.771868751572597],
[2.1499006716792635, 4.398858835545739]],Y=[0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1,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