Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: funny men's police woman halloween costumes
Product list:
A: Leg Avenue 3 Piece Stealth Ninja Catsuit Set-Sexy Hooded Halloween Costume with Matching Face Mask for Women, Black/Gold, Small
B: Dreamgirl Men's Dirt Cop Officer Ed Banger Costume, Black, Large
Answer: B,A