#include #include #include #include #include #include #include #include #define REP(i,k,n) for(int i=k;i P; int main() { string s,t; cin >> s >> t; s += t; int ans = 0; rep(i,s.size()) { if(s[i] == 'x') continue; int cnt = 1; REP(j,i+1,s.size()) { if(s[j] == 'o') { i++; cnt++; continue; } else break; } ans = max(ans,cnt); } cout << ans << endl; return 0; }