#include using namespace std; typedef unsigned long long ul; typedef signed long long ll; ul over = 1000000007; int main(void) { cin.tie(0); ios::sync_with_stdio(false); cout << fixed; string s, t; cin >> s >> t; s += t; int cnt = 0, cnt_max = 0; for (auto c : s) { if (c == 'o') { cnt++; cnt_max = max(cnt_max, cnt); } else { cnt = 0; } } cout << cnt_max << endl; return 0; }