public class No_203 { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); String s1 = sc.next(); String s2 = sc.next(); String week = s1 + s2; int holiday = 0; int max = 0; for (int i = 0; i < week.length(); i++) { if (week.charAt(i) == 'o') { holiday++; } else { holiday = 0; } if (max < holiday) { max = holiday; } } System.out.println(max); sc.close(); } }