#include int main(void){ int i; char C[8]; int n = 0, max = 0; scanf("%s", C); for(i = 0; C[i] != '\0'; i++){ if(C[i] == 'o'){ n++; if(max < n) max = n; } else n = 0; } scanf("%s", C); for(i = 0; C[i] != '\0'; i++){ if(C[i] == 'o'){ n++; if(max < n) max = n; } else n = 0; } printf("%d\n", max); return 0; }