PROGRAMMING:English word order
This problem requires the preparation of procedures, input a number of English words, these words sorted by length from small to large output. If the length is the same, the input order will not change.
###Input format:
Input a number of English words, one for each line, with '#' as the end of the input flag. The total number of English words is no more than 20, and the length of English words is less than 10, which is only composed of lowercase English letters.
###Output format:
The output is the sorted result, with an extra space after each word.
###Input example:
```in
blue
red
yellow
green
purple
#
```
###Output example:
```out
red blue green yellow purple
```
answer:If there is no answer, please comment
###Input format:
Input a number of English words, one for each line, with '#' as the end of the input flag. The total number of English words is no more than 20, and the length of English words is less than 10, which is only composed of lowercase English letters.
###Output format:
The output is the sorted result, with an extra space after each word.
###Input example:
```in
blue
red
yellow
green
purple
#
```
###Output example:
```out
red blue green yellow purple
```
answer:If there is no answer, please comment