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.

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

Juan delegated her something
Juan delegated something to her

John chirped the man wearing the hat a greeting

John chirped a greeting to the man wearing the hat