#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
typedef long long ll;
using namespace std;

int main() {
    cin.tie(0)->sync_with_stdio(0);

    string S;
    cin >> S;

    string T = "yukicoder";
    int ans = 0, cur = 0;
    int N = S.size(), M = T.size();
    rep(i, N) {
        if (S.substr(i, M) == T) {
            cur++;
            i += M - 1;
        } else {
            ans = max(ans, cur);
            cur = 0;
        }
    }
    ans = max(ans, cur);
    cout << ans << "\n";

    return 0;
}