from decimal import Decimal, ROUND_DOWN

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

a = Decimal(a)

b = Decimal(b)



print(((a*b).quantize(Decimal("0"), rounding=ROUND_DOWN)))
a, b = list(map(str, input().split()))

b = b.replace(".", "")

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

a, b = list(map(str, input().split()))
a = Decimal(a)
b = Decimal(b)
print(((a * b).quantize(Decimal("0"), rounding=ROUND_DOWN)))

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

-from decimal import Decimal, ROUND_DOWN - -a = Decimal(a) -b = Decimal(b) -print(((a * b).quantize(Decimal("0"), rounding=ROUND_DOWN))) +b = b.replace(".", "") +print((int(a) * int(b) // 100))