#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); string s,hoge;cin>>s;cin>>hoge; s+=hoge; int ans=0,cnt=0; rep(i,14){ if(s[i]=='o'){ cnt++; }else{ cnt=0; } ans=max(ans,cnt); } cout<