#include #include #include std::vector> runlength(const std::string& s) { std::vector> res; for (char c : s) { if (res.empty() || c != res.back().first) { res.emplace_back(c, 1); } else { ++res.back().second; } } return res; } void solve() { std::string s; for (int i = 0; i < 14; ++i) { char c; std::cin >> c; s.push_back(c); } auto ps = runlength(s); int ans = 0; for (auto p : ps) { if (p.first == 'o') ans = std::max(ans, p.second); } std::cout << ans << std::endl; } int main() { std::cin.tie(nullptr); std::cout.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }