from decimal import Decimal v, t = input().split() print(int(Decimal(v)*Decimal(t)))