Automatically replace each word in the text with its synonym.
This is a challenging task.
This is a demanding undertaking.
Complete the following task based on the instruction and optional input provided.### Instruction:
Automatically replace each word in the text with its synonym.

### Input:
This is a challenging task.

### Output:
This is a demanding undertaking.