S=input().replace('yukicoder','Y') for i in 'abcdefghijklmnopqrstuvwxyz': S=S.replace(i,'Z') S=S.split('Z'); print(max(len(i) for i in S))