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:
Linda wrote a man who was wearing a hat a check

Ex Output:
Linda wrote a check to a man who was wearing a hat


Ex Input:
Juan taught the woman who was wearing the hat the lines

Ex Output:
Juan taught the lines to the woman who was wearing the hat


Ex Input:
Mary bellowed the man who was from work instructions

Ex Output:

Mary bellowed instructions to the man who was from work