#include #include #include using namespace std; int main() { string s; string tmp; int max_ct = 0; int curr_ct = 0; cin >> s >> tmp; s += tmp; for (int i = 0; i < 14; i++) { if (s[i] == 'o') { curr_ct++; } else { max_ct = max(max_ct, curr_ct); curr_ct = 0; } } max_ct = max(max_ct, curr_ct); cout << max_ct << endl; return 0; }