#include #include #include #include int main(void){ char s[10],ss[10]; int max=0; int now=0; scanf("%s",s); scanf("%s",ss); for(int i=0;i<14;i++){ if(i<7){ if(s[i]=='o'){now++;} else { if(max<=now){max=now;} now=0; } } else{ if(ss[i-7]=='o'){now++;} else { if(max<=now){max=now;} now=0; } } } printf("%d\n",max); }