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