#include #include using namespace std; int main(){ string str1, str2; cin>> str1>> str2; string str = str1+str2; int cnt = 0, mx = 0; for(int i=0; i<14; i++){ if(str[i]=='o'){ cnt++; mx = max(mx, cnt); }else{ cnt = 0; } } cout<< mx<< endl; return 0; }