First, you have to survive covid to get natural immunity.
It appears those who have been vaccinated and then get covid have the highest immunity.
https://kdvr.com/news/coronavirus/covid-19-vaccine/cdc-report-natural-immunity-stronger-than-vaccines-alone-during-delta-wave/