from decimal import Decimal

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

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

b = list(b)

b.pop(-3)

b = int("".join(b))

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

a, b = list(map(Decimal, input().split()))
print((Decimal(a * b) // 1))

a, b = input().split()
b = list(b)
b.pop(-3)
b = int("".join(b))
print(((int(a) * b) // 100))

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) -print((Decimal(a * b) // 1)) +a, b = input().split() +b = list(b) +b.pop(-3) +b = int("".join(b)) +print(((int(a) * b) // 100))