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