def Run_Length(lst): run_length=[] if lst: prev=lst[0] cnt=1 for x in lst[1:]: if x==prev: cnt+=1 else: run_length.append((prev,cnt)) prev=x cnt=1 run_length.append((prev,cnt)) return run_length S=input() S=S.replace("yukicoder","#") ans=0 for s,c in Run_Length(S): if s=="#": ans=max(ans,c) print(ans)