from decimal import Decimal



a, b = [Decimal(str(x)) for x in input().split()]



c = a * b



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

a = int(a)

b = float(b) 



c = a * round(b * 100) // 100



print(c)
from decimal import Decimal

a, b = [Decimal(str(x)) for x in input().split()]
c = a * b
print((int(c)))

a, b = input().split()
a = int(a)
b = float(b)
c = a * round(b * 100) // 100
print(c)

-from decimal import Decimal - -a, b = [Decimal(str(x)) for x in input().split()] -c = a * b -print((int(c))) +a, b = input().split() +a = int(a) +b = float(b) +c = a * round(b * 100) // 100 +print(c)