Final results of the CUPID-0 Phase I experiment