I sold condo in 1/18, lived in it until 10/15, rent out 05/16-11/17. Should I include depreciation in Adjusted cost basis or in Depreciation After May 6 1997 or in both?

Bought in 2012, lived more than 2 years in last 5 years before sale.