s = input()

yukicoder = 'yukicoder'
n = len(s)
ans = 0
temp = 0
for i in range(n):
    if s[i] == yukicoder[temp % 9]:
        temp += 1
    else:
        temp = 0
    ans = max(ans, temp // 9)
print(ans)