from decimal import *

a, b = input().split()

ans = Decimal(a) * Decimal(b)

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

ans = int(a)*int(float(b)*100+0.5)

ans = ans//100

print(ans)
from decimal import *

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

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

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