from decimal import *

from math import floor

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

temp = Decimal(str(A)) * Decimal(str(B))

print((floor(temp)))
A, B = input().split()

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

A, B = list(map(int, [A, B]))

print((int(A * B // 100)))
from decimal import *
from math import floor

A, B = list(map(float, input().split()))
temp = Decimal(str(A)) * Decimal(str(B))
print((floor(temp)))

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

-from decimal import * -from math import floor - -A, B = list(map(float, input().split())) -temp = Decimal(str(A)) * Decimal(str(B)) -print((floor(temp))) +A, B = input().split() +B = B.replace(".", "") +A, B = list(map(int, [A, B])) +print((int(A * B // 100)))