for i in range(0, T):
    str=raw_input()
    str=str.split(' ')
    prod=int(str[0])*int(str[1])
    print(prod)
 

for i in range(0, T):
    str=raw_input()
    str=str.split(' ')
    prod=int(str[0])*int(str[1])
    print(prod)
 
