from decimal import Decimal

A, B = list(map(Decimal, input().split()))

print((int(A * B)))

A, B = input().split()

A, B = int(A), int(B.replace('.', ''))

print((A * B // 100))

from decimal import Decimal

A, B = list(map(Decimal, input().split()))
print((int(A * B)))

A, B = input().split()
A, B = int(A), int(B.replace(".", ""))
print((A * B // 100))

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