Instruction: Given a query and a list of products denoted as A, B, C, ... with their titles, rank the products according to their relevance to the query. Output only a ranked list in which the most relevant product is at the top of the list.

Input:
Query: cotton sun hat for men
Product list:
A: Baseball Cap for Women Cotton/Embroidered Caps Baseball Sport Golf Adjustable Sun Hat Baseball Running Cap Sunhat Blue
B: LENXH Unisex Outdoor Solid Color Visor Simple Cotton Cap Fashion Casual Baseball Cap Outdoor Sports Sun Hat
C: Trucker Hat Sun Sports Visor Hat Cap Classic Cotton for Men Women Customized Unisex Dog Mom Vintage Jeans Adjustable Baseball Cap Purple
Answer: B,C,A