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

#867. Different substrings of length 3

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

Examples

Input
aabab
Output
3
Input
babbbbbaa
Output
5

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