#include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision using namespace std; int main() { string a, b; cin >> a >> b; string S = a + b; int ans = 0; int temp = 0; bool flg = false; for (int i = 0; i < 14; i++) { if (S[i] == 'o') { if (flg) { temp++; } else { flg = true; temp = 1; } } else { if (flg) { flg = false; if (temp > ans) { ans = temp; } } } } if (temp > ans) { ans = temp; } cout << ans << endl; return 0; }