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: scarf hat set
Product list:
A: Amazon Essentials Women's Cable Knit Hat and Scarf Set, Ivory, One Size
B: Levi's Men's 100% Cotton Multi-purpose Bandana Gift Sets  Headband, Wrap, Protective Coverage, Black/Red/Navy, Pack 3
Answer: A,B