Tax Year Prior to 2020: Condo Roof and HVAC in same year

My rental condo association assessed just over $5,000 for my portion of a new roof on all 3 of our buildings in 2019. The HVAC units sit on the roof, and I replaced my unit at just over $5,500. Do I need to depreciate both of these items over the 27 1/2 year schedule, or can I deduct part in 2019 and depreciate part?