A,B = input().split()

from decimal import Decimal,ROUND_DOWN

A = Decimal(A)

B = Decimal(B)

N = A*B

print((N.quantize(Decimal('1'),rounding=ROUND_DOWN)))
A,B = input().split()

A = int(A)

B = B.replace('.','')

B = int(B)

 

print((A*B//100))

 
A, B = input().split()
from decimal import Decimal, ROUND_DOWN

A = Decimal(A)
B = Decimal(B)
N = A * B
print((N.quantize(Decimal("1"), rounding=ROUND_DOWN)))

A, B = input().split()
A = int(A)
B = B.replace(".", "")
B = int(B)
print((A * B // 100))

-from decimal import Decimal, ROUND_DOWN - -A = Decimal(A) -B = Decimal(B) -N = A * B -print((N.quantize(Decimal("1"), rounding=ROUND_DOWN))) +A = int(A) +B = B.replace(".", "") +B = int(B) +print((A * B // 100))