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