CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #843 #845 →

#844. Word length histogram

For each word length, print how many words of the sentence have that length, as `length: count`, in increasing order of length. ### Input One line. ### Output Lines.

Examples

Input
civic print rocket list stats loop
Output
4: 2
5: 3
6: 1
Input
forest flower winter level
Output
5: 1
6: 3

💡 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!