from decimal import Decimal

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

print((int(a*b)))

a, b = input().split()

a = int(a)

b = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3])

print((a*b//100))

from decimal import Decimal

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

a, b = input().split()
a = int(a)
b = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3])
print((a * b // 100))

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) -print((int(a * b))) +a, b = input().split() +a = int(a) +b = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3]) +print((a * b // 100))