from decimal import Decimal

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

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

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

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

a, b = list(map(int, input().replace(".", "").split()))
print((a * b // 100))

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) -print((int(a * b))) +a, b = list(map(int, input().replace(".", "").split())) +print((a * b // 100))