#include using namespace std; int main(){ string a,b;cin>>a>>b; string c = a+b; int ans = 0; int tmp = 0; for(int i = 0; c.size() > i; i++){ if(c[i] == 'o'){ tmp++; }else{ ans = max(ans,tmp); tmp = 0; } } cout << max(ans,tmp) << endl; }