#include using namespace std; signed main(){ string s,t;cin>>s>>t;s+=t; int ans=0,cnt=0; for(char p:s){ if(p=='o')ans=max(ans,++cnt); else cnt=0; } cout<