from decimal import Decimal



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



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