S = input() yuki_string = "yukicoder" NG = 2*(10**5) OK = 0 while NG - OK >= 2: MID = (NG+OK)//2 if yuki_string * MID in S: OK = MID else: NG = MID print(OK)