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: home safes fireproof waterproof
Product list:
A: SentrySafe SFW123CU Fireproof Waterproof Safe with Dial Combination, 1.23 Cubic Feet, Black
B: Large (17 x 12 x 5.8 inches) Fireproof Bag, Fireproof Document Bags, Fireproof Money Bag, Water Resistant Fireproof Safe Bag for Documents and Valuables Storage
Answer: A,B