CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #671 #673 →

#672. Sort words by length

Sort the words by their length. Words of the same length go in alphabetical order. ### Input One line. ### Output One line.

Examples

Input
madam summer kayak window scratch game
Output
game kayak madam summer window scratch
Input
mountain banana number player
Output
banana number player mountain

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!