Being tired of participating in too many Codeforces rounds, Gildong decided to take some rest in a park. He sat down on a bench, and soon he found two rabbits hopping around. One of the rabbits was taller than the other.

He noticed that the two rabbits were hopping towards each other. The positions of the two rabbits can be represented as integer coordinates on a horizontal line. The taller rabbit is currently on position $x$, and the shorter rabbit is currently on position $y$ ($x \lt y$). Every second, each rabbit hops to another position. The taller rabbit hops to the positive direction by $a$, and the shorter rabbit hops to the negative direction by $b$.

 [Image] 

For example, let's say $x=0$, $y=10$, $a=2$, and $b=3$. At the $1$-st second, each rabbit will be at position $2$ and $7$. At the $2$-nd second, both rabbits will be at position $4$.

Gildong is now wondering: Will the two rabbits be at the same position at the same moment? If so, how long will it take? Let's find a moment in time (in seconds) after which the rabbits will be at the same point.


-----Input-----

Each test contains one or more test cases. The first line contains the number of test cases $t$ ($1 \le t \le 1000$).

Each test case contains exactly one line. The line consists of four integers $x$, $y$, $a$, $b$ ($0 \le x \lt y \le 10^9$, $1 \le a,b \le 10^9$) — the current position of the taller rabbit, the current position of the shorter rabbit, the hopping distance of the taller rabbit, and the hopping distance of the shorter rabbit, respectively.


-----Output-----

For each test case, print the single integer: number of seconds the two rabbits will take to be at the same position.

If the two rabbits will never be at the same position simultaneously, print $-1$.


-----Example-----
Input
5
0 10 2 3
0 10 3 3
900000000 1000000000 1 9999999
1 2 1 1
1 3 1 1

Output
2
-1
10
-1
1



-----Note-----

The first case is explained in the description.

In the second case, each rabbit will be at position $3$ and $7$ respectively at the $1$-st second. But in the $2$-nd second they will be at $6$ and $4$ respectively, and we can see that they will never be at the same position since the distance between the two rabbits will only increase afterward.

Starter code:

Solutions:
def one():
    return int(input())


def two():
    return list(map(int, input().split()))


def lis():
    return list(map(int, input().split()))


def st():
    return input()


for _ in range(one()):
    x, y, a, b = list(map(int, input().split()))
    d = y - x
    if d%(a+b)==0:
        print(d//(a+b))
    else:
        print(-1)


t = int(input())
for _ in range(t):
    x,y,a,b = list(map(int,input().split()))
    k = y - x
    if k % (a + b) == 0:
        print(k // (a+b))
    else:
        print(-1)


from math import *

t = int(input())
for i in range(t):
    x, y, a, b = list(map(int, input().split()))
    if (y - x) % (a + b) == 0:
        print((y - x) // (a + b))
    else:
        print(-1)


for __ in range(int(input())):
    x, y, a, b = map(int, input().split())
    z = y - x
    c = a + b
    print(-1 if z % c else z // c)

for _ in range(int(input())):
	x, y, a, b = list(map(int, input().split()))
	
	t = (y - x) / (a + b)
	tz = (y - x) // (a + b)

	if t != tz:
		print(-1)
	else:
		print(tz)


#  =========     /\       /|    |====/|
#      |        /  \       |    |   / |
#      |       /____\      |    |  /  |
#      |      /      \     |    | /   |
#  ========= /        \  =====  |/====|  
#  code

def main():
    t = int(input())
    for _ in range(t):
        x,y,a,b = map(int,input().split())
        i = (y - x)//(a + b)
        if x + a * i == y - b * i:
            print(i)
        else:
            print(-1)
    return

def __starting_point():
    main()
__starting_point()

from math import *
import itertools


zzz = int(input())

for zz in range(zzz):
    x, y, a, b = list(map(int, input().split()))
    s = y - x
    t = s / (a + b)
    if int(t) == t:
        print(int(t))
    else:
        print(-1)


from math import *

t = int(input())
for y in range(t):
	x,y,a,b = list(map(int,input().split()))
	if (y-x)%(a+b) != 0: print(-1)
	else:
		print((y-x)//(a+b))


import sys
input = sys.stdin.readline

Q = int(input())
Query = [list(map(int, input().split())) for _ in range(Q)]

for x, y, a, b in Query:
    d = y-x
    r = a+b
    if d%r == 0:
        print(d//r)
    else:
        print(-1)

t = int(input())
for _ in range(t):
    x,y,a,b = [int(i) for i in input().split()]
    s = (y-x)/(a+b)
    if s.is_integer():
        print(int(s))
    else:
        print(-1)

t=int(input())
for _ in range(t):
    
    x,y,a,b=list(map(int,input().split()))
    if (y-x)%(a+b)!=0:
        print(-1)
    else:
        print(int((y-x)/(a+b)))


for _ in range(int(input())):
    x, y, a, b = map(int, input().split())

    d = y - x
    if d % (a + b ) == 0:
        print(d // (a + b))
    else:
        print(-1)

for nt in range(int(input())):
	x,y,a,b=map(int,input().split())
	if (y-x)%(a+b)==0:
		print ((y-x)//(a+b))
	else:
		print (-1)

def solve(X, Y, A, B):
    d, r = divmod(Y - X, A + B)
    if r == 0:
        return d
    else:
        return -1


def __starting_point():
    T, = list(map(int, input().split()))
    for t in range(T):
        X, Y, A, B = list(map(int, input().split()))
        ans = solve(X, Y, A, B)
        print(ans)

__starting_point()

import sys
import math

def input():
    return sys.stdin.readline().strip()

def iinput():
    return [int(x) for x in sys.stdin.readline().split()]

def main():
    x, y, a, b = iinput()
    if (y - x) % (a + b) == 0:
        print((y - x) // (a + b))
    else:
        print(-1)
    return

for ______ in range(int(input())):
    main()