#include int main() { char c[10]; int ans = 0, x = 0, i; scanf("%s", c); for (i = 0; i < 7; i++) { if (c[i] == 'o') x++; else x = 0; if (ans < x) ans = x; } scanf("%s", c); for (i = 0; i < 7; i++) { if (c[i] == 'o') x++; else x = 0; if (ans < x) ans = x; } printf("%d\n", ans); return 0; }