import decimal a, b = map(decimal.Decimal, input().split()) print(int(a * b))