from decimal import *

A,B=list(map(str,input().split()))

A=Decimal(A)

B=Decimal(B)

print((int(A*B)))
A,B=input().split()

print((int(A)*int(B[:1]+B[-2:])//100))
from decimal import *

A, B = list(map(str, input().split()))
A = Decimal(A)
B = Decimal(B)
print((int(A * B)))

A, B = input().split()
print((int(A) * int(B[:1] + B[-2:]) // 100))

-from decimal import * - -A, B = list(map(str, input().split())) -A = Decimal(A) -B = Decimal(B) -print((int(A * B))) +A, B = input().split() +print((int(A) * int(B[:1] + B[-2:]) // 100))