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: scarecrow accessories infant
Product list:
A: Forum Novelties Women's Tattered Fabric Witch Costume Hat, Brown, One Size
B: Jacobson Hat Company Scarecrow Hat With Rope Band,Brown,One Size
C: Crochet Earflap Pilot Hats Rabbit Ears Beanie Cap Winter Warm Knit Caps for Toddlers Baby Girls and Boys (Coffee)
Answer: A,C,B