#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // C++ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(i,j,k) for(int i=(int)j;i<(int)k;i++) #define ll long long #define Sort(v) sort(all(v)) #define INF 1000000000 #define END return 0 #define pb push_back #define se second #define fi first #define pb push_back #define all(v) (v).begin() , (v).end() #define MP make_pair #define MOD 1000000007LL; using namespace std; int day[12]={31,28,31,30,31,30,31,31,30,31,30,31}; ll solve(string s,ll d,ll i){ rep(j,0,d){ s[i+j]='o'; } ll ret=0; rep(i,0,s.size()){ if(s[i]=='o'){ ll t=1; while(i+1>d; string s,ss; cin>>s>>ss; s+=ss; ll ans=0; rep(i,0,s.size()-d){ ans=max(ans,solve(s,d,i)); } cout<