import decimal

a, b = (decimal.Decimal(x) for x in input().split())

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

a = int(a)

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

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

a, b = (decimal.Decimal(x) for x in input().split())
print((int(a * b)))

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

-import decimal - -a, b = (decimal.Decimal(x) for x in input().split()) -print((int(a * b))) +a, b = input().split() +a = int(a) +b = int(b.replace(".", "")) +print((a * b // 100))