A female swimmer wearing a black hat does the butterfly stroke .