from decimal import *

a, b = input().split()

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

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

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

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

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