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: hang up pictures without nails
Product list:
A: Command Large Picture Hanging Strips, Black, Holds up to 16 lbs, 14-Pairs, Easy to Open Packaging
B: 376pcs Premium Hardware Nails Assortment Kit, Maximum Length 2 Inches Galvanized Nails, Picture Hanging Nails, Wood Nails, Wall Nails with Storage Box | 6 Sizes
Answer: A,B