hint: compute the lower/upper bounds