s1="aalkkaazylkkkkkkkasdakkkkkkkk"
max_len=0
current=0
for ch in s1:
if ch=='k':
current += 1
if current > max_len:
max_len = current
else:
current = 0
print(max_len)
czE9ImFhbGtrYWF6eWxra2tra2trYXNkYWtra2tra2trIgptYXhfbGVuPTAKY3VycmVudD0wCgpmb3IgY2ggaW4gczE6CiAgICBpZiBjaD09J2snOgogICAgICAgIGN1cnJlbnQgKz0gMQogICAgICAgIGlmIGN1cnJlbnQgPiBtYXhfbGVuOgogICAgICAgICAgICBtYXhfbGVuID0gY3VycmVudAogICAgZWxzZToKICAgICAgICBjdXJyZW50ID0gMAoKcHJpbnQobWF4X2xlbik=