Chef appeared for a placement test. 

There is a problem worth X points. Chef finds out that the problem has exactly 10 test cases. It is known that each test case is worth the same number of points. 

Chef passes N test cases among them. Determine the score Chef will get.

NOTE: See sample explanation for more clarity.

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

- First line will contain T, number of test cases. Then the test cases follow.
- Each test case contains of a single line of input, two integers X and N, the total points for the problem and the number of test cases which pass for Chef's solution.

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

For each test case, output the points scored by Chef.

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

$1 ≤ T ≤ 100$
$10 ≤ X ≤ 200$
$0 ≤ N ≤ 10$
$X$ is a multiple of $10$.

----- Sample Input 1 ------ 
4
10 3
100 10
130 4
70 0

----- Sample Output 1 ------ 
3
100
52
0

----- explanation 1 ------ 
Test Case $1$: The problem is worth $10$ points and since there are $10$ test cases, each test case is worth $1$ point. Since Chef passes $3$ test cases, his score will be $1 \cdot 3 = 3$ points.

Test Case $2$: The problem is worth $100$ points and since there are $10$ test cases, each test case is worth $10$ points. Since Chef passes all the $10$ test cases, his score will be $10 \cdot 10 = 100$ points.

Test Case $3$: The problem is worth $130$ points and since there are $10$ test cases, each test case is worth $13$ points. Since Chef passes $4$ test cases, his score will be $13 \cdot 4 = 52$ points.

Test Case $4$: The problem is worth $70$ points and since there are $10$ test cases, each test case is worth $7$ points. Since Chef passes $0$ test cases, his score will be $7 \cdot 0 = 0$ points.

Difficulty: EASY

Solutions:
for i in range(int(input())):
	(p, c) = list(map(int, input().split()))
	k = p // 10
	print(c * k)


T = int(input())
for Ti in range(T):
	[X, Y] = map(int, input().split(' '))
	per_point = X // 10
	print(per_point * Y)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	c = x // 10
	print(c * y)


t = int(input())
for i in range(t):
	(x, n) = map(int, input().split())
	a = x // 10
	print(a * n)


for _ in range(int(input())):
	(X, N) = map(int, input().split())
	t = X // 10
	print(N * t)


t = int(input())
for i in range(t):
	(x, n) = map(int, input().split())
	x = round(x / 10)
	score = x * n
	print(score)


c = int(input())
for i in range(c):
	(q, p) = map(int, input().split())
	print(q // 10 * p)


t = int(input())
for i in range(t):
	(x, n) = map(int, input().split())
	y = x / 10
	z = y * n
	print(int(z))


for i in range(int(input())):
	(n, m) = map(int, input().split())
	k = n // 10
	print(k * m)


for i in range(int(input())):
	(a, b) = map(int, input().split())
	print(a // 10 * b)


T = int(input())
for i in range(T):
	(x, y) = map(int, input().split())
	k = round(x / 10)
	print(k * y)


for _ in range(int(input())):
	(a, b) = map(int, input().split())
	print(a // 10 * b)


for _ in range(int(input())):
	(j, k) = map(int, input().split())
	t = j // 10
	print(k * t)


t = int(input())
while t >= 1:
	(x, n) = [int(x) for x in input().split()]
	print(x * n // 10)
	t -= 1


T = int(input())
for i in range(T):
	a = input().split(' ')
	total = int(a[0])
	att = int(a[-1])
	each = total / 10
	print(int(each * att))


for _ in range(int(input())):
	(x, n) = map(int, input().split())
	t = x // 10
	print(n * t)


T = int(input())
for i in range(T):
	(worth, test_case) = map(int, input().split())
	each_worth = int(worth / 10)
	print(each_worth * test_case)


t = int(input())
for _ in range(t):
	(x, y) = map(int, input().split())
	mul = x * y
	res = mul / 10
	print(int(res))


x = int(input())
for i in range(x):
	(a, b) = map(int, input().split())
	c = a // 10
	d = c * b
	print(d)


T = int(input())
for i in range(T):
	(X, N) = map(int, input().split())
	a = X // 10
	b = a * N
	print(b)


TC = int(input())
for i in range(TC):
	(X, N) = map(int, input().split())
	print(X * N // 10)


N = int(input())
h = 0
for i in range(N):
	(a, b) = list(map(int, input().split()))
	k = a / 10
	h = k * b
	print(round(h))


n = int(input())
for n in range(0, n):
	(x, y) = map(int, input().split())
	print(x // 10 * y)


t = int(input())
for _ in range(t):
	(A, B) = map(int, input().split())
	C = A // 10
	print(C * B)


t = int(input())
res = []
for i in range(t):
	inpt = [int(x) for x in input().split()]
	x = inpt[0]
	y = inpt[1]
	per_test_score = int(x / 10)
	res.append(per_test_score * y)
for ele in res:
	print(ele)


T = int(input())
for _ in range(T):
	(X, N) = map(int, input().split())
	score = N * (X // 10)
	print(score)


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	points = int(X / 10)
	pointsScored = Y * points
	print(pointsScored)


t = int(input())
for i in range(t):
	(x, n) = map(int, input().split())
	e = x // 10
	c = e * n
	print(c)


T = int(input())
for i in range(T):
	(x, y) = map(int, input().split())
	Tp = x / 10
	print(int(Tp * y))


t = int(input())

def test(t):
	x = []
	for i in range(1, t + 1):
		a = list(map(int, input().split()))
		x.append(a)
	for num in x:
		print(num[0] // 10 * num[1])
test(t)


T = int(input())
for i in range(T):
	(X, N) = map(int, input().split())
	points_per_test_case = X // 10
	chef_score = N * points_per_test_case
	print(chef_score)


T = int(input())
for i in range(0, T):
	(X, N) = map(int, input().split())
	print(X * N // 10)


T = int(input())
for i in range(T):
	(X, N) = map(int, input().split())
	(C, h) = divmod(X, 10)
	B = N * C
	print(B)


for _ in range(int(input())):
	(n, s) = map(int, input().split())
	print(n // 10 * s)


test_cases = int(input())
for i in range(test_cases):
	points = list(map(int, input().split()))
	point = points[0] // 10
	print(point * points[-1])


for _ in range(int(input())):
	(B, P) = map(int, input().split())
	t = B // 10
	print(P * t)


l = []
n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	z = x / 10 * y
	l.append(int(z))
print(*l, sep='\n')


test = int(input())
ans = []
while test:
	test = test - 1
	(X, N) = [int(x) for x in input().split()]
	ans.append(int(X / 10 * N))
for i in ans:
	print(i)


t = int(input())
for i in range(t):
	(X, N) = map(int, input().split())
	y = X // 10
	N = y * N
	print(N)


t = int(input())
for i in range(0, t):
	l = list(map(int, input().strip().split()))
	print(l[0] // 10 * l[1])


numOfTc = int(input())
for x in range(numOfTc):
	(numOfPoints, marksGained) = [int(x) for x in input().split()]
	testcases = 10
	print(int(numOfPoints / testcases) * marksGained)


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	c = int(X / 10 * Y)
	print(c)