from decimal import Decimal



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

#print(a,b)



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

b = b[:-3] + b[-2:]

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

a, b = list(map(str, input().split()))
# print(a,b)
print((int(Decimal(a) * Decimal(b))))

a, b = list(map(str, input().split()))
b = b[:-3] + b[-2:]
print((int(a) * int(b) // 100))

-from decimal import Decimal - -# print(a,b) -print((int(Decimal(a) * Decimal(b)))) +b = b[:-3] + b[-2:] +print((int(a) * int(b) // 100))