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:
Michael wrote the man who was wearing the hat a note

Ex Output:
Michael wrote a note to the man who was wearing the hat


Ex Input:
John snapped a woman who was from work the ball

Ex Output:
John snapped the ball to a woman who was from work


Ex Input:
John refunded her a sum

Ex Output:

John refunded a sum to her