The big winner was the iPad 2, which launched in spring 2011 running iOS 5. Apple continued selling the tablet for three years, and it was compatible with fresh iOS versions even longer. Though Apple hasn’t sold the iPad 2 since 2014, its 2,013-day run of current-iOS compatibility ended this month with iOS 10’s debut.

The longest-running iPhones thus far? The iPhone 4s, which also just got bumped, and the iPhone 5, which continues its run with iOS 10.

But the first-generation iPhone and iPad lost iOS upgrade eligibility and support far sooner, as did the iPhone 3G.

While every new iOS version strands a few devices, the overall number of models supported is rising. That number peaked at iOS 9, which supported 20 iPhones and iPads. With iOS 10, Apple appears to have cleaned house: The software works with 18 iPhones and iPads, but not on any device that doesn’t have the Lightning charging port.