A data entry bug swapped genders. Change every 'M' to 'F' and every 'F' to 'M' with a single UPDATE.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.