#include using namespace std; int main() { string S; cin >> S; int N = S.size(); string yuki = "yukicoder"; int yuki_N = yuki.size(); vector vec_yuki; for (int i = 0; i < N - (yuki_N - 1); i++) { if (S.substr(i, yuki_N) == yuki) { vec_yuki.push_back(i); } } int vec_yuki_N = vec_yuki.size(); int tmp = 1; int ans = 0; for (int i = 0; i < vec_yuki_N - 1; i++) { if (vec_yuki[i] + 9 == vec_yuki[i + 1]) { tmp++; } else { if (tmp > 0) { ans = max(ans, tmp); tmp = 1; } } } if (vec_yuki_N) { ans = max(ans, tmp); } cout << ans; }