import std; void main () { string S = readln.chomp; const int N = S.length.to!int; string y = "yukicoder"; const int M = y.length.to!int; int ans = 0; int l = 0, r = 0; while (l < N) { int cnt = 0; while (r < N) { if (S[r .. min(N, r + M)] != y) { break; } cnt++; r += M; } ans = max(ans, cnt); if (l == r) { l++; r++; } else { l = r; } } writeln(ans); } void read (T...) (string S, ref T args) { import std.conv : to; import std.array : split; auto buf = S.split; foreach (i, ref arg; args) { arg = buf[i].to!(typeof(arg)); } }