Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: boys diary with lock and key
Product list:
A: Diary for Girls with Lock and Keys, Plush Dog Secret Diary a Gift Set for Kids, Puppy Dog Diary for Boys Writing Drawing Notebook 160 Pages
B: Fuzzy Plush Notebook with Lock and Keys Journal Cute Cartoon Kitty Cat Diary for Boys Kids Girls Writing Drawing
Answer: B,A