from math import floor

from fractions import Fraction

a, b = input().split()

a = int(a)

b = Fraction(b)

print((floor(a * b)))
from math import floor

from decimal import Decimal

a, b = input().split()

a = int(a)

b = Decimal(b)

print((floor(a * b)))
from math import floor
from fractions import Fraction

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

from math import floor
from decimal import Decimal

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

-from fractions import Fraction +from decimal import Decimal -b = Fraction(b) +b = Decimal(b)