Turn this sentence into a question: The man was wearing a hat.
Was the man wearing a hat?
Complete the following task based on the instruction and optional input provided.### Instruction:
Turn this sentence into a question: The man was wearing a hat.

### Output:
Was the man wearing a hat?