When the COVID-19 vaccine protects three generations