from itertools import groupby ans = 0 for c,g in groupby(input().replace("yukicoder","Y")): if c =="Y": ans = max(ans,len(list(g))) print(ans)