Languages typically provide more than one grammatical construction to express certain types of messages. Your task is to generate a senetence with the same meaning as given sentence, but with different grammatical construction.

Input: Consider Input: Linda extended the man who was wearing the hat her hand

Output: Linda extended her hand to the man who was wearing the hat


Input: Consider Input: Alice wrote the woman the message

Output: Alice wrote the message to the woman


Input: Consider Input: Mary dictated a man the letter


Output: Mary dictated the letter to a man