#include "bits/stdc++.h" using namespace std; int main() { string S, S1, S2; int MAX = 0, count = 0; cin >> S1 >> S2; S = S1 + S2; for (int i = 0; i < 14; i++) { if (S[i] == 'o') { count++; } else { count = 0; } MAX = max(MAX, count); } cout << MAX; }