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: puppy flea treatment 6 weeks
Product list:
A: Capstar Green Box Flea Oral Treatment for Large Dogs Over 25lbs. 6 Pill/tablets (CA4925Y07AM)
B: TevraPet FirstAct Plus Flea and Tick Prevention for Dogs, 3 Months Treatment and Control, Small Dog 6-22 lbs, Clear, 3 Doses (12)
Answer: A,B