from decimal import Decimal

ab = input().split()

a = Decimal(ab[0])

b = Decimal(ab[1])

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

a = int(ab[0])

b = round(100*float(ab[1]))

print(((a*b)//100))

from decimal import Decimal

ab = input().split()
a = Decimal(ab[0])
b = Decimal(ab[1])
print((int((a * b))))

ab = input().split()
a = int(ab[0])
b = round(100 * float(ab[1]))
print(((a * b) // 100))

-from decimal import Decimal - -a = Decimal(ab[0]) -b = Decimal(ab[1]) -print((int((a * b)))) +a = int(ab[0]) +b = round(100 * float(ab[1])) +print(((a * b) // 100))