from decimal import Decimal

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

ans=Decimal(a)*Decimal(b)

print((int(ans)))

a,b=input().split()

a=int(a)

b=int(float(b)*100+0.5)

ans=a*b//100

print(ans)
from decimal import Decimal

a, b = list(map(str, input().split()))
ans = Decimal(a) * Decimal(b)
print((int(ans)))

a, b = input().split()
a = int(a)
b = int(float(b) * 100 + 0.5)
ans = a * b // 100
print(ans)

-from decimal import Decimal - -a, b = list(map(str, input().split())) -ans = Decimal(a) * Decimal(b) -print((int(ans))) +a, b = input().split() +a = int(a) +b = int(float(b) * 100 + 0.5) +ans = a * b // 100 +print(ans)