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 pair of boats are beside each other in the water'. Reverse all words of length '6' in the given sentence.

Output: a pair of boats are ediseb each other in the water


Input: Consider Input: Sentence: 'a man watches two giraffes eating from a box'. Reverse all words of length '4' in the given sentence.

Output: a man watches two giraffes eating morf a box


Input: Consider Input: Sentence: 'a police officer sits on his motorcycle on the road'. Reverse all words of length '6' in the given sentence.


Output: a ecilop officer sits on his motorcycle on the road