Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: happy hats game
Product list:
A: Truth or Drink The Game by Cut Games - Hilariously Funny Questions Youd Dare to Answer Out Loud - Best Adult Card Game for Parties and Game Night
B: Bob Books Happy Hats Beginning Reading Game Line
Answer: B,A