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: rainbow costume women
Product list:
A: Dreamgirl Women's Rainbow Fairy Costume, Multi, Medium
B: BERON 27.5" Women Girl's Long Curly Wavy Rainbow Wig for Halloween Anime Cosplay(Multi-color)
C: Alacos Rainbow Colorful Costume Wig,72cm Long Braid Curly Gothic Lolita Harajuku Anime Cosplay Christmas Costume Wigs for Women Kids +Free Wig Cap (Red/Yellow/Blue/Purple)
Answer: A,B,C