#include using namespace std; int main() { string s, t, week; cin >> s >> t; week = s + t; if( week[ 12 ] == 'o' ) week += 'x'; vector< int > holiday; int length = 0; for( auto&& i : week ) { if( i == 'x' ) { holiday.push_back( length ); length = 0; } else { length++; } } cout << *max_element( begin( holiday ), end( holiday ) ) << endl; }