def sum_smallest(x, k):
 x = Expression.cast_to_const(x)
 return (- sum_largest((- x), k))

def sum_smallest ( x , k ) : x = Expression . cast_to_const ( x ) return ( - sum_largest ( ( - x ) , k ) )
sum of the smallest k values .