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



from decimal import Decimal, getcontext

from math import floor

getcontext().prec = 30

a = Decimal(str(a))

b = Decimal(str(b))

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

b = b.replace('.', '')

a, b = int(a), int(b)

print((a * b // 100))
a, b = list(map(float, input().split()))
from decimal import Decimal, getcontext
from math import floor

getcontext().prec = 30
a = Decimal(str(a))
b = Decimal(str(b))
print((floor(a * b)))

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

-a, b = list(map(float, input().split())) -from decimal import Decimal, getcontext -from math import floor - -getcontext().prec = 30 -a = Decimal(str(a)) -b = Decimal(str(b)) -print((floor(a * b))) +a, b = input().split() +b = b.replace(".", "") +a, b = int(a), int(b) +print((a * b // 100))