S = input() S = S.replace("yukicoder", "!") ans = 0 row = 0 for s in S: if s == "!": row += 1 else: ans = max(ans, row) row = 0 ans = max(ans, row) print(ans)