#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; char buf[8], str[15]; int main() { cin >> buf; strcpy(str, buf); cin >> buf; strcat(str, buf); for(int i = 14; i > 0; i--) { char maru[15]; for(int j = 0; j < i; j++) maru[j] = 'o'; maru[i] = '\0'; if(strstr(str, maru) != '\0') { cout << i << endl; return 0; } } cout << 0 << endl; return 0; }