from decimal import Decimal

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

print(((a*b)//1))
a,b = input().split()

print((int(a)*int(float(b)*100+0.5)//100))
from decimal import Decimal

a, b = list(map(Decimal, input().split()))
print(((a * b) // 1))

a, b = input().split()
print((int(a) * int(float(b) * 100 + 0.5) // 100))

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) -print(((a * b) // 1)) +a, b = input().split() +print((int(a) * int(float(b) * 100 + 0.5) // 100))