m=input() y='' ans=0 i=0 while len(y)<=10**6: i+=1 if m.count(y) > 0: ans=i-1 y+='yukicoder' print(ans)