S = input() ok = 0 ng = len(S)//9+1 while abs(ok-ng) > 1: mid = abs((ok+ng)//2) tmp = "yukicoder"*mid if tmp in S: ok = mid else: ng = mid print(ok)