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.

Example Input: Alice groaned a man who was wearing a hat her thanks
Example Output: Alice groaned her thanks to a man who was wearing a hat

Example Input: Mary donated the team the book
Example Output: Mary donated the book to the team

Example Input: Bob lent the woman who was wearing the hat some money
Example Output:
Bob lent some money to the woman who was wearing the hat