This semester, Chef took X courses. Each course has Y units and each unit has Z chapters in it.

Find the total number of chapters Chef has to study this semester.

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

- The first line will contain T, the number of test cases. Then the test cases follow.
- Each test case consists of a single line of input, containing three space-separated integers X, Y, and Z.

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

For each test case, output in a single line the total number of chapters Chef has to study this semester.

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

$1 ≤ T ≤ 1000$
$1 ≤ X, Y, Z ≤ 1000$

----- Sample Input 1 ------ 
3
1 1 1
2 1 2
1 2 3
----- Sample Output 1 ------ 
1
4
6
----- explanation 1 ------ 
Test case $1$: There is only $1$ course with $1$ unit. The unit has $1$ chapter. Thus, the total number of chapters is $1$.

Test case $2$: There are $2$ courses with $1$ unit each. Thus, there are $2$ units. Each unit has $2$ chapters. Thus, the total number of chapters is $4$.

Test case $3$: There is only $1$ course with $2$ units. Each unit has $3$ chapters. Thus, the total number of chapters is $6$.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
n = int(input())
for i in range(n):
	a = list(map(int, input().split()))
	print(a[0] * a[1] * a[2])


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


c = int(input())
for i in range(c):
	(s, i, r) = map(int, input().split())
	print(s * i * r)


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


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


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


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


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


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	if x == 1:
		print(y * z)
	else:
		print(x * y * z)


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


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


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


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


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


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


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


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


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


n = int(input())
while n > 0:
	(a, b, c) = map(int, input().split())
	print(a * b * c)
	n -= 1


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


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


t = int(input())
while t:
	(x, y, z) = map(int, input().split())
	print(x * y * z)
	t -= 1


T = int(input())
for i in range(0, T):
	(X, Y, Z) = input().split()
	x = int(X)
	y = int(Y)
	z = int(Z)
	print(x * y * z)


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


n = int(input())
for i in range(n):
	s = input()
	l = s.split()
	print(int(l[0]) * int(l[1]) * int(l[2]))


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


x = int(input())
while x != 0:
	(a, b, c) = map(int, input().split())
	print(a * b * c)
	x -= 1