Windshield gasket replacement explained

Can anybody explain to me the process for replacing the rubber / foam gaskets on a windshield? To me it looks like there are 3 seals to replace?
How do you remove and replace the deal closest to the gelcoat?
How do you remove and replace the deal closest to the gelcoat?
2002 - 270FV Mag 350 B3