#include #include #include #include #include using namespace std; int main(){ string c,c1,c2; cin >> c1 >>c2; c = c1 + c2; vector v(14); int n = 14; int ans = 0; for (int i = 0; i < n - 1; i++) { if (c[i] == c[i + 1] && c[i] == 'o') { ans++; v[i] = ans; //cout << "x" << " "; }else{ ans = 0; //cout << "y" << " "; } } int max = *max_element(v.begin(),v.end()); cout << max + 1 << "\n"; return 0; }