Generate a 5-word sentence using the following words: "they","happy","had","were","when".
They were happy when had.
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a 5-word sentence using the following words: "they","happy","had","were","when".

### Output:
They were happy when had.