#include #include #include using namespace std; int main() { string S1, S2, C; cin >> S1 >> S2; C = S1 + S2; int ans = 0, cnt = 0, n = C.length(); int i = 0; while (i < n) { while (i < n && C[i] == 'o') { cnt++; i++; } ans = max(ans, cnt); cnt = 0; i++; } cout << ans << endl; }