Intermediate Value Theorem and Mean Value Theorem