CodeLab Academy 📞 9936 6696
← List Python · Level 6: Strings Code · 60 points ← #547 #549 →

#548. Longest run of the same letter

You are given a string. Find the length of the longest run of the same character in a row. ### Input One line. ### Output A number.

Examples

Input
xyyyyy
Output
5
Input
xxxxyyyyyyyxxxxxxxxyyyyy
Output
8

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