import decimal



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



A = str(A)

B = str(B)

ans = decimal.Decimal(A) * decimal.Decimal(B)

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



A = int(A)

B = round(float(B) * 100)



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

A, B = list(map(float, input().split()))
A = str(A)
B = str(B)
ans = decimal.Decimal(A) * decimal.Decimal(B)
print((int(ans)))

A, B = input().split()
A = int(A)
B = round(float(B) * 100)
print((A * B // 100))

-import decimal - -A, B = list(map(float, input().split())) -A = str(A) -B = str(B) -ans = decimal.Decimal(A) * decimal.Decimal(B) -print((int(ans))) +A, B = input().split() +A = int(A) +B = round(float(B) * 100) +print((A * B // 100))