from decimal import Decimal

a, b = list(map(Decimal, input().split()))

print((int(a * b)))
s = input().split()

a = int(s[0])

b, c = list(map(int, s[1].split('.'))) if '.' in s[1] else list(map(int, [s[1], 0]))

print((a * b + a * c // 100))
from decimal import Decimal

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

s = input().split()
a = int(s[0])
b, c = list(map(int, s[1].split("."))) if "." in s[1] else list(map(int, [s[1], 0]))
print((a * b + a * c // 100))

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) -print((int(a * b))) +s = input().split() +a = int(s[0]) +b, c = list(map(int, s[1].split("."))) if "." in s[1] else list(map(int, [s[1], 0])) +print((a * b + a * c // 100))