s = input() s = s.replace('yukicoder','A') ans = 0 res = 0 for c in s: if c == 'A': res+=1 else: ans = max(ans,res) res = 0 print(ans)