from decimal import Decimal



a, b = input().split()



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



a = int(a)

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



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

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

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

-from decimal import Decimal - -print((int(Decimal(a) * Decimal(b)))) +a = int(a) +b = int(float(b) * 100 + 0.5) +print((a * b // 100))