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.

Input: Consider Input: Juan said a man wearing a hat a prayer

Output: Juan said a prayer to a man wearing a hat


Input: Consider Input: Juan assigned the woman who was wearing the hat the responsibility

Output: Juan assigned the responsibility to the woman who was wearing the hat


Input: Consider Input: Bob dragged a woman who was wearing a hat something


Output: Bob dragged something to a woman who was wearing a hat