#include<stdio.h>
typedef struct Rectangle{
    float length;
    float width;
}land;
int main()
{   float area;
    float length;
    float width;
int num,ind;
scanf("%d",&num);

    land plot[num];
    for(ind=0;ind<num;ind++){
    scanf("%f",&plot[ind].length);
    scanf("%f",&plot[ind].width);
    area=length*width;}
    for(ind=0;ind<num;ind++){
        printf("%.lf",&area);
    }
    return 0;
}