Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a man wearing a cowboy hat and messing with a cow

cow a with messing and hat cowboy a wearing man a