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; } String[] h = str.split("x",0); int max = 0; for(int i = 0;i max){ max = h[i].length(); } } return max; } }