from decimal import Decimal

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



print((int(A*B)))

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



A = int(A)

B = int(''.join(B.split('.')))

print((A*B//100))

from decimal import Decimal

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

A, B = list(map(str, input().split()))
A = int(A)
B = int("".join(B.split(".")))
print((A * B // 100))

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