#include #define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false)) using namespace std; int main() { fastIO; string f, s; cin >> f >> s; f += s; int maxv = 0, cur = 0; for (const auto day : f) { if (day == 'o') { cur++; maxv = max(maxv, cur); } else { cur = 0; } } cout << maxv << '\n'; return 0; }