from decimal import *

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

ans=A*B

print((ans.quantize(Decimal('1'),rounding=ROUND_FLOOR)))
A,B=input().split()

B1,B2=B.split('.')

print((int(A)*(int(B1)*100+int(B2))//100))
from decimal import *

A, B = list(map(Decimal, input().split()))
ans = A * B
print((ans.quantize(Decimal("1"), rounding=ROUND_FLOOR)))

A, B = input().split()
B1, B2 = B.split(".")
print((int(A) * (int(B1) * 100 + int(B2)) // 100))

-from decimal import * - -A, B = list(map(Decimal, input().split())) -ans = A * B -print((ans.quantize(Decimal("1"), rounding=ROUND_FLOOR))) +A, B = input().split() +B1, B2 = B.split(".") +print((int(A) * (int(B1) * 100 + int(B2)) // 100))