A, B = list(map(int, input().split()))

print((A * B))
print((eval(input().replace(" ","*"))))
A, B = list(map(int, input().split()))
print((A * B))

print((eval(input().replace(" ", "*"))))

-A, B = list(map(int, input().split())) -print((A * B)) +print((eval(input().replace(" ", "*"))))