from decimal import Decimal



A, B = input().split()

A = Decimal(A)

B = Decimal(B)

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

C = B.replace('.', '')

print((int(A)*int(C)//100))

from decimal import Decimal

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

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

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