Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a man is wearing a tie and has headphones on his ears

ears his on headphones has and tie a wearing is man a