def main(): S = input() S = S.replace("yukicoder", "-") rle = [[S[0], 1]] for i in range(1, len(S)): if rle[-1][0] == S[i]: rle[-1][1] += 1 else: rle.append([S[i], 1]) ans = 0 for (s, c) in rle: if s == "-": ans = max(ans, c) print(ans) main()