Captain Bill the Hummingbird and his crew recieved an interesting challenge offer. Some stranger gave them a map, potion of teleportation and said that only this potion might help them to reach the treasure. 

Bottle with potion has two values x and y written on it. These values define four moves which can be performed using the potion:

  $(a, b) \rightarrow(a + x, b + y)$  $(a, b) \rightarrow(a + x, b - y)$  $(a, b) \rightarrow(a - x, b + y)$  $(a, b) \rightarrow(a - x, b - y)$ 

Map shows that the position of Captain Bill the Hummingbird is (x_1, y_1) and the position of the treasure is (x_2, y_2).

You task is to tell Captain Bill the Hummingbird whether he should accept this challenge or decline. If it is possible for Captain to reach the treasure using the potion then output "YES", otherwise "NO" (without quotes).

The potion can be used infinite amount of times.


-----Input-----

The first line contains four integer numbers x_1, y_1, x_2, y_2 ( - 10^5 ≤ x_1, y_1, x_2, y_2 ≤ 10^5) — positions of Captain Bill the Hummingbird and treasure respectively.

The second line contains two integer numbers x, y (1 ≤ x, y ≤ 10^5) — values on the potion bottle.


-----Output-----

Print "YES" if it is possible for Captain to reach the treasure using the potion, otherwise print "NO" (without quotes).


-----Examples-----
Input
0 0 0 6
2 3

Output
YES

Input
1 1 3 6
1 5

Output
NO



-----Note-----

In the first example there exists such sequence of moves:

  $(0,0) \rightarrow(2,3)$ — the first type of move  $(2,3) \rightarrow(0,6)$ — the third type of move

Difficulty: interview

Starter code:

Solutions:
x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))

x, y = abs(x), abs(y)

x_ = abs(x2 - x1)
y_ = abs(y2 - y1)

if x_ % x == 0 and y_ % y == 0:
    if (x_ // x + y_ // y) % 2 == 0:
        print("YES")
    else:
        print("NO")
else:
    print("NO")


x1, y1, x2, y2 = map(int, input().split())
x, y = map(int, input().split())

x, y = abs(x), abs(y)

x_ = abs(x2 - x1)
y_ = abs(y2 - y1)

if x_ % x == 0 and y_ % y == 0:
    if (x_ // x + y_ // y) % 2 == 0:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

x1, y1, x2, y2 = map(int, input().split())
a, b = map(int, input().split())
if not abs(x1 - x2) % a and not abs(y1 - y2) % b and (abs(x1 - x2) // a) % 2 == (abs(y1 - y2) // b) % 2:
    print('YES')
else:
    print('NO')

x1, y1, x2, y2 = map(int, input().split())
a, b = map(int, input().split())

x = (x1 - x2) / a
y = (y1 - y2) / b

if x == int(x) and y == int(y) and int(x) & 1 == int(y) & 1:
	print('YES')
else:
	print('NO')

x1, y1, x2, y2 = map(int, input().split())
a, b = map(int, input().split()) #
if not abs(x1 - x2) % a and not abs(y1 - y2) % b and (abs(x1 - x2) // a) % 2 == (abs(y1 - y2) // b) % 2:
    print('YES')
else:
    print('NO')

x1,y1,x2,y2 = list(map(int,input().split()))
x,y = list(map(int,input().split()))
if (x2 - x1) % x == 0 and (y2 - y1) % y == 0:
    if ((x2 - x1) // x - ((y2 - y1) // y)) % 2 == 0:
        print("YES")
    else:
        print("NO")
else:
    print("NO")


x1, y1, x2, y2 = map(int, input().split())
a, b = map(int, input().split())

x = (x1 - x2) / a
y = (y1 - y2) / b

if x == int(x) and y == int(y) and (int(x) & 1 == int(y) & 1):
	print('YES')
else:
	print('NO')

x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))

x, y = abs(x), abs(y)

x_ = abs(x2 - x1)
y_ = abs(y2 - y1)

if (x == 0 or x_ % x == 0) and (y == 0 or y_ % y == 0):
    if x == 0 or y == 0:
        print("YES")
    if (x_ // x + y_ // y) % 2 == 0:
        print("YES")
    else:
        print("NO")
else:
    print("NO")


x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))

a = (x2 - x1) // x
b = (y2 - y1) // y

if a % 2 == b % 2 and (x2 - x1) % x == 0 and (y2 - y1) % y == 0:
    print("YES")
else:
    print("NO")



x1, y1, x2, y2 = [int(i) for i in input().split()]
x, y = [int(i) for i in input().split()]

dx = abs(x2 - x1)
dy = abs(y2 - y1)

if dx % x != 0 or dy % y != 0:
    print("NO")
else:
    kx = dx // x
    ky = dy // y

    if (kx % 2) == (ky % 2):
        print("YES")
    else:
        print("NO")



x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))

x, y = abs(x), abs(y)

x_ = abs(x2 - x1)
y_ = abs(y2 - y1)

