from decimal import *

n, m = input().split()

root2 = Decimal(n) * Decimal(m)

n = 0

y = Decimal(str(root2)).quantize(Decimal(str(10**(n*-1))), rounding=ROUND_DOWN)

print(y)  
n, m = input().split()

n = int(n)

a, b = list(map(int, m.split('.')))

m = a*100 + b

print(((n*m)//100))
from decimal import *

n, m = input().split()
root2 = Decimal(n) * Decimal(m)
n = 0
y = Decimal(str(root2)).quantize(Decimal(str(10 ** (n * -1))), rounding=ROUND_DOWN)
print(y)

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

-from decimal import * - -root2 = Decimal(n) * Decimal(m) -n = 0 -y = Decimal(str(root2)).quantize(Decimal(str(10 ** (n * -1))), rounding=ROUND_DOWN) -print(y) +n = int(n) +a, b = list(map(int, m.split("."))) +m = a * 100 + b +print(((n * m) // 100))