Generate a sentence that contains the given words.
magic, castle, king
Once upon a time, in a beautiful magic castle, there lived a brave and just king who ruled over the realm with kindness and compassion.
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a sentence that contains the given words.

### Input:
magic, castle, king

### Output:
Once upon a time, in a beautiful magic castle, there lived a brave and just king who ruled over the realm with kindness and compassion.