import math

import decimal

x,y = list(map(decimal.Decimal,input().split()))

print((math.floor(x*y)))
x,y = list(map(str,input().split()))

yy=y.replace(".","")

xy=str(int(x)*int(yy))

print((xy[:len(xy)-2] if len(xy)>2 else 0))

import math
import decimal

x, y = list(map(decimal.Decimal, input().split()))
print((math.floor(x * y)))

x, y = list(map(str, input().split()))
yy = y.replace(".", "")
xy = str(int(x) * int(yy))
print((xy[: len(xy) - 2] if len(xy) > 2 else 0))

-import math -import decimal - -x, y = list(map(decimal.Decimal, input().split())) -print((math.floor(x * y))) +x, y = list(map(str, input().split())) +yy = y.replace(".", "") +xy = str(int(x) * int(yy)) +print((xy[: len(xy) - 2] if len(xy) > 2 else 0))