#include <iostream> using namespace std; int main() { int t; cin>>t; while(t--){ int x, y, z; cin>>x>>y>>z; cout<<x*y*z<<endl; } return 0; }