import math

from decimal import *

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

print((math.floor(A*B)))
sp = input().split()

A = int(sp[0])

B = int(sp[1].replace(".",""))

print((A*B//100))
import math
from decimal import *

A, B = list(map(Decimal, input().split()))
print((math.floor(A * B)))

sp = input().split()
A = int(sp[0])
B = int(sp[1].replace(".", ""))
print((A * B // 100))

-import math -from decimal import * - -A, B = list(map(Decimal, input().split())) -print((math.floor(A * B))) +sp = input().split() +A = int(sp[0]) +B = int(sp[1].replace(".", "")) +print((A * B // 100))