Sort the following words by length, shortest to longest.
book, pencil, chair, keyboard
book, chair, pencil, keyboard
Complete the following task based on the instruction and optional input provided.### Instruction:
Sort the following words by length, shortest to longest.

### Input:
book, pencil, chair, keyboard

### Output:
book, chair, pencil, keyboard