#include #include using namespace std; int main() { int ans = 0, cnt = 0; char c = 0; string w1, w2; cin >> w1 >> w2; w1 += w2; for (int i = 0; i < w1.size(); i++) { if (w1[i] == 'x') continue; cnt = 0; while (i < w1.size() && w1[i] == 'o') cnt++, i++; if (ans < cnt) ans = cnt; } cout << ans << endl; return 0; }