Change the given sentence into a passive voice.
He wrote a letter.
A letter was written by him.
Complete the following task based on the instruction and optional input provided.### Instruction:
Change the given sentence into a passive voice.

### Input:
He wrote a letter.

### Output:
A letter was written by him.