#include #include #include #include using namespace std; int main(){ string s1, s2; int cnt=0,maxv=0; bool flag = false; cin >> s1 >> s2; for (int i = 0; i < s1.size(); i++) { if (s1[i] == 'o') { cnt++; } else { maxv=max(maxv, cnt); cnt = 0; } } for (int i = 0; i < s2.size(); i++) { if (s2[i] == 'o') { cnt++; } else { maxv = max(maxv, cnt); cnt = 0; } } maxv = max(maxv, cnt); cout << maxv << endl; }