from decimal import*

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

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

b = int(float(b)*100+0.5)

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

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

a, b = input().split()
b = int(float(b) * 100 + 0.5)
print((int(a) * b // 100))

-from decimal import * - -a, b = list(map(Decimal, input().split())) -print((int(a * b))) +a, b = input().split() +b = int(float(b) * 100 + 0.5) +print((int(a) * b // 100))