At a geometry lesson Gerald was given a task: to get vector *B* out of vector *A*. Besides, the teacher permitted him to perform the following operations with vector *А*:
-  Turn the vector by 90 degrees clockwise.-  Add to the vector a certain vector *C*.
Operations could be performed in any order any number of times.

Can Gerald cope with the task?
The first line contains integers *x*<sub class="lower-index">1</sub> и *y*<sub class="lower-index">1</sub> — the coordinates of the vector *A* ( - 10<sup class="upper-index">8</sup> ≤ *x*<sub class="lower-index">1</sub>, *y*<sub class="lower-index">1</sub> ≤ 10<sup class="upper-index">8</sup>). The second and the third line contain in the similar manner vectors *B* and *C* (their coordinates are integers; their absolute value does not exceed 10<sup class="upper-index">8</sup>).
0 0
1 1
0 1
YES
0 0
1 1
1 1
YES
0 0
1 1
2 2
NO
2 3
2 3
0 0
YES
-4 -2
0 0
-2 -1
YES
-100000000 -100000000
100000000 100000000
0 1
YES
3 4
-4 3
1 7
YES
1 1
2 2
-3 -3
YES
0 1
2 3
7 -11
NO
-2 2
3 3
5 0
YES
1 3
3 1
3 3
YES
0 0
0 0
0 0
YES
0 0
12 12
0 0
NO
0 100000000
0 -100000000
1 0
YES
100000000 4444
-4444 -100000000
50000000 50000000
YES
45 6
65 5
0 5
NO
1 0
0 1
2 1
YES
7 11
13 13
0 4
YES
4 2
0 -1
2 -2
NO
4 -3
-3 1
0 -2
NO
-2 -1
0 1
-2 -3
NO
-1 1
2 1
-2 -1
NO
4 0
4 -3
2 4
NO
-3 -2
-3 3
4 4
NO
2 1
1 -4
-4 -2
NO
3 1
1 -1
-1 -4
NO
2 -1
-2 -4
1 -1
NO
0 4
-1 -3
4 1
NO
-4 1
-4 2
0 -2
NO
-2 -2
-2 3
3 -1
NO
-3 0
2 1
-2 0
YES
-1 -2
3 -2
-3 -1
NO
3 1
-2 3
-2 -2
NO
0 -4
-1 -2
0 1
YES
-4 -4
1 0
-1 -3
NO
2 0
-2 1
2 3
NO
-2 4
0 1
-2 1
YES
4 1
2 -1
3 0
YES
2 3
3 -3
3 -2
NO
2 4
-4 1
3 3
NO
-4 -3
-3 -4
1 4
NO
3 2
1 0
-4 -1
NO
0 -4
-3 -2
3 -1
NO
-2 2
4 -2
-2 -2
NO
2 2
-2 1
0 -3
YES
0 4
1 1
-4 2
NO
-4 -4
4 1
-4 -2
NO
-4 2
4 -1
-2 -1
YES
-7 9
-2 10
-6 -4
NO
4 7
2 9
-7 -6
NO
-6 9
6 6
9 6
NO
-9 4
8 1
-8 8
NO
-4 3
9 -2
-3 -3
YES
-1 -7
3 -2
-4 -3
NO
-9 4
-2 -8
9 4
NO
8 2
-10 1
10 -2
NO
-7 9
5 5
-2 6
NO
-8 1
-10 -8
1 -4
YES
-65 -52
31 -22
0 -77
NO
74 -55
0 50
-68 26
NO
-84 28
33 -15
-19 93
NO
69 -30
-66 -100
86 -38
NO
-43 41
-99 92
-20 51
NO
-17 -33
56 -75
-93 65
NO
-95 -32
-90 -43
-40 16
NO
-48 -92
59 -39
-45 14
NO
95 -13
22 -36
-25 -60
NO
81 -91
88 91
-90 -77
NO
281 -914
-217 113
479 329
NO
620 514
-276 966
578 106
NO
-253 -283
-400 834
718 -701
NO
478 884
418 -713
-704 -961
NO
-380 -712
-263 -104
187 -329
NO
-2919 -7389
-4955 -1807
2103 9400
NO
6040 9662
1903 7813
5296 8638
NO
-6008 -6748
-7106 -5319
-1940 8048
NO
-2171 -9855
4255 -3857
6446 9559
NO
-8916 9282
2666 2344
9109 -2730
NO
-52856 -58459
-41878 81991
-22821 59850
NO
10327 -86117
-51156 -26888
-41007 27453
NO
-46921 46529
87797 -73235
18213 -86569
NO
-66381 86177
24332 -47590
-57592 80499
NO
-69415 74546
37868 -89407
19505 -59846
NO
-817674 316187
-934134 660884
-297136 -482732
NO
-127066 941778
-654926 -838416
809821 -229819
NO
251893 526074
593818 288991
-120613 211128
NO
910801 387995
-846325 167413
-425681 -149086
NO
769260 131679
-399548 -620680
-439456 -164378
NO
4931249 7448503
8740191 1123509
4410817 -3494433
NO
6752575 4525855
-2269760 5249721
7718280 -5550799
NO
9121753 -1624238
1358642 -7305098
9182854 -2204498
NO
-8540887 -7511495
-2659834 -6893955
8115011 -3482324
NO
-4664203 -2707147
7039468 5543778
5854600 -7808563
NO
-33622572 -65473509
-54144104 -59861983
89814248 47623606
NO
-75629161 -68114618
23285096 90997125
84795646 72358903
NO
-79956125 -88524398
10949698 32312326
-76024701 -77225990
NO
26164297 21666711
-20848219 -49928045
-36819763 26811563
NO
98219518 -66590186
14970849 -24409139
82951915 43915349
NO
67195377 58333196
-60739152 -69557068
-82003989 74825425
NO
92141071 -48275413
-47968469 -13277723
-15839680 51548907
NO
82237071 -62729681
45778244 -73153917
25235041 83636828
NO
82539131 17433579
-56091046 68716401
-73706000 41779060
NO
-21570525 17439241
-47857043 39456884
-36121539 69473879
NO
-38 -99
76 43
53 -84
NO
-52 0
-60 -50
-47 91
NO
-53 30
-14 -19
-61 11
NO
60 55
-88 -38
0 59
NO
89 55
-13 27
-13 -81
NO
76 73
82 -92
-95 95
NO
-81 57
-96 0
-73 -58
NO
0 45
42 -47
-51 -82
NO
16 39
95 18
39 -64
NO
-23 36
-72 0
44 -60
NO
57 43
58 -54
-43 0
NO
51 77
-9 81
0 79
NO
0 14
88 0
88 0
NO
0 0
48 0
-62 68
NO
-35 -90
0 -42
-8 -60
NO
59 0
84 -28
0 58
NO
10 -15
23 0
88 -36
NO
-66 -34
59 -38
13 0
NO
0 -14
80 94
-14 15
NO
-28 0
0 43
0 -51
NO
0 0
-30010581 33889813
12862004 15575384
NO
94993760 -37786635
-75326491 -21534927
77949983 95218547
NO
72913933 0
54300106 60510850
32295823 -60694017
NO
0 -77922994
47873382 0
-48532375 -33729248
NO
-50600641 25410541
0 80575245
0 62979800
NO
-34280877 -82070958
66030914 -52671703
0 -90987154
NO
27523869 0
52900492 0
33031150 -65488267
NO
69226391 60708120
43106396 25795293
80380957 88577789
NO
0 40072438
-61016486 88561432
28431496 60485628
NO
0 24078959
75842668 -56466325
-64025705 12045125
NO
24334185 -27189752
0 -47230185
0 -37588021
NO
45479363 56862079
28029163 0
-38736303 59867108
NO
-66738889 -24309585
-39387414 -42921545
-10462276 0
NO
-95534030 -14392539
-89751090 79655267
-77491839 40745315
NO
-48666683 22046293
77649947 84819904
-32803712 -99366118
NO
10150745 93724033
-59625481 -18232739
34384941 -28147896
NO
-12344578 -26470996
0 -25186906
-11572514 -38120367
NO
-59220368 0
0 -75968891
0 74081590
NO
-78038627 -49761049
0 22143739
0 -60448485
NO
80358706 0
23898082 -87631921
-48798084 88174414
NO
10 13
13 10
0 0
NO
0 0
10 13
10 13
YES
10 13
0 0
0 0
NO
10 13
-10 -13
0 0
YES
10 13
-13 10
0 0
YES
100000000 1
99999999 1
0 0
NO
100000000 1
99999999 1
1 0
YES
100000000 1
99999999 1
0 1
YES
100000000 1
99999999 1
100000000 1
NO
0 0
1 0
100000000 0
NO
0 0
1 1
100000000 100000000
NO
0 0
100000000 99999999
100000000 100000000
NO
0 0
99999999 1
100000000 1
NO
100000000 0
99999999 1
0 0
NO
100000000 0
99999999 1
1 0
YES
100000000 0
99999999 1
100000000 1
YES
100000000 0
1 0
100000000 0
NO
100000000 0
1 1
100000000 100000000
NO
100000000 0
100000000 99999999
100000000 100000000
NO
100000000 0
99999999 1
100000000 1
YES
100000000 100000000
100000000 100000000
0 1
YES
5491 -1888
58611137 -17279700
5629 -7705
YES
6791 1587
23543337 24784850
3970 2327
YES
1214 8046
84729946 38445218
3488 -5838
YES
-8725 -6466
77278594 -3622341
9344 -1256
YES
-5922 -2466
-46708374 -71085154
-9882 298
YES
4560 -6056
97943322 -20616116
-1107 -5440
YES
-5645 2118
-23770935 62615171
-2080 9473
YES
2630 8069
-75372166 10085837
-781 5563
YES
-2588 9699
50743921 -45114432
-5288 -7358
YES
6889 9158
-843345 89332306
7495 518
YES
-2037 -1006
-13301683 -83185771
-3487 -4590
YES
-925 -1240
25904140 -92743662
-8028 -2933
YES
-573 5611
-88934372 16274202
-689 9294
YES
-2859 7599
37114911 -75750711
-9150 -7398
YES
-9234 9520
58867682 17319702
2273 -5831
YES
3411 2674
-21536783 -33506984
-8254 -3778
YES
1778735 -1803902
-92875004 -2966747
-4125460 1149178
YES
-2413874 4166580
83681508 25911924
8615149 -6396049
YES
5987456 -1627274
-45083510 25782192
-758074 971006
YES
-881780 8157586
-83355045 -86221641
-5080144 1016625
YES
836292 -1555463
44451624 -63102407
-7051275 -9619647
YES
-5493123 4007625
-49191721 -31674255
-9754636 6418706
YES
-2797960 2819364
59202462 71529306
7799041 -4640234
YES
-7355750 -5710643
-48075697 25746997
-3569463 3650928
YES
2517677 8638224
-75757217 -17117074
-2847910 1342478
YES
-1782346 -522853
56023653 37655619
7455445 -936314
YES
3922510 4979687
-83613487 73792320
-2355010 7196240
YES
-2911250 -3788914
9975544 20015444
7278331 4185016
YES
9495309 -4445256
66581093 -48831427
5864682 -8016505
YES
-6389242 -2092524
-18806778 85154882
8457769 5141401
YES
-6223066 -5334825
36109780 -5416931
3246899 -4890875
YES
-1334950 3309875
-20438919 -45390492
-722222 280804
YES
122542 -4826228
-20855162 89301242
8917870 2568139
YES
-4662151 6642823
-620983 29911124
6914655 -1204368
YES
806224 -7075643
94593948 -33094579
-540130 -5612242
YES
2370720 9260730
-31929898 43611588
2817748 6788032
YES
5 -12
-47316040 -62956553
-7 0
YES
-7 0
-51538008 -92285620
-3 0
YES
-12 9
21015609 49124671
3 2
YES
-11 -10
-1042937 89231497
0 9
YES
-3 11
6154942 80496611
5 0
YES
-13 12
826557 -90209918
0 -5
YES
-3 -9
-72817057 -54284335
-3 -1
YES
-8 -8
66949614 -53875176
-2 -4
YES
6 2
-97096230 19770854
-5 4
YES
10 7
91660376 -58581376
0 -7
YES
0 0
100000000 99999997
1 0
YES
0 0
100000000 99999997
0 1
YES
-100000000 -100000000
100000000 100000000
1 0
YES
0 0
100000000 100000000
1 0
YES
32 34
-50070000 21003000
0 1
YES
0 0
100000000 99999999
1 0
YES
0 0
1 1
0 0
NO
0 0
100000000 0
1 2
YES
0 0
100000000 99999999
1 0
YES
1 1
1 2
0 0
NO
0 0
4 2
1 1
YES
100000000 100000000
0 0
1 1
YES
0 0
10000000 10000000
1 1
YES
1 2
-2 1
0 0
YES
1 1
1 -1
0 0
YES
0 0
-63411382 -42720436
123456 543253
YES
def check(x, y, bx, by, cx, cy):
    x -= bx
    y -= by
    cnt = cx * cx + cy * cy
    if cnt == 0:
        return x == 0 and y == 0
    return (cx * y - cy * x) % cnt == 0 and (cx * x + cy * y) % cnt == 0

ax, ay, bx, by, cx, cy = map(int, input().split())
if check(ax, ay, bx, by, cx, cy) or check(-ay, ax, bx, by, cx, cy) or check(ay, -ax, bx, by, cx, cy) or check(-ax, -ay, bx, by, cx, cy):
    print("YES")
else:
    print("NO")