Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: red cowboy hat for women
Product list:
A: West Blvd Miami Cowboy Western Boots Boots, Red Pu, 9 (B) M US
B: NYFASHION101 USA American Flag Patriotic Cowboy Cowgirl Hat
Answer: B,A