S = input().strip() pattern = 'yukicoder' pattern_length = len(pattern) starts = [] start = 0 while True: pos = S.find(pattern, start) if pos == -1: break starts.append(pos) start = pos + pattern_length # Move past the current occurrence if not starts: print(0) else: max_k = 1 current_k = 1 for i in range(1, len(starts)): if starts[i] == starts[i-1] + pattern_length: current_k += 1 if current_k > max_k: max_k = current_k else: current_k = 1 # Reset for a new potential sequence print(max_k)