Harsh was recently gifted a book consisting of N pages. Each page contains exactly M words printed on it. As he was bored, he decided to count the number of words in the book. 

Help Harsh find the total number of words in the book.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of two space-separated integers on a single line, N and M — the number of pages and the number of words on each page, respectively.

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

For each test case, output on a new line, the total number of words in the book.

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

$1 ≤ T ≤ 100$
$1 ≤ N ≤ 100$
$1 ≤ M ≤ 100$

----- Sample Input 1 ------ 
4
1 1
4 2
2 4
95 42

----- Sample Output 1 ------ 
1
8
8
3990

----- explanation 1 ------ 
Test case $1$: The book consists of only $1$ page, and each page has only $1$ word. Hence, the total number of words is $1$.

Test case $2$: The book consists of $4$ pages, and each page has $2$ words. Hence, the total number of words is $2+2+2+2=8$.

Test case $3$: The book consists of $2$ pages, and each page has $4$ words. Hence, the total number of words is $4+4=8$.

Test case $4$: The book consists of $95$ pages, and each page has $42$ words. Hence, the total number of words is $3990$.

Difficulty: EASY

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


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


T = int(input())
for _ in range(T):
	(N, M) = map(int, input().split())
	print(N * M)


book = int(input())
for b in range(book):
	(P, W) = map(int, input().split())
	print(P * W)


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


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


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


t = int(input())
for u in range(t):
	(N, M) = list(map(int, input().split()))
	print(N * M)


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


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


t = int(input())
for item in range(t):
	(x, y) = map(int, input().split())
	print(x * y)


for t in range(int(input())):
	(i, j) = map(int, input().split(' '))
	print(i * j)


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


T = int(input())
for i in range(T):
	(N, M) = map(int, input().split())
	total_words = N * M
	print(total_words)


t = int(input())
while t != 0:
	(n, m) = map(int, input().split())
	print(n * m)
	t -= 1


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


t = int(input())
for i in range(t):
	(n, m) = input().split()
	n = int(n)
	m = int(m)
	o = n * m
	print(o)


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


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


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


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


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


a = int(input())
for i in range(a):
	(x, y) = map(int, input().split())
	print(x * y)


t = int(input())
for i in range(t):
	(N, M) = map(int, input().split())
	print(N * M)


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


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


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


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


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


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


t = int(input())
for loop in range(t):
	(n, m) = map(int, input().split())
	print(n * m)


t = int(input())

def words(t):
	for i in range(1, t + 1):
		(n, m) = list(map(int, input().split()))
		print(n * m)
words(t)


t = int(input())
for i in range(t):
	(n, m) = [int(x) for x in input().split()]
	print(n * m)


t = int(input())
for _ in range(t):
	(p, w) = map(int, input().split())
	print(p * w)


n = int(input())
for _ in range(n):
	(m, n) = list(map(int, input().split()))
	print(m * n)


t = int(input())
for _ in range(t):
	(x, m) = [int(x) for x in input().split()]
	c = x * m
	print(c)


for t in range(int(input())):
	(s, k) = map(int, input().split())
	print(s * k)


T = int(input())
while T != 0:
	(x, y) = map(int, input().split())
	print(x * y)
	T -= 1


n = int(input())
while n > 0:
	(k, m) = map(int, input().split())
	print(k * m)
	n -= 1


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


t = int(input())
for _ in range(t):
	(n, m) = map(int, input().split())
	total = n * m
	print(total)