from decimal import Decimal

a, b = 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 = 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 = Decimal(a) -b = Decimal(b) -print((int(a * b))) +a = int(a) +b = int(b.replace(".", "")) +print((a * b // 100))