def get_line_length():
with open("24.txt", "r") as file:
f = file.read()
letter_seq_list = f.replace("KL", " ").split()
max_seq = max(map(len, letter_seq_list))
return max_seq
if __name__ == "__main__":
print(get_line_length())