import java.util.Scanner; public class MyMain { final static String YUKICODER = "yukicoder"; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int max = s.length() / YUKICODER.length(); int i = max; while (true) { final String str = generateStr(i); int index = s.indexOf(str); if (index != -1) { max = i; break; } i--; } System.out.println(max); sc.close(); } public static String generateStr(int n) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { sb.append(YUKICODER); } return sb.toString(); } }