from decimal import Decimal

 

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

 

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

b=b[0]+b[2:]

a=int(a)

b=int(b)

print((a*b//100))

from decimal import Decimal

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

a, b = input().split()
b = b[0] + b[2:]
a = int(a)
b = int(b)
print((a * b // 100))

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) -print((int(a * b))) +a, b = input().split() +b = b[0] + b[2:] +a = int(a) +b = int(b) +print((a * b // 100))