Chef is watching TV. The current volume of the TV is X. Pressing the volume up button of the TV remote increases the volume by 1 while pressing the volume down button decreases the volume by 1. Chef wants to change the volume from X to Y. Find the minimum number of button presses required to do so. 

------ Input Format ------ 

- The first line contains a single integer T - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two integers X and Y - the initial volume and final volume of the TV.

------ Output Format ------ 

For each test case, output the minimum number of times Chef has to press a button to change the volume from X to Y.

------ Constraints ------ 

$1 ≤ T ≤ 100$
$1 ≤ X, Y ≤ 100$

----- Sample Input 1 ------ 
2
50 54
12 10

----- Sample Output 1 ------ 
4
2

----- explanation 1 ------ 
Test Case 1: Chef can press the volume up button $4$ times to increase the volume from $50$ to $54$.

Test Case 2: Chef can press the volume down button $2$ times to decrease the volume from $12$ to $10$.

Difficulty: EASY

Solutions:
for i in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		print(x - y)
	else:
		print(y - x)


t = int(input())
for i in range(t):
	(n, m) = map(int, input().split())
	if n > m:
		print(n - m)
	else:
		print(m - n)


t = int(input())
while t:
	(x, y) = map(int, input().split())
	if x > y:
		print(x - y)
	else:
		print(y - x)
	t -= 1


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	if a > b:
		print(a - b)
	else:
		print(b - a)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	print(abs(x - y))


for j in range(int(input())):
	(x, y) = map(int, input().split())
	print(abs(x - y))


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	if x <= y:
		print(y - x)
	elif x >= y:
		print(x - y)


t = int(input())
for i in range(t):
	vol = input().split()
	x = int(vol[0])
	y = int(vol[1])
	press = x - y
	print(abs(press))


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	c = 0
	if x > y:
		c = c + (x - y)
	else:
		c = c + (y - x)
	print(c)


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	if X > Y:
		print(X - Y)
	else:
		print(Y - X)


n = int(input())
for i in range(n):
	(p, q) = map(int, input().split())
	print(abs(p - q))


for i in range(int(input())):
	(a, b) = map(int, input().split())
	print(abs(a - b))


n = int(input())
for i in range(n):
	m = input().split()
	print(abs(int(m[0]) - int(m[1])))


m = int(input())
for i in range(0, m):
	l = list(map(int, input().split()))
	a = l[0]
	b = l[1]
	c = a - b
	print(abs(c))


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	print(abs(y - x))


s = int(input())
for i in range(s):
	(a, b) = list(map(int, input().split()))
	if a >= b:
		print(a - b)
	else:
		print(b - a)


i = int(input(''))
j = 0
while j < i:
	(x, y) = map(int, input().split())
	print(abs(x - y))
	j += 1


n = int(input())
for i in range(0, n):
	(x, y) = map(int, input().split())
	if x > y:
		ans = x - y
		print(ans)
	else:
		ans = y - x
		print(ans)


from math import *
t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	print(abs(x - y))


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	print(max(X, Y) - min(X, Y))


T = int(input())
for i in range(T):
	(n, m) = map(int, input().split(' '))
	print(abs(n - m))


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x < y:
		d = y - x
		print(d)
	else:
		print(x - y)


t = int(input())
for i in range(t):
	(vol1, vol2) = input().split()
	vol1 = int(vol1)
	vol2 = int(vol2)
	res = vol1 - vol2
	if res < 0:
		res = res * -1
	print(res)


T = int(input())
for i in range(T):
	(x, y) = input().split()
	A = int(x)
	B = int(y)
	if A > B:
		print(A - B)
	else:
		print(B - A)


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	min_number = Y - X
	print(abs(min_number))


t = int(input())
cnt = 0
tot = 0
for i in range(0, t):
	(x, y) = list(map(int, input().split()))
	if x >= y:
		print(x - y)
	elif x < y:
		print(y - x)
	else:
		pass


n = int(input())
while n != 0:
	(a, b) = map(int, input().split())
	z = abs(a - b)
	print(z)
	n -= 1


a = int(input())
for i in range(a):
	l = list(map(int, input().split()))
	l.sort()
	z = l[1] - l[0]
	print(z)


T = int(input())
for i in range(0, T):
	(X, Y) = input().split()
	x = int(X)
	y = int(Y)
	if x > y:
		print(x - y)
	else:
		print(y - x)


t = int(input())
for i in range(t):
	(a, b) = input().split()
	x = int(a)
	y = int(b)
	if x > y:
		print(x - y)
	else:
		print(y - x)


def difference(a, b):
	return abs(a - b)
for _ in range(int(input())):
	(x, y) = map(int, input().split())
	r = difference(x, y)
	print(r)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	d = max(x, y)
	e = min(x, y)
	print(d - e)


for case in range(int(input())):
	(X, Y) = map(int, input().split())
	if Y < X:
		print(X - Y)
	else:
		print(Y - X)


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	if X > Y:
		print(X - Y)
	elif X < Y:
		print(Y - X)
	else:
		print(0)