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: just for men ash brown hair color
Product list:
A: Just For Men Touch of Gray Mustache & Beard, Beard Coloring for Gray Hair with Brush Included for Easy Application, Great for a Salt and Pepper Look - Light & Medium Brown, B-25/35
B: Just For Men Mustache & Beard, Beard Coloring for Gray Hair with Brush Included for Easy Application, With Biotin Aloe and Coconut Oil for Healthy Facial Hair - Light-Medium Brown, M-30
Answer: B,A