# import pypyjit;pypyjit.set_param("max_unroll_recursion=-1") # from bisect import * # from collections import * # from heapq import * # from itertools import * # from math import * # from datetime import * # from decimal import* # from string import ascii_lowercase,ascii_uppercase # import numpy as np import sys import os # sys.setrecursionlimit(10**6) INF = 10**18 MOD = 998244353 # MOD = 10**9 + 7 File = open("input.txt", "r") if os.path.exists("input.txt") else sys.stdin def input(): return File.readline()[:-1] # /////////////////////////////////////////////////////////////////////////// S = input() S = S.replace("yukicoder", "0") def count_max_char(s, c): """ 文字列sに含まれる文字cの最大連続数を返す関数 s: 文字列 c: 検索する文字 """ count = 0 max_count = 0 for i in range(len(s)): if s[i] == c: count += 1 else: max_count = max(max_count, count) count = 0 max_count = max(max_count, count) return max_count cnt = count_max_char(S, "0") print(cnt)