s = input() t = s.replace('yukicoder','!') n = len(t) flag = False ans = [] cnt = 0 #print(t) for i in range(n): if flag == False: if t[i] == "!": flag = True cnt += 1 else: if t[i] == "!": cnt += 1 else: ans.append(cnt) cnt = 0 flag = False ans.append(cnt) print(max(ans))