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: a man a can a plan cookbook
Product list:
A: A Man, A Can, A Plan, A Second Helping: 50 Fast Meals to Satisfy Your Healthy Appetite: A Cookbook
B: A Man, A Pan, A Plan: 100 Delicious & Nutritious One-Pan Recipes You Can Make Right Now!: A Cookbook
Answer: A,B