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: plain and plaid pants men
Product list:
A: Plaid&Plain Men's Stretch Dress Pants Slim Fit Skinny Suit Pants 7108 Black 34W32L
B: Amazon Essentials Men's Classic-fit 7" Short, Navy Plaid, 34
C: Perry Ellis Men's Portfolio Plaid Modern Fit Performance Pant, Charcoal Plaid, 34x30
Answer: A,C,B