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

#876. Different substrings of length 4

You get a string. How many different substrings (characters next to each other) of length 4 does it have? Use a set. ### Input One line (length ≥ 4). ### Output A number.

Examples

Input
aaaa
Output
1
Input
aabbaba
Output
4

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