#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; int t = 0; for (int i = 0; i < n - 1; i++) { if (c[i] == c[i + 1] && c[i] == 'o') { ans++; v[i] = ans; }else{ ans = 0; } } int max = *max_element(v.begin(),v.end()); for (int i = 0; i < 14; i++) { if (c[i] == 'x') { t++; } } if (t == 14) { cout << 0 << "\n"; }else{ cout << max + 1 << "\n"; } return 0; }