In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.

Input: Consider Input: Sentence: 'a dog curled up sleeping on a bed with pillows'. Reverse all words of length '6' in the given sentence.

Output: a dog delruc up sleeping on a bed with pillows


Input: Consider Input: Sentence: 'a baseball pitcher pitching a ball during a game'. Reverse all words of length '8' in the given sentence.

Output: a llabesab pitcher gnihctip a ball during a game


Input: Consider Input: Sentence: 'a close up of a well lit fancy clock at night'. Reverse all words of length '2' in the given sentence.


Output: a close pu fo a well lit fancy clock ta night