#include <bits/stdc++.h> using namespace std; void mainSolve() { int x,y,z; cin>>x>>y>>z; long long ans=x*y*z; cout<<ans<<endl; } int main() { int t; cin>>t; while(t--) mainSolve(); return 0; }