t = input().lower()mx = cur = 0for c in t: cur = cur+1 if c=="k" else 0; mx = max(mx,cur)print(mx)
aalkkaaylkkkkkkkkkasddkkkrftgkkkkk
9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!