from decimal import Decimal

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

A = Decimal(A)

B = Decimal(B)

print((int(A*B)))
a, b = input().split()

a = int(a)

b = int(b.replace('.',''))

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

A, B = list(map(str, input().split()))
A = Decimal(A)
B = Decimal(B)
print((int(A * B)))

a, b = input().split()
a = int(a)
b = int(b.replace(".", ""))
print((a * b // 100))

-from decimal import Decimal - -A, B = list(map(str, input().split())) -A = Decimal(A) -B = Decimal(B) -print((int(A * B))) +a, b = input().split() +a = int(a) +b = int(b.replace(".", "")) +print((a * b // 100))