from decimal import *

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

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

a=int(a)

b=int(b.replace('.',''))*100

print((a*b//10000))
from decimal import *

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

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

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