from fractions import Fraction

a, b = list(map(Fraction, input().split()))



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

a = int(a)

bint, bdec = list(map(int, b.split('.')))



b = 100*bint + bdec

print(((a*b)//100))
from fractions import Fraction

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

a, b = input().split()
a = int(a)
bint, bdec = list(map(int, b.split(".")))
b = 100 * bint + bdec
print(((a * b) // 100))

-from fractions import Fraction - -a, b = list(map(Fraction, input().split())) -print((int(a * b))) +a, b = input().split() +a = int(a) +bint, bdec = list(map(int, b.split("."))) +b = 100 * bint + bdec +print(((a * b) // 100))