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: mac foundation in every shade
Product list:
A: Milani Conceal + Perfect 2-in-1 Foundation + Concealer - Light Beige (1 Fl. Oz.) Cruelty-Free Liquid Foundation - Cover Under-Eye Circles, Blemishes & Skin Discoloration for a Flawless Complexion
B: Maybelline New York Dream Satin Liquid Foundation (Dream Liquid Mousse Foundation), Porcelain Ivory, 1 fl. oz.
C: MAC Retro Matte Lipstick # Relentlessly Red
Answer: B,A,C