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