#include #include #include using namespace std; int main() { string s; string s2; int count = 0; int max_day = 0; cin >> s >> s2; for (int i = 0; i < 7; i++){ if (s[i] == 'o'){ count++; } else{ max_day = max(max_day, count); count = 0; } } for (int i = 0; i < 7; i++){ if (s2[i] == 'o'){ count++; } else{ max_day = max(max_day, count); count = 0; } } max_day = max(max_day, count); cout << max_day << endl; }