S=input() S=S.replace('yukicoder','A') now=0;ans=0 for s in S: if s=='A': now+=1 ans=max(ans,now) else: now=0 print(ans)