#include #include using namespace std; using namespace atcoder; #define NYAN ios::sync_with_stdio(false);cin.tie(nullptr);cout< using pq = priority_queue; template using pqg = priority_queue, greater>; template using v = vector; #define pl pair #define vl v #define vp v #define vm v void Yes(bool b=1) { cout << (b==1?"Yes":"No") << "\n"; } void YES(bool b=1) { cout << (b==1?"YES":"NO") << "\n"; } void No(bool b=1) { cout << (b==1?"No":"Yes") << "\n"; } void NO(bool b=1) { cout << (b==1?"NO":"YES") << "\n"; } void CIN() {} template void CIN(T &t, U &...u) { cin >> t; CIN(u...); } void COUT() { cout << "\n"; } template void COUT(const T &t, const U &...u) { cout << t; if (sizeof...(u)) cout << sep; COUT(u...); } #define dump(x) cerr << #x << ":"<< x << "\n"; #define vdump(x) rep(repeat, sz(x)) cerr << repeat << ":" << x[repeat] << "\n"; #define bp __builtin_popcountll #define ALL(x) x.begin(),x.end() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define reps(i, s, n) for (ll i = s; i < (ll)(n); i++) #define sz(x) (ll)x.size() templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; string t = "yukicoder"; ll ans = 0, sum = 0; rep(i, sz(s)){ string now = ""; reps(j, i, min(sz(s), sz(t) + i)) now += s[j]; if(now == t){ sum++; chmax(ans, sum); i += sz(t) - 1; }else{ sum = 0; } } cout << ans << "\n"; } int main() { NYAN solve(); return 0; }