from collections import * from itertools import * from heapq import * from functools import * import sys,math input = sys.stdin.readline S = list(input())[:-1] N = len(S) X = list('yukicoder') now = 0 ans = [] while now < N-8: if all(S[now+j]==X[j] for j in range(9)): ans.append('*') now += 9 else: ans.append(S[now]) now += 1 res = 0 for g,r in groupby(ans): if g=='*': res = max(res,len(list(r))) print(res)