import java.util.*; public class gw{ public static void main(String... args){ Scanner scan = new Scanner(System.in); String str1 = scan.next(); String str2 = scan.next(); System.out.println(calc(str1+str2)); } public static int calc(String str){ int[] counter = new int[14]; for(int i = 0; i < counter.length;i++){ counter[i] = 0; } int count = 0; int space = 0; for(int i = 0; i < str.length(); i++){ if(str.substring(i,i+1).equals("o")){ count++; }else{ counter[space] = count; count=0; space++; } } int max = counter[0]; for(int i = 1; i < space; i++){ if(max < counter[i]){ max = counter[i]; } } return max; } }