S = input() U = "yukicoder" l = [] i = 0 while i < len(S): if S[i] == "y": j = 0 while i + j < len(S) and S[i + j] == U[j]: j += 1 if j == len(U): l.append(i) break i += j else: i += 1 ans = 0 now = 0 for i in range(1,len(l)): if l[i] - l[i-1] == len(U): if now == 0: now = 2 else: now += 1 else: if now > ans: ans = now now = 0 if now > ans:ans = now print(ans)