# stackでやるか? # いや、愚直に数えるか S = input() N = len(S) ans = 0 for num in range(N//9, 0, -1): check = 'yukicoder'*num if check in S: ans = num break print(ans)