from decimal import Decimal



A, B = input().split()



A = Decimal(A)

B = Decimal(B)



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



A = int(A)

B = int(B.replace(".", ""))



print((A*B//100))
from decimal import Decimal

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

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

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