#include <stdio.h>

int main () {
  char s[1000001] = "";
  
  int res = 0;
  
  int ans = 0;
  int tmp = 0;
  int st = 0;
  int idx = 0;
  char t[10] = "yukicoder";
  
  res = scanf("%s", s);
  
  while (s[idx] != '\0') {
    if (s[idx] == t[st]) {
      st++;
    } else {
      tmp = 0;
      st = 0;
    }
    if (st >= 9) {
      tmp++;
      if (tmp > ans) {
        ans = tmp;
      }
      st = 0;
    }
    idx++;
  }
  
  printf("%d\n", ans);
  return 0;
}