from math import floor

from fractions import Fraction

a, b = input().split()

a = int(a)

b = Fraction(b)

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

a = int(a)

b_int, b_frac = b.split(".")

bb = int(b_int) * 100 + int(b_frac)

print((a * bb // 100))
from math import floor
from fractions import Fraction

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

a, b = input().split()
a = int(a)
b_int, b_frac = b.split(".")
bb = int(b_int) * 100 + int(b_frac)
print((a * bb // 100))

-from math import floor -from fractions import Fraction - -b = Fraction(b) -print((floor(a * b))) +b_int, b_frac = b.split(".") +bb = int(b_int) * 100 + int(b_frac) +print((a * bb // 100))