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 extended the man who was wearing the hat her hand

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


Ex Input:
John chirped the woman the melody

Ex Output:
John chirped the melody to the woman


Ex Input:
Bob remitted the woman a percentage

Ex Output:

Bob remitted a percentage to the woman