from math import floor

from decimal import Decimal

a, b = input().split()

a = int(a)

b = Decimal(b)

print((floor(a * b)))
a, b = input().split(" ")

A, B = int(a), float(b)

B100 = round(B * 100)

C = A * B100

ans = C // 100

print(ans)
from math import floor
from decimal import Decimal

a, b = input().split()
a = int(a)
b = Decimal(b)
print((floor(a * b)))

a, b = input().split(" ")
A, B = int(a), float(b)
B100 = round(B * 100)
C = A * B100
ans = C // 100
print(ans)

-from math import floor -from decimal import Decimal - -a, b = input().split() -a = int(a) -b = Decimal(b) -print((floor(a * b))) +a, b = input().split(" ") +A, B = int(a), float(b) +B100 = round(B * 100) +C = A * B100 +ans = C // 100 +print(ans)