from decimal import Decimal

a,b = input().split()

d = Decimal(a)

c = Decimal(b)

print(((d*c)//1))

from decimal import Decimal

a,b = list(map(Decimal,input().split()))

print(((a*b)//1))
from decimal import Decimal

a, b = input().split()
d = Decimal(a)
c = Decimal(b)
print(((d * c) // 1))

from decimal import Decimal

a, b = list(map(Decimal, input().split()))
print(((a * b) // 1))

-a, b = input().split() -d = Decimal(a) -c = Decimal(b) -print(((d * c) // 1)) +a, b = list(map(Decimal, input().split())) +print(((a * b) // 1))