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.

Ex Input:
Mary said the woman a word

Ex Output:
Mary said a word to the woman


Ex Input:
Mary expressed a man wearing a hat her condolences

Ex Output:
Mary expressed her condolences to a man wearing a hat


Ex Input:
Michael remitted the man who was wearing the hat the funds

Ex Output:

Michael remitted the funds to the man who was wearing the hat