if (x == 0 or x_ % x == 0) and (y == 0 or y_ % y == 0):
    if x == 0 or y == 0:
        print("YES")
    if (x_ // x + y_ // y) % 2 == 0:
        print("YES") # kek
    else:
        print("NO")
else:
    print("NO")


x1, y1, x2, y2 = [int(i) for i in input().split(' ')]
a, b = [int(i) for i in input().split(' ')]

dx = abs(x1 - x2)
dy = abs(y1 - y2)

if dx % a == 0 and dy % b == 0 and (dx / a) % 2 == (dy / b) % 2:
    print('YES')
else:
    print('NO')


x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))
dx, dy = x1-x2, y1-y2
if dx%x == 0 and dy%y == 0 and (dx//x + dy//y)%2 == 0:
    print('YES')
else:
    print('NO')


a,b,c,d=map(int,input().split())
x,y=map(int,input().split())
r=c-a
t=d-b
if r%x==0 and t%y==0 and (r//x-t//y)%2==0:
    print("YES")
else:
    print("NO")

x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))
x0, y0 = x2 - x1, y2 - y1
x0, y0 = abs(x0), abs(y0)
for a in range(- 2 * 10 ** 5, 2 * 10 ** 5 + 1):
	if x0 % x == 0:
		b = x0 // x - a
		if a * y - b * y == y0:
			print('YES')
			return
print('NO')


a, b, c, d = list(map(int, input().split()))
x, y = list(map(int, input().split()))

if abs(c - a) % abs(x) == 0 and abs(c - a) / abs(x) % 2 == abs(d - b) / abs(y) % 2 and abs(d - b) % abs(y) == 0:
    print("YES")
else:
    print("NO")



## 1

inp = list(map(int, input().split()))
x1, y1, x2, y2 = [inp[i] for i in range(4)]
inp = list(map(int, input().split()))
x, y = inp[0], inp[1]
d1 = x2 - x1
d2 = y2 - y1
if d1%x==0 and (int(d1/x)+int(d2/y))%2==0 and d2%y==0:
    print('YES')
else:   print('NO')
    


inp=input().split()
x1=int(inp[0])
y1=int(inp[1])
x2=int(inp[2])
y2=int(inp[3])
inp=input().split()
x=int(inp[0])
y=int(inp[1])
if(abs(x2-x1)%x==0 and abs(y2-y1)%y==0):
	val1=abs(x2-x1)//x
	val2=abs(y2-y1)//y 	
	if(abs(val2-val1)%2==0):
		print("YES")
	else:
		print("NO")
else:
	print("NO")


x1, y1, x2, y2 = list(map(int, input().split()))
x, y = list(map(int, input().split()))

if abs(x1 - x2) % x != 0 or abs(y1 - y2) % y != 0:
    print('NO')
else:
    a = abs(x1 - x2) / x
    b = abs(y1 - y2) / y
    if a % 2 == b % 2:
        print('YES')
    else:
        print('NO')


x1, y1, x2, y2 = map(int, input().split())
x, y = map(int, input().split())

deltaX = abs(x2-x1)
deltaY = abs(y2-y1)

# if (deltaY // y) == (deltaX // x):
# 	print("YES")
# elif (deltaY // x) == (deltaX // y):
# 	print("YES")
# elif (deltaX % x == 0) and (deltaY == 0):
# 	print("YES")
# elif (deltaY % y == 0) and (deltaX == 0):
# 	print("YES")
# elif deltaX == deltaY == 0:
# 	print("YES")
# else:
# 	print("NO")

if ((y2-y1)%(2*y) == 0) and ((x2-x1)%(2*x) == 0):
	print("YES")
elif ((x2-x-x1)%(2*x) == 0) and ((y2-y-y1)%(2*y) == 0):
	print("YES")
else:
	print("NO")


line1 = input()
line2 = input()

coords = list( map(int, line1.split()) )
v1, v2 = list( map(int, line2.split()) )

dx = coords[2] - coords[0]
dy = coords[3] - coords[1]

if dx % v1 == 0 and dy % v2 == 0 and \
  (dx // v1 - dy // v2) % 2 == 0:
    print ('YES')
else:
    print ('NO')





def main():
    x1, y1, x2, y2 = list(map(int, input().split()))
    x, y = list(map(int, input().split()))

    if abs(x2 - x1) % x or abs(y2 - y1) % y:
        print('NO')
        return

    if (abs(x2 - x1) // x + abs(y2 - y1) // y) % 2 == 0:
        print('YES')
    else:
        print('NO')

main()


a,b,c,d=input().strip().split(' ')
x1,y1,x2,y2=(int(a),int(b),int(c),int(d))
x,y=input().strip().split(' ')
x,y=(int(x),int(y))
if (x2-x1)%x==0 and (y2-y1)%y==0:
    a1=(x2-x1)//x
    a2=(y2-y1)//y
    if (a1%2==0 and a2%2==0) or (a1%2==1 and a2%2==1):
        print("YES")
        return
print("NO")

def main():
    x1, y1, x2, y2 = list(map(int, input().split()))
    a, b = list(map(int, input().split()))

    xd = x2 - x1
    yd = y2 - y1

    if xd % a != 0 or yd % b != 0:
        print('NO')
        return

    xd /= a
    yd /= b

    print("YES" if (xd % 2) == (yd % 2) else "NO")

main()