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 small white dog with a hat on his rear end'. Reverse all words of length '3' in the given sentence.

Output: a small white god with a tah on sih rear dne


Input: Consider Input: Sentence: 'a street performer copying a woman on her phone'. Reverse all words of length '7' in the given sentence.

Output: a street performer gniypoc a woman on her phone


Input: Consider Input: Sentence: 'train traveling through shaded wooded area near water pump'. Reverse all words of length '6' in the given sentence.


Output: train traveling through dedahs dedoow area near water pump