import sys
from collections import deque, Counter
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

s = input()

n = len(s)
i = 0
cnt = 0
ans = 0
while i < n:
    if i < n - 8 and s[i:i+9] == 'yukicoder':
        cnt += 1
        ans = max(ans, cnt)
        i += 9
    else:
        cnt = 0
        i += 1
print(ans)