#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); string s,tmp; cin>>s>>tmp; s+=tmp; int ans=0,t=0; for(auto&i:s){ if(i=='o')++t; else t=0; ans=max(ans,t); } cout<