#include "iostream" using namespace std; char letter[2][15]; int ans = 0; int box = 0; int main() { cin >> letter[0]>>letter[1]; for (int i = 0; i < 7; i++) { if (letter[0][i] == 'o')box++; else box = 0; if (box > ans)ans = box; } for (int i = 0; i < 7; i++) { if (letter[1][i] == 'o')box++; else box = 0; if (box > ans)ans = box; } cout << ans << "\n"; }