S = list(input()) YUKI = list('yukicoder') ans = 0 temp = 0 y = 0 for s in S: if s==YUKI[y]: y+=1 if y==len(YUKI): temp+=1 y=0 else: ans = max(temp,ans) temp=0 y=0 print(max(temp,ans